[2024-12-17 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:00:06 [end_date_ymd] => 2024-12-17 00:00:06 [RateCDR] => 1 ) [2024-12-17 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:00:06' and `end` < '2024-12-17 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:00:18] Production.INFO: count ==691 [2024-12-17 00:00:18] Production.ERROR: pbx CDR StartTime 2024-12-16 21:00:06 - End Time 2024-12-17 00:00:06 [2024-12-17 00:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14036996', 'tblTempUsageDetail_20' ) start [2024-12-17 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14036996', 'tblTempUsageDetail_20' ) end [2024-12-17 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14036996', 'tblTempVendorCDR_20' ) start [2024-12-17 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14036996', 'tblTempVendorCDR_20' ) end [2024-12-17 00:00:18] Production.INFO: ProcessCDR(1,14036996,1,1,2) [2024-12-17 00:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14036996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14036996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14036996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14036996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14036996', 'tblTempUsageDetail_20' ) start [2024-12-17 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14036996', 'tblTempUsageDetail_20' ) end [2024-12-17 00:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:00:24] Production.INFO: ==29933== Releasing lock... [2024-12-17 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:00:24] Production.INFO: 34.25 MB #Memory Used# [2024-12-17 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:01:05 [end_date_ymd] => 2024-12-17 00:01:05 [RateCDR] => 1 ) [2024-12-17 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:01:05' and `end` < '2024-12-17 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:01:21] Production.INFO: count ==683 [2024-12-17 00:01:21] Production.ERROR: pbx CDR StartTime 2024-12-16 21:01:05 - End Time 2024-12-17 00:01:05 [2024-12-17 00:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037001', 'tblTempUsageDetail_20' ) start [2024-12-17 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037001', 'tblTempUsageDetail_20' ) end [2024-12-17 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037001', 'tblTempVendorCDR_20' ) start [2024-12-17 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037001', 'tblTempVendorCDR_20' ) end [2024-12-17 00:01:21] Production.INFO: ProcessCDR(1,14037001,1,1,2) [2024-12-17 00:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037001', 'tblTempUsageDetail_20' ) start [2024-12-17 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037001', 'tblTempUsageDetail_20' ) end [2024-12-17 00:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:01:24] Production.INFO: ==30027== Releasing lock... [2024-12-17 00:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:01:24] Production.INFO: 32.5 MB #Memory Used# [2024-12-17 00:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:02:04 [end_date_ymd] => 2024-12-17 00:02:04 [RateCDR] => 1 ) [2024-12-17 00: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-16 21:02:04' and `end` < '2024-12-17 00: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-17 00:02:19] Production.INFO: count ==197 [2024-12-17 00:02:19] Production.ERROR: pbx CDR StartTime 2024-12-16 21:02:04 - End Time 2024-12-17 00:02:04 [2024-12-17 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037006', 'tblTempUsageDetail_20' ) start [2024-12-17 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037006', 'tblTempUsageDetail_20' ) end [2024-12-17 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037006', 'tblTempVendorCDR_20' ) start [2024-12-17 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037006', 'tblTempVendorCDR_20' ) end [2024-12-17 00:02:19] Production.INFO: ProcessCDR(1,14037006,1,1,2) [2024-12-17 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037006', 'tblTempUsageDetail_20' ) start [2024-12-17 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037006', 'tblTempUsageDetail_20' ) end [2024-12-17 00:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:02:22] Production.INFO: ==30108== Releasing lock... [2024-12-17 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:02:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:03:04 [end_date_ymd] => 2024-12-17 00:03:04 [RateCDR] => 1 ) [2024-12-17 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-16 21:03:04' and `end` < '2024-12-17 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-17 00:03:16] Production.INFO: count ==200 [2024-12-17 00:03:16] Production.ERROR: pbx CDR StartTime 2024-12-16 21:03:04 - End Time 2024-12-17 00:03:04 [2024-12-17 00:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037011', 'tblTempUsageDetail_20' ) start [2024-12-17 00:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037011', 'tblTempUsageDetail_20' ) end [2024-12-17 00:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037011', 'tblTempVendorCDR_20' ) start [2024-12-17 00:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037011', 'tblTempVendorCDR_20' ) end [2024-12-17 00:03:16] Production.INFO: ProcessCDR(1,14037011,1,1,2) [2024-12-17 00:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:03:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037011', 'tblTempUsageDetail_20' ) start [2024-12-17 00:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037011', 'tblTempUsageDetail_20' ) end [2024-12-17 00:03:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:03:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:03:19] Production.INFO: ==30184== Releasing lock... [2024-12-17 00:03:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:03:19] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:04:05 [end_date_ymd] => 2024-12-17 00:04:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:04:05' and `end` < '2024-12-17 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-17 00:04:18] Production.INFO: count ==200 [2024-12-17 00:04:18] Production.ERROR: pbx CDR StartTime 2024-12-16 21:04:05 - End Time 2024-12-17 00:04:05 [2024-12-17 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037016', 'tblTempUsageDetail_20' ) start [2024-12-17 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037016', 'tblTempUsageDetail_20' ) end [2024-12-17 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037016', 'tblTempVendorCDR_20' ) start [2024-12-17 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037016', 'tblTempVendorCDR_20' ) end [2024-12-17 00:04:18] Production.INFO: ProcessCDR(1,14037016,1,1,2) [2024-12-17 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037016', 'tblTempUsageDetail_20' ) start [2024-12-17 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037016', 'tblTempUsageDetail_20' ) end [2024-12-17 00:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:04:21] Production.INFO: ==30263== Releasing lock... [2024-12-17 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:04:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:05:05 [end_date_ymd] => 2024-12-17 00:05:05 [RateCDR] => 1 ) [2024-12-17 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:05:05' and `end` < '2024-12-17 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:05:17] Production.INFO: count ==200 [2024-12-17 00:05:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:05:05 - End Time 2024-12-17 00:05:05 [2024-12-17 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037021', 'tblTempUsageDetail_20' ) start [2024-12-17 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037021', 'tblTempUsageDetail_20' ) end [2024-12-17 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037021', 'tblTempVendorCDR_20' ) start [2024-12-17 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037021', 'tblTempVendorCDR_20' ) end [2024-12-17 00:05:17] Production.INFO: ProcessCDR(1,14037021,1,1,2) [2024-12-17 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037021', 'tblTempUsageDetail_20' ) start [2024-12-17 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037021', 'tblTempUsageDetail_20' ) end [2024-12-17 00:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:05:20] Production.INFO: ==30339== Releasing lock... [2024-12-17 00:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:05:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:06:05 [end_date_ymd] => 2024-12-17 00:06:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:06:05' and `end` < '2024-12-17 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-17 00:06:17] Production.INFO: count ==199 [2024-12-17 00:06:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:06:05 - End Time 2024-12-17 00:06:05 [2024-12-17 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037026', 'tblTempUsageDetail_20' ) start [2024-12-17 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037026', 'tblTempUsageDetail_20' ) end [2024-12-17 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037026', 'tblTempVendorCDR_20' ) start [2024-12-17 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037026', 'tblTempVendorCDR_20' ) end [2024-12-17 00:06:17] Production.INFO: ProcessCDR(1,14037026,1,1,2) [2024-12-17 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037026', 'tblTempUsageDetail_20' ) start [2024-12-17 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037026', 'tblTempUsageDetail_20' ) end [2024-12-17 00:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:06:20] Production.INFO: ==30410== Releasing lock... [2024-12-17 00:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:06:20] Production.INFO: 30 MB #Memory Used# [2024-12-17 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:07:05 [end_date_ymd] => 2024-12-17 00:07:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:07:05' and `end` < '2024-12-17 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-17 00:07:17] Production.INFO: count ==199 [2024-12-17 00:07:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:07:05 - End Time 2024-12-17 00:07:05 [2024-12-17 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037031', 'tblTempUsageDetail_20' ) start [2024-12-17 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037031', 'tblTempUsageDetail_20' ) end [2024-12-17 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037031', 'tblTempVendorCDR_20' ) start [2024-12-17 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037031', 'tblTempVendorCDR_20' ) end [2024-12-17 00:07:17] Production.INFO: ProcessCDR(1,14037031,1,1,2) [2024-12-17 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037031', 'tblTempUsageDetail_20' ) start [2024-12-17 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037031', 'tblTempUsageDetail_20' ) end [2024-12-17 00:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:07:21] Production.INFO: ==30483== Releasing lock... [2024-12-17 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:07:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:08:05 [end_date_ymd] => 2024-12-17 00:08:05 [RateCDR] => 1 ) [2024-12-17 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:08:05' and `end` < '2024-12-17 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:08:17] Production.INFO: count ==198 [2024-12-17 00:08:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:08:05 - End Time 2024-12-17 00:08:05 [2024-12-17 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037036', 'tblTempUsageDetail_20' ) start [2024-12-17 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037036', 'tblTempUsageDetail_20' ) end [2024-12-17 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037036', 'tblTempVendorCDR_20' ) start [2024-12-17 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037036', 'tblTempVendorCDR_20' ) end [2024-12-17 00:08:17] Production.INFO: ProcessCDR(1,14037036,1,1,2) [2024-12-17 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037036', 'tblTempUsageDetail_20' ) start [2024-12-17 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037036', 'tblTempUsageDetail_20' ) end [2024-12-17 00:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:08:20] Production.INFO: ==30608== Releasing lock... [2024-12-17 00:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:08:20] Production.INFO: 30 MB #Memory Used# [2024-12-17 00:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:09:04 [end_date_ymd] => 2024-12-17 00:09:04 [RateCDR] => 1 ) [2024-12-17 00: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-16 21:09:04' and `end` < '2024-12-17 00: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-17 00:09:16] Production.INFO: count ==198 [2024-12-17 00:09:16] Production.ERROR: pbx CDR StartTime 2024-12-16 21:09:04 - End Time 2024-12-17 00:09:04 [2024-12-17 00:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037041', 'tblTempUsageDetail_20' ) start [2024-12-17 00:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037041', 'tblTempUsageDetail_20' ) end [2024-12-17 00:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037041', 'tblTempVendorCDR_20' ) start [2024-12-17 00:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037041', 'tblTempVendorCDR_20' ) end [2024-12-17 00:09:16] Production.INFO: ProcessCDR(1,14037041,1,1,2) [2024-12-17 00:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037041', 'tblTempUsageDetail_20' ) start [2024-12-17 00:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037041', 'tblTempUsageDetail_20' ) end [2024-12-17 00:09:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:09:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:09:19] Production.INFO: ==30696== Releasing lock... [2024-12-17 00:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:09:19] Production.INFO: 30 MB #Memory Used# [2024-12-17 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:10:05 [end_date_ymd] => 2024-12-17 00:10:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:10:05' and `end` < '2024-12-17 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-17 00:10:17] Production.INFO: count ==204 [2024-12-17 00:10:18] Production.ERROR: pbx CDR StartTime 2024-12-16 21:10:05 - End Time 2024-12-17 00:10:05 [2024-12-17 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037047', 'tblTempUsageDetail_20' ) start [2024-12-17 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037047', 'tblTempUsageDetail_20' ) end [2024-12-17 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037047', 'tblTempVendorCDR_20' ) start [2024-12-17 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037047', 'tblTempVendorCDR_20' ) end [2024-12-17 00:10:18] Production.INFO: ProcessCDR(1,14037047,1,1,2) [2024-12-17 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037047', 'tblTempUsageDetail_20' ) start [2024-12-17 00:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037047', 'tblTempUsageDetail_20' ) end [2024-12-17 00:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:10:20] Production.INFO: ==30781== Releasing lock... [2024-12-17 00:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:10:20] Production.INFO: 30 MB #Memory Used# [2024-12-17 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:11:05 [end_date_ymd] => 2024-12-17 00:11:05 [RateCDR] => 1 ) [2024-12-17 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:11:05' and `end` < '2024-12-17 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:11:17] Production.INFO: count ==208 [2024-12-17 00:11:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:11:05 - End Time 2024-12-17 00:11:05 [2024-12-17 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037052', 'tblTempUsageDetail_20' ) start [2024-12-17 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037052', 'tblTempUsageDetail_20' ) end [2024-12-17 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037052', 'tblTempVendorCDR_20' ) start [2024-12-17 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037052', 'tblTempVendorCDR_20' ) end [2024-12-17 00:11:17] Production.INFO: ProcessCDR(1,14037052,1,1,2) [2024-12-17 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037052', 'tblTempUsageDetail_20' ) start [2024-12-17 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037052', 'tblTempUsageDetail_20' ) end [2024-12-17 00:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:11:20] Production.INFO: ==30865== Releasing lock... [2024-12-17 00:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:11:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:12:05 [end_date_ymd] => 2024-12-17 00:12:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:12:05' and `end` < '2024-12-17 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-17 00:12:17] Production.INFO: count ==208 [2024-12-17 00:12:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:12:05 - End Time 2024-12-17 00:12:05 [2024-12-17 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037057', 'tblTempUsageDetail_20' ) start [2024-12-17 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037057', 'tblTempUsageDetail_20' ) end [2024-12-17 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037057', 'tblTempVendorCDR_20' ) start [2024-12-17 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037057', 'tblTempVendorCDR_20' ) end [2024-12-17 00:12:17] Production.INFO: ProcessCDR(1,14037057,1,1,2) [2024-12-17 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037057', 'tblTempUsageDetail_20' ) start [2024-12-17 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037057', 'tblTempUsageDetail_20' ) end [2024-12-17 00:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:12:20] Production.INFO: ==30946== Releasing lock... [2024-12-17 00:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:12:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:13:05 [end_date_ymd] => 2024-12-17 00:13:05 [RateCDR] => 1 ) [2024-12-17 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:13:05' and `end` < '2024-12-17 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:13:17] Production.INFO: count ==208 [2024-12-17 00:13:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:13:05 - End Time 2024-12-17 00:13:05 [2024-12-17 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037062', 'tblTempUsageDetail_20' ) start [2024-12-17 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037062', 'tblTempUsageDetail_20' ) end [2024-12-17 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037062', 'tblTempVendorCDR_20' ) start [2024-12-17 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037062', 'tblTempVendorCDR_20' ) end [2024-12-17 00:13:17] Production.INFO: ProcessCDR(1,14037062,1,1,2) [2024-12-17 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037062', 'tblTempUsageDetail_20' ) start [2024-12-17 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037062', 'tblTempUsageDetail_20' ) end [2024-12-17 00:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:13:20] Production.INFO: ==31024== Releasing lock... [2024-12-17 00:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:13:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:14:05 [end_date_ymd] => 2024-12-17 00:14:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:14:05' and `end` < '2024-12-17 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-17 00:14:17] Production.INFO: count ==208 [2024-12-17 00:14:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:14:05 - End Time 2024-12-17 00:14:05 [2024-12-17 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037067', 'tblTempUsageDetail_20' ) start [2024-12-17 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037067', 'tblTempUsageDetail_20' ) end [2024-12-17 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037067', 'tblTempVendorCDR_20' ) start [2024-12-17 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037067', 'tblTempVendorCDR_20' ) end [2024-12-17 00:14:17] Production.INFO: ProcessCDR(1,14037067,1,1,2) [2024-12-17 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037067', 'tblTempUsageDetail_20' ) start [2024-12-17 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037067', 'tblTempUsageDetail_20' ) end [2024-12-17 00:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:14:20] Production.INFO: ==31102== Releasing lock... [2024-12-17 00:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:14:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:15:05 [end_date_ymd] => 2024-12-17 00:15:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:15:05' and `end` < '2024-12-17 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-17 00:15:17] Production.INFO: count ==208 [2024-12-17 00:15:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:15:05 - End Time 2024-12-17 00:15:05 [2024-12-17 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037072', 'tblTempUsageDetail_20' ) start [2024-12-17 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037072', 'tblTempUsageDetail_20' ) end [2024-12-17 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037072', 'tblTempVendorCDR_20' ) start [2024-12-17 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037072', 'tblTempVendorCDR_20' ) end [2024-12-17 00:15:17] Production.INFO: ProcessCDR(1,14037072,1,1,2) [2024-12-17 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037072', 'tblTempUsageDetail_20' ) start [2024-12-17 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037072', 'tblTempUsageDetail_20' ) end [2024-12-17 00:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:15:20] Production.INFO: ==31189== Releasing lock... [2024-12-17 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:15:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:16:05 [end_date_ymd] => 2024-12-17 00:16:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:16:05' and `end` < '2024-12-17 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-17 00:16:16] Production.INFO: count ==209 [2024-12-17 00:16:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:16:05 - End Time 2024-12-17 00:16:05 [2024-12-17 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037077', 'tblTempUsageDetail_20' ) start [2024-12-17 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037077', 'tblTempUsageDetail_20' ) end [2024-12-17 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037077', 'tblTempVendorCDR_20' ) start [2024-12-17 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037077', 'tblTempVendorCDR_20' ) end [2024-12-17 00:16:17] Production.INFO: ProcessCDR(1,14037077,1,1,2) [2024-12-17 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037077', 'tblTempUsageDetail_20' ) start [2024-12-17 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037077', 'tblTempUsageDetail_20' ) end [2024-12-17 00:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:16:21] Production.INFO: ==31266== Releasing lock... [2024-12-17 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:16:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:17:05 [end_date_ymd] => 2024-12-17 00:17:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:17:05' and `end` < '2024-12-17 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-17 00:17:17] Production.INFO: count ==206 [2024-12-17 00:17:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:17:05 - End Time 2024-12-17 00:17:05 [2024-12-17 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037082', 'tblTempUsageDetail_20' ) start [2024-12-17 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037082', 'tblTempUsageDetail_20' ) end [2024-12-17 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037082', 'tblTempVendorCDR_20' ) start [2024-12-17 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037082', 'tblTempVendorCDR_20' ) end [2024-12-17 00:17:17] Production.INFO: ProcessCDR(1,14037082,1,1,2) [2024-12-17 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037082', 'tblTempUsageDetail_20' ) start [2024-12-17 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037082', 'tblTempUsageDetail_20' ) end [2024-12-17 00:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:17:20] Production.INFO: ==31361== Releasing lock... [2024-12-17 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:17:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:18:04 [end_date_ymd] => 2024-12-17 00:18:04 [RateCDR] => 1 ) [2024-12-17 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-16 21:18:04' and `end` < '2024-12-17 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-17 00:18:16] Production.INFO: count ==204 [2024-12-17 00:18:16] Production.ERROR: pbx CDR StartTime 2024-12-16 21:18:04 - End Time 2024-12-17 00:18:04 [2024-12-17 00:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037087', 'tblTempUsageDetail_20' ) start [2024-12-17 00:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037087', 'tblTempUsageDetail_20' ) end [2024-12-17 00:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037087', 'tblTempVendorCDR_20' ) start [2024-12-17 00:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037087', 'tblTempVendorCDR_20' ) end [2024-12-17 00:18:16] Production.INFO: ProcessCDR(1,14037087,1,1,2) [2024-12-17 00:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037087', 'tblTempUsageDetail_20' ) start [2024-12-17 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037087', 'tblTempUsageDetail_20' ) end [2024-12-17 00:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:18:20] Production.INFO: ==31440== Releasing lock... [2024-12-17 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:18:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:19:05 [end_date_ymd] => 2024-12-17 00:19:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:19:05' and `end` < '2024-12-17 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-17 00:19:17] Production.INFO: count ==202 [2024-12-17 00:19:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:19:05 - End Time 2024-12-17 00:19:05 [2024-12-17 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037092', 'tblTempUsageDetail_20' ) start [2024-12-17 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037092', 'tblTempUsageDetail_20' ) end [2024-12-17 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037092', 'tblTempVendorCDR_20' ) start [2024-12-17 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037092', 'tblTempVendorCDR_20' ) end [2024-12-17 00:19:18] Production.INFO: ProcessCDR(1,14037092,1,1,2) [2024-12-17 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037092', 'tblTempUsageDetail_20' ) start [2024-12-17 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037092', 'tblTempUsageDetail_20' ) end [2024-12-17 00:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:19:21] Production.INFO: ==31521== Releasing lock... [2024-12-17 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:19:21] Production.INFO: 30 MB #Memory Used# [2024-12-17 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:20:06 [end_date_ymd] => 2024-12-17 00:20:06 [RateCDR] => 1 ) [2024-12-17 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:20:06' and `end` < '2024-12-17 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:20:18] Production.INFO: count ==210 [2024-12-17 00:20:18] Production.ERROR: pbx CDR StartTime 2024-12-16 21:20:06 - End Time 2024-12-17 00:20:06 [2024-12-17 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037098', 'tblTempUsageDetail_20' ) start [2024-12-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037098', 'tblTempUsageDetail_20' ) end [2024-12-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037098', 'tblTempVendorCDR_20' ) start [2024-12-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037098', 'tblTempVendorCDR_20' ) end [2024-12-17 00:20:18] Production.INFO: ProcessCDR(1,14037098,1,1,2) [2024-12-17 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037098', 'tblTempUsageDetail_20' ) start [2024-12-17 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037098', 'tblTempUsageDetail_20' ) end [2024-12-17 00:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:20:21] Production.INFO: ==31602== Releasing lock... [2024-12-17 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:20:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:21:05 [end_date_ymd] => 2024-12-17 00:21:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:21:05' and `end` < '2024-12-17 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-17 00:21:17] Production.INFO: count ==212 [2024-12-17 00:21:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:21:05 - End Time 2024-12-17 00:21:05 [2024-12-17 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037103', 'tblTempUsageDetail_20' ) start [2024-12-17 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037103', 'tblTempUsageDetail_20' ) end [2024-12-17 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037103', 'tblTempVendorCDR_20' ) start [2024-12-17 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037103', 'tblTempVendorCDR_20' ) end [2024-12-17 00:21:17] Production.INFO: ProcessCDR(1,14037103,1,1,2) [2024-12-17 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037103', 'tblTempUsageDetail_20' ) start [2024-12-17 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037103', 'tblTempUsageDetail_20' ) end [2024-12-17 00:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:21:20] Production.INFO: ==31688== Releasing lock... [2024-12-17 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:21:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:22:05 [end_date_ymd] => 2024-12-17 00:22:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:22:05' and `end` < '2024-12-17 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-17 00:22:17] Production.INFO: count ==210 [2024-12-17 00:22:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:22:05 - End Time 2024-12-17 00:22:05 [2024-12-17 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037108', 'tblTempUsageDetail_20' ) start [2024-12-17 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037108', 'tblTempUsageDetail_20' ) end [2024-12-17 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037108', 'tblTempVendorCDR_20' ) start [2024-12-17 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037108', 'tblTempVendorCDR_20' ) end [2024-12-17 00:22:17] Production.INFO: ProcessCDR(1,14037108,1,1,2) [2024-12-17 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037108', 'tblTempUsageDetail_20' ) start [2024-12-17 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037108', 'tblTempUsageDetail_20' ) end [2024-12-17 00:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:22:20] Production.INFO: ==31763== Releasing lock... [2024-12-17 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:22:20] Production.INFO: 30 MB #Memory Used# [2024-12-17 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:23:05 [end_date_ymd] => 2024-12-17 00:23:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:23:05' and `end` < '2024-12-17 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-17 00:23:17] Production.INFO: count ==210 [2024-12-17 00:23:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:23:05 - End Time 2024-12-17 00:23:05 [2024-12-17 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037113', 'tblTempUsageDetail_20' ) start [2024-12-17 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037113', 'tblTempUsageDetail_20' ) end [2024-12-17 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037113', 'tblTempVendorCDR_20' ) start [2024-12-17 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037113', 'tblTempVendorCDR_20' ) end [2024-12-17 00:23:17] Production.INFO: ProcessCDR(1,14037113,1,1,2) [2024-12-17 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037113', 'tblTempUsageDetail_20' ) start [2024-12-17 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037113', 'tblTempUsageDetail_20' ) end [2024-12-17 00:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:23:20] Production.INFO: ==31842== Releasing lock... [2024-12-17 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:23:20] Production.INFO: 30 MB #Memory Used# [2024-12-17 00:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:24:04 [end_date_ymd] => 2024-12-17 00:24:04 [RateCDR] => 1 ) [2024-12-17 00: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-16 21:24:04' and `end` < '2024-12-17 00: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-17 00:24:17] Production.INFO: count ==212 [2024-12-17 00:24:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:24:04 - End Time 2024-12-17 00:24:04 [2024-12-17 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037118', 'tblTempUsageDetail_20' ) start [2024-12-17 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037118', 'tblTempUsageDetail_20' ) end [2024-12-17 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037118', 'tblTempVendorCDR_20' ) start [2024-12-17 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037118', 'tblTempVendorCDR_20' ) end [2024-12-17 00:24:17] Production.INFO: ProcessCDR(1,14037118,1,1,2) [2024-12-17 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037118', 'tblTempUsageDetail_20' ) start [2024-12-17 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037118', 'tblTempUsageDetail_20' ) end [2024-12-17 00:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:24:20] Production.INFO: ==31959== Releasing lock... [2024-12-17 00:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:24:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:25:05 [end_date_ymd] => 2024-12-17 00:25:05 [RateCDR] => 1 ) [2024-12-17 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:25:05' and `end` < '2024-12-17 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:25:17] Production.INFO: count ==213 [2024-12-17 00:25:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:25:05 - End Time 2024-12-17 00:25:05 [2024-12-17 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037123', 'tblTempUsageDetail_20' ) start [2024-12-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037123', 'tblTempUsageDetail_20' ) end [2024-12-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037123', 'tblTempVendorCDR_20' ) start [2024-12-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037123', 'tblTempVendorCDR_20' ) end [2024-12-17 00:25:17] Production.INFO: ProcessCDR(1,14037123,1,1,2) [2024-12-17 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037123', 'tblTempUsageDetail_20' ) start [2024-12-17 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037123', 'tblTempUsageDetail_20' ) end [2024-12-17 00:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:25:22] Production.INFO: ==32038== Releasing lock... [2024-12-17 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:25:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:26:05 [end_date_ymd] => 2024-12-17 00:26:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:26:05' and `end` < '2024-12-17 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-17 00:26:17] Production.INFO: count ==216 [2024-12-17 00:26:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:26:05 - End Time 2024-12-17 00:26:05 [2024-12-17 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037128', 'tblTempUsageDetail_20' ) start [2024-12-17 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037128', 'tblTempUsageDetail_20' ) end [2024-12-17 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037128', 'tblTempVendorCDR_20' ) start [2024-12-17 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037128', 'tblTempVendorCDR_20' ) end [2024-12-17 00:26:17] Production.INFO: ProcessCDR(1,14037128,1,1,2) [2024-12-17 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037128', 'tblTempUsageDetail_20' ) start [2024-12-17 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037128', 'tblTempUsageDetail_20' ) end [2024-12-17 00:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:26:20] Production.INFO: ==32112== Releasing lock... [2024-12-17 00:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:26:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:27:05 [end_date_ymd] => 2024-12-17 00:27:05 [RateCDR] => 1 ) [2024-12-17 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:27:05' and `end` < '2024-12-17 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:27:17] Production.INFO: count ==218 [2024-12-17 00:27:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:27:05 - End Time 2024-12-17 00:27:05 [2024-12-17 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037133', 'tblTempUsageDetail_20' ) start [2024-12-17 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037133', 'tblTempUsageDetail_20' ) end [2024-12-17 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037133', 'tblTempVendorCDR_20' ) start [2024-12-17 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037133', 'tblTempVendorCDR_20' ) end [2024-12-17 00:27:17] Production.INFO: ProcessCDR(1,14037133,1,1,2) [2024-12-17 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037133', 'tblTempUsageDetail_20' ) start [2024-12-17 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037133', 'tblTempUsageDetail_20' ) end [2024-12-17 00:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:27:20] Production.INFO: ==32185== Releasing lock... [2024-12-17 00:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:27:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:28:04 [end_date_ymd] => 2024-12-17 00:28:04 [RateCDR] => 1 ) [2024-12-17 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-16 21:28:04' and `end` < '2024-12-17 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-17 00:28:16] Production.INFO: count ==218 [2024-12-17 00:28:16] Production.ERROR: pbx CDR StartTime 2024-12-16 21:28:04 - End Time 2024-12-17 00:28:04 [2024-12-17 00:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037138', 'tblTempUsageDetail_20' ) start [2024-12-17 00:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037138', 'tblTempUsageDetail_20' ) end [2024-12-17 00:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037138', 'tblTempVendorCDR_20' ) start [2024-12-17 00:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037138', 'tblTempVendorCDR_20' ) end [2024-12-17 00:28:16] Production.INFO: ProcessCDR(1,14037138,1,1,2) [2024-12-17 00:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:28:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037138', 'tblTempUsageDetail_20' ) start [2024-12-17 00:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037138', 'tblTempUsageDetail_20' ) end [2024-12-17 00:28:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:28:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:28:19] Production.INFO: ==32262== Releasing lock... [2024-12-17 00:28:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:28:19] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:29:05 [end_date_ymd] => 2024-12-17 00:29:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:29:05' and `end` < '2024-12-17 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-17 00:29:17] Production.INFO: count ==222 [2024-12-17 00:29:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:29:05 - End Time 2024-12-17 00:29:05 [2024-12-17 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037143', 'tblTempUsageDetail_20' ) start [2024-12-17 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037143', 'tblTempUsageDetail_20' ) end [2024-12-17 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037143', 'tblTempVendorCDR_20' ) start [2024-12-17 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037143', 'tblTempVendorCDR_20' ) end [2024-12-17 00:29:17] Production.INFO: ProcessCDR(1,14037143,1,1,2) [2024-12-17 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037143', 'tblTempUsageDetail_20' ) start [2024-12-17 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037143', 'tblTempUsageDetail_20' ) end [2024-12-17 00:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:29:21] Production.INFO: ==32340== Releasing lock... [2024-12-17 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:29:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-17 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:30:05 [end_date_ymd] => 2024-12-17 00:30:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:30:05' and `end` < '2024-12-17 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-17 00:30:17] Production.INFO: count ==229 [2024-12-17 00:30:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:30:05 - End Time 2024-12-17 00:30:05 [2024-12-17 00:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037148', 'tblTempUsageDetail_20' ) start [2024-12-17 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037148', 'tblTempUsageDetail_20' ) end [2024-12-17 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037148', 'tblTempVendorCDR_20' ) start [2024-12-17 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037148', 'tblTempVendorCDR_20' ) end [2024-12-17 00:30:17] Production.INFO: ProcessCDR(1,14037148,1,1,2) [2024-12-17 00:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037148', 'tblTempUsageDetail_20' ) start [2024-12-17 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037148', 'tblTempUsageDetail_20' ) end [2024-12-17 00:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:30:22] Production.INFO: ==32414== Releasing lock... [2024-12-17 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:30:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:31:05 [end_date_ymd] => 2024-12-17 00:31:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:31:05' and `end` < '2024-12-17 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-17 00:31:17] Production.INFO: count ==238 [2024-12-17 00:31:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:31:05 - End Time 2024-12-17 00:31:05 [2024-12-17 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037154', 'tblTempUsageDetail_20' ) start [2024-12-17 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037154', 'tblTempUsageDetail_20' ) end [2024-12-17 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037154', 'tblTempVendorCDR_20' ) start [2024-12-17 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037154', 'tblTempVendorCDR_20' ) end [2024-12-17 00:31:17] Production.INFO: ProcessCDR(1,14037154,1,1,2) [2024-12-17 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037154', 'tblTempUsageDetail_20' ) start [2024-12-17 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037154', 'tblTempUsageDetail_20' ) end [2024-12-17 00:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:31:20] Production.INFO: ==32495== Releasing lock... [2024-12-17 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:31:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:32:05 [end_date_ymd] => 2024-12-17 00:32:05 [RateCDR] => 1 ) [2024-12-17 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:32:05' and `end` < '2024-12-17 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:32:17] Production.INFO: count ==241 [2024-12-17 00:32:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:32:05 - End Time 2024-12-17 00:32:05 [2024-12-17 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037159', 'tblTempUsageDetail_20' ) start [2024-12-17 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037159', 'tblTempUsageDetail_20' ) end [2024-12-17 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037159', 'tblTempVendorCDR_20' ) start [2024-12-17 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037159', 'tblTempVendorCDR_20' ) end [2024-12-17 00:32:17] Production.INFO: ProcessCDR(1,14037159,1,1,2) [2024-12-17 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037159', 'tblTempUsageDetail_20' ) start [2024-12-17 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037159', 'tblTempUsageDetail_20' ) end [2024-12-17 00:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:32:20] Production.INFO: ==32567== Releasing lock... [2024-12-17 00:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:32:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:33:05 [end_date_ymd] => 2024-12-17 00:33:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:33:05' and `end` < '2024-12-17 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-17 00:33:17] Production.INFO: count ==241 [2024-12-17 00:33:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:33:05 - End Time 2024-12-17 00:33:05 [2024-12-17 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037164', 'tblTempUsageDetail_20' ) start [2024-12-17 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037164', 'tblTempUsageDetail_20' ) end [2024-12-17 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037164', 'tblTempVendorCDR_20' ) start [2024-12-17 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037164', 'tblTempVendorCDR_20' ) end [2024-12-17 00:33:17] Production.INFO: ProcessCDR(1,14037164,1,1,2) [2024-12-17 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037164', 'tblTempUsageDetail_20' ) start [2024-12-17 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037164', 'tblTempUsageDetail_20' ) end [2024-12-17 00:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:33:20] Production.INFO: ==32646== Releasing lock... [2024-12-17 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:33:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:34:05 [end_date_ymd] => 2024-12-17 00:34:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:34:05' and `end` < '2024-12-17 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-17 00:34:17] Production.INFO: count ==240 [2024-12-17 00:34:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:34:05 - End Time 2024-12-17 00:34:05 [2024-12-17 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037169', 'tblTempUsageDetail_20' ) start [2024-12-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037169', 'tblTempUsageDetail_20' ) end [2024-12-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037169', 'tblTempVendorCDR_20' ) start [2024-12-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037169', 'tblTempVendorCDR_20' ) end [2024-12-17 00:34:17] Production.INFO: ProcessCDR(1,14037169,1,1,2) [2024-12-17 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037169', 'tblTempUsageDetail_20' ) start [2024-12-17 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037169', 'tblTempUsageDetail_20' ) end [2024-12-17 00:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:34:20] Production.INFO: ==32722== Releasing lock... [2024-12-17 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:34:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:35:04 [end_date_ymd] => 2024-12-17 00:35:04 [RateCDR] => 1 ) [2024-12-17 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-16 21:35:04' and `end` < '2024-12-17 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-17 00:35:16] Production.INFO: count ==240 [2024-12-17 00:35:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:35:04 - End Time 2024-12-17 00:35:04 [2024-12-17 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037174', 'tblTempUsageDetail_20' ) start [2024-12-17 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037174', 'tblTempUsageDetail_20' ) end [2024-12-17 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037174', 'tblTempVendorCDR_20' ) start [2024-12-17 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037174', 'tblTempVendorCDR_20' ) end [2024-12-17 00:35:17] Production.INFO: ProcessCDR(1,14037174,1,1,2) [2024-12-17 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037174', 'tblTempUsageDetail_20' ) start [2024-12-17 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037174', 'tblTempUsageDetail_20' ) end [2024-12-17 00:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:35:20] Production.INFO: ==339== Releasing lock... [2024-12-17 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:35:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:36:05 [end_date_ymd] => 2024-12-17 00:36:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:36:05' and `end` < '2024-12-17 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-17 00:36:17] Production.INFO: count ==240 [2024-12-17 00:36:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:36:05 - End Time 2024-12-17 00:36:05 [2024-12-17 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037179', 'tblTempUsageDetail_20' ) start [2024-12-17 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037179', 'tblTempUsageDetail_20' ) end [2024-12-17 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037179', 'tblTempVendorCDR_20' ) start [2024-12-17 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037179', 'tblTempVendorCDR_20' ) end [2024-12-17 00:36:17] Production.INFO: ProcessCDR(1,14037179,1,1,2) [2024-12-17 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037179', 'tblTempUsageDetail_20' ) start [2024-12-17 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037179', 'tblTempUsageDetail_20' ) end [2024-12-17 00:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:36:20] Production.INFO: ==425== Releasing lock... [2024-12-17 00:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:36:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:37:04 [end_date_ymd] => 2024-12-17 00:37:04 [RateCDR] => 1 ) [2024-12-17 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-16 21:37:04' and `end` < '2024-12-17 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-17 00:37:17] Production.INFO: count ==243 [2024-12-17 00:37:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:37:04 - End Time 2024-12-17 00:37:04 [2024-12-17 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037184', 'tblTempUsageDetail_20' ) start [2024-12-17 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037184', 'tblTempUsageDetail_20' ) end [2024-12-17 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037184', 'tblTempVendorCDR_20' ) start [2024-12-17 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037184', 'tblTempVendorCDR_20' ) end [2024-12-17 00:37:17] Production.INFO: ProcessCDR(1,14037184,1,1,2) [2024-12-17 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037184', 'tblTempUsageDetail_20' ) start [2024-12-17 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037184', 'tblTempUsageDetail_20' ) end [2024-12-17 00:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:37:20] Production.INFO: ==505== Releasing lock... [2024-12-17 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:37:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:38:04 [end_date_ymd] => 2024-12-17 00:38:04 [RateCDR] => 1 ) [2024-12-17 00: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-16 21:38:04' and `end` < '2024-12-17 00: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-17 00:38:16] Production.INFO: count ==243 [2024-12-17 00:38:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:38:04 - End Time 2024-12-17 00:38:04 [2024-12-17 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037189', 'tblTempUsageDetail_20' ) start [2024-12-17 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037189', 'tblTempUsageDetail_20' ) end [2024-12-17 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037189', 'tblTempVendorCDR_20' ) start [2024-12-17 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037189', 'tblTempVendorCDR_20' ) end [2024-12-17 00:38:17] Production.INFO: ProcessCDR(1,14037189,1,1,2) [2024-12-17 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:38:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037189', 'tblTempUsageDetail_20' ) start [2024-12-17 00:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037189', 'tblTempUsageDetail_20' ) end [2024-12-17 00:38:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:38:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:38:19] Production.INFO: ==587== Releasing lock... [2024-12-17 00:38:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:38:19] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:39:05 [end_date_ymd] => 2024-12-17 00:39:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:39:05' and `end` < '2024-12-17 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-17 00:39:17] Production.INFO: count ==238 [2024-12-17 00:39:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:39:05 - End Time 2024-12-17 00:39:05 [2024-12-17 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037194', 'tblTempUsageDetail_20' ) start [2024-12-17 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037194', 'tblTempUsageDetail_20' ) end [2024-12-17 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037194', 'tblTempVendorCDR_20' ) start [2024-12-17 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037194', 'tblTempVendorCDR_20' ) end [2024-12-17 00:39:17] Production.INFO: ProcessCDR(1,14037194,1,1,2) [2024-12-17 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037194', 'tblTempUsageDetail_20' ) start [2024-12-17 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037194', 'tblTempUsageDetail_20' ) end [2024-12-17 00:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:39:20] Production.INFO: ==731== Releasing lock... [2024-12-17 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:39:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:40:05 [end_date_ymd] => 2024-12-17 00:40:05 [RateCDR] => 1 ) [2024-12-17 00:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:40:05' and `end` < '2024-12-17 00:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:40:17] Production.INFO: count ==243 [2024-12-17 00:40:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:40:05 - End Time 2024-12-17 00:40:05 [2024-12-17 00:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037200', 'tblTempUsageDetail_20' ) start [2024-12-17 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037200', 'tblTempUsageDetail_20' ) end [2024-12-17 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037200', 'tblTempVendorCDR_20' ) start [2024-12-17 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037200', 'tblTempVendorCDR_20' ) end [2024-12-17 00:40:17] Production.INFO: ProcessCDR(1,14037200,1,1,2) [2024-12-17 00:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037200', 'tblTempUsageDetail_20' ) start [2024-12-17 00:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037200', 'tblTempUsageDetail_20' ) end [2024-12-17 00:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:40:20] Production.INFO: ==809== Releasing lock... [2024-12-17 00:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:40:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:41:05 [end_date_ymd] => 2024-12-17 00:41:05 [RateCDR] => 1 ) [2024-12-17 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:41:05' and `end` < '2024-12-17 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:41:17] Production.INFO: count ==240 [2024-12-17 00:41:18] Production.ERROR: pbx CDR StartTime 2024-12-16 21:41:05 - End Time 2024-12-17 00:41:05 [2024-12-17 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037205', 'tblTempUsageDetail_20' ) start [2024-12-17 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037205', 'tblTempUsageDetail_20' ) end [2024-12-17 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037205', 'tblTempVendorCDR_20' ) start [2024-12-17 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037205', 'tblTempVendorCDR_20' ) end [2024-12-17 00:41:18] Production.INFO: ProcessCDR(1,14037205,1,1,2) [2024-12-17 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037205', 'tblTempUsageDetail_20' ) start [2024-12-17 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037205', 'tblTempUsageDetail_20' ) end [2024-12-17 00:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:41:21] Production.INFO: ==892== Releasing lock... [2024-12-17 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:41:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:42:04 [end_date_ymd] => 2024-12-17 00:42:04 [RateCDR] => 1 ) [2024-12-17 00: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-16 21:42:04' and `end` < '2024-12-17 00: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-17 00:42:16] Production.INFO: count ==237 [2024-12-17 00:42:16] Production.ERROR: pbx CDR StartTime 2024-12-16 21:42:04 - End Time 2024-12-17 00:42:04 [2024-12-17 00:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037210', 'tblTempUsageDetail_20' ) start [2024-12-17 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037210', 'tblTempUsageDetail_20' ) end [2024-12-17 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037210', 'tblTempVendorCDR_20' ) start [2024-12-17 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037210', 'tblTempVendorCDR_20' ) end [2024-12-17 00:42:16] Production.INFO: ProcessCDR(1,14037210,1,1,2) [2024-12-17 00:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:42:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037210', 'tblTempUsageDetail_20' ) start [2024-12-17 00:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037210', 'tblTempUsageDetail_20' ) end [2024-12-17 00:42:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:42:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:42:19] Production.INFO: ==963== Releasing lock... [2024-12-17 00:42:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:42:19] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:43:05 [end_date_ymd] => 2024-12-17 00:43:05 [RateCDR] => 1 ) [2024-12-17 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:43:05' and `end` < '2024-12-17 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:43:17] Production.INFO: count ==235 [2024-12-17 00:43:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:43:05 - End Time 2024-12-17 00:43:05 [2024-12-17 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037215', 'tblTempUsageDetail_20' ) start [2024-12-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037215', 'tblTempUsageDetail_20' ) end [2024-12-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037215', 'tblTempVendorCDR_20' ) start [2024-12-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037215', 'tblTempVendorCDR_20' ) end [2024-12-17 00:43:17] Production.INFO: ProcessCDR(1,14037215,1,1,2) [2024-12-17 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037215', 'tblTempUsageDetail_20' ) start [2024-12-17 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037215', 'tblTempUsageDetail_20' ) end [2024-12-17 00:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:43:20] Production.INFO: ==1043== Releasing lock... [2024-12-17 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:43:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-17 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:44:05 [end_date_ymd] => 2024-12-17 00:44:05 [RateCDR] => 1 ) [2024-12-17 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:44:05' and `end` < '2024-12-17 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:44:17] Production.INFO: count ==234 [2024-12-17 00:44:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:44:05 - End Time 2024-12-17 00:44:05 [2024-12-17 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037220', 'tblTempUsageDetail_20' ) start [2024-12-17 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037220', 'tblTempUsageDetail_20' ) end [2024-12-17 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037220', 'tblTempVendorCDR_20' ) start [2024-12-17 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037220', 'tblTempVendorCDR_20' ) end [2024-12-17 00:44:17] Production.INFO: ProcessCDR(1,14037220,1,1,2) [2024-12-17 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037220', 'tblTempUsageDetail_20' ) start [2024-12-17 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037220', 'tblTempUsageDetail_20' ) end [2024-12-17 00:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:44:20] Production.INFO: ==1115== Releasing lock... [2024-12-17 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:44:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-17 00:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:45:04 [end_date_ymd] => 2024-12-17 00:45:04 [RateCDR] => 1 ) [2024-12-17 00: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-16 21:45:04' and `end` < '2024-12-17 00: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-17 00:45:16] Production.INFO: count ==234 [2024-12-17 00:45:16] Production.ERROR: pbx CDR StartTime 2024-12-16 21:45:04 - End Time 2024-12-17 00:45:04 [2024-12-17 00:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037224', 'tblTempUsageDetail_20' ) start [2024-12-17 00:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037224', 'tblTempUsageDetail_20' ) end [2024-12-17 00:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037224', 'tblTempVendorCDR_20' ) start [2024-12-17 00:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037224', 'tblTempVendorCDR_20' ) end [2024-12-17 00:45:16] Production.INFO: ProcessCDR(1,14037224,1,1,2) [2024-12-17 00:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037224', 'tblTempUsageDetail_20' ) start [2024-12-17 00:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037224', 'tblTempUsageDetail_20' ) end [2024-12-17 00:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:45:19] Production.INFO: ==1200== Releasing lock... [2024-12-17 00:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:45:19] Production.INFO: 30.75 MB #Memory Used# [2024-12-17 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:46:05 [end_date_ymd] => 2024-12-17 00:46:05 [RateCDR] => 1 ) [2024-12-17 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:46:05' and `end` < '2024-12-17 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:46:17] Production.INFO: count ==234 [2024-12-17 00:46:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:46:05 - End Time 2024-12-17 00:46:05 [2024-12-17 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037230', 'tblTempUsageDetail_20' ) start [2024-12-17 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037230', 'tblTempUsageDetail_20' ) end [2024-12-17 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037230', 'tblTempVendorCDR_20' ) start [2024-12-17 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037230', 'tblTempVendorCDR_20' ) end [2024-12-17 00:46:17] Production.INFO: ProcessCDR(1,14037230,1,1,2) [2024-12-17 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037230', 'tblTempUsageDetail_20' ) start [2024-12-17 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037230', 'tblTempUsageDetail_20' ) end [2024-12-17 00:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:46:20] Production.INFO: ==1283== Releasing lock... [2024-12-17 00:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:46:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-17 00:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:47:04 [end_date_ymd] => 2024-12-17 00:47:04 [RateCDR] => 1 ) [2024-12-17 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-16 21:47:04' and `end` < '2024-12-17 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-17 00:47:16] Production.INFO: count ==233 [2024-12-17 00:47:16] Production.ERROR: pbx CDR StartTime 2024-12-16 21:47:04 - End Time 2024-12-17 00:47:04 [2024-12-17 00:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037235', 'tblTempUsageDetail_20' ) start [2024-12-17 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037235', 'tblTempUsageDetail_20' ) end [2024-12-17 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037235', 'tblTempVendorCDR_20' ) start [2024-12-17 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037235', 'tblTempVendorCDR_20' ) end [2024-12-17 00:47:16] Production.INFO: ProcessCDR(1,14037235,1,1,2) [2024-12-17 00:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037235', 'tblTempUsageDetail_20' ) start [2024-12-17 00:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037235', 'tblTempUsageDetail_20' ) end [2024-12-17 00:47:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:47:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:47:19] Production.INFO: ==1359== Releasing lock... [2024-12-17 00:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:47:19] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:48:05 [end_date_ymd] => 2024-12-17 00:48:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:48:05' and `end` < '2024-12-17 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-17 00:48:17] Production.INFO: count ==233 [2024-12-17 00:48:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:48:05 - End Time 2024-12-17 00:48:05 [2024-12-17 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037240', 'tblTempUsageDetail_20' ) start [2024-12-17 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037240', 'tblTempUsageDetail_20' ) end [2024-12-17 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037240', 'tblTempVendorCDR_20' ) start [2024-12-17 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037240', 'tblTempVendorCDR_20' ) end [2024-12-17 00:48:17] Production.INFO: ProcessCDR(1,14037240,1,1,2) [2024-12-17 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037240', 'tblTempUsageDetail_20' ) start [2024-12-17 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037240', 'tblTempUsageDetail_20' ) end [2024-12-17 00:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:48:20] Production.INFO: ==1435== Releasing lock... [2024-12-17 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:48:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:49:04 [end_date_ymd] => 2024-12-17 00:49:04 [RateCDR] => 1 ) [2024-12-17 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:49:04' and `end` < '2024-12-17 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-17 00:49:17] Production.INFO: count ==232 [2024-12-17 00:49:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:49:04 - End Time 2024-12-17 00:49:04 [2024-12-17 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037245', 'tblTempUsageDetail_20' ) start [2024-12-17 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037245', 'tblTempUsageDetail_20' ) end [2024-12-17 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037245', 'tblTempVendorCDR_20' ) start [2024-12-17 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037245', 'tblTempVendorCDR_20' ) end [2024-12-17 00:49:17] Production.INFO: ProcessCDR(1,14037245,1,1,2) [2024-12-17 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037245', 'tblTempUsageDetail_20' ) start [2024-12-17 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037245', 'tblTempUsageDetail_20' ) end [2024-12-17 00:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:49:20] Production.INFO: ==1539== Releasing lock... [2024-12-17 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:49:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:50:05 [end_date_ymd] => 2024-12-17 00:50:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:50:05' and `end` < '2024-12-17 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-17 00:50:17] Production.INFO: count ==236 [2024-12-17 00:50:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:50:05 - End Time 2024-12-17 00:50:05 [2024-12-17 00:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037250', 'tblTempUsageDetail_20' ) start [2024-12-17 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037250', 'tblTempUsageDetail_20' ) end [2024-12-17 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037250', 'tblTempVendorCDR_20' ) start [2024-12-17 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037250', 'tblTempVendorCDR_20' ) end [2024-12-17 00:50:17] Production.INFO: ProcessCDR(1,14037250,1,1,2) [2024-12-17 00:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037250', 'tblTempUsageDetail_20' ) start [2024-12-17 00:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037250', 'tblTempUsageDetail_20' ) end [2024-12-17 00:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:50:20] Production.INFO: ==1621== Releasing lock... [2024-12-17 00:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:50:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:51:05 [end_date_ymd] => 2024-12-17 00:51:05 [RateCDR] => 1 ) [2024-12-17 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:51:05' and `end` < '2024-12-17 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:51:17] Production.INFO: count ==244 [2024-12-17 00:51:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:51:05 - End Time 2024-12-17 00:51:05 [2024-12-17 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037256', 'tblTempUsageDetail_20' ) start [2024-12-17 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037256', 'tblTempUsageDetail_20' ) end [2024-12-17 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037256', 'tblTempVendorCDR_20' ) start [2024-12-17 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037256', 'tblTempVendorCDR_20' ) end [2024-12-17 00:51:17] Production.INFO: ProcessCDR(1,14037256,1,1,2) [2024-12-17 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037256', 'tblTempUsageDetail_20' ) start [2024-12-17 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037256', 'tblTempUsageDetail_20' ) end [2024-12-17 00:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:51:20] Production.INFO: ==1699== Releasing lock... [2024-12-17 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:51:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:52:04 [end_date_ymd] => 2024-12-17 00:52:04 [RateCDR] => 1 ) [2024-12-17 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-16 21:52:04' and `end` < '2024-12-17 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-17 00:52:17] Production.INFO: count ==242 [2024-12-17 00:52:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:52:04 - End Time 2024-12-17 00:52:04 [2024-12-17 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037261', 'tblTempUsageDetail_20' ) start [2024-12-17 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037261', 'tblTempUsageDetail_20' ) end [2024-12-17 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037261', 'tblTempVendorCDR_20' ) start [2024-12-17 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037261', 'tblTempVendorCDR_20' ) end [2024-12-17 00:52:17] Production.INFO: ProcessCDR(1,14037261,1,1,2) [2024-12-17 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037261', 'tblTempUsageDetail_20' ) start [2024-12-17 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037261', 'tblTempUsageDetail_20' ) end [2024-12-17 00:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:52:20] Production.INFO: ==1773== Releasing lock... [2024-12-17 00:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:52:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:53:04 [end_date_ymd] => 2024-12-17 00:53:04 [RateCDR] => 1 ) [2024-12-17 00:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:53:04' and `end` < '2024-12-17 00:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:53:17] Production.INFO: count ==241 [2024-12-17 00:53:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:53:04 - End Time 2024-12-17 00:53:04 [2024-12-17 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037266', 'tblTempUsageDetail_20' ) start [2024-12-17 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037266', 'tblTempUsageDetail_20' ) end [2024-12-17 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037266', 'tblTempVendorCDR_20' ) start [2024-12-17 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037266', 'tblTempVendorCDR_20' ) end [2024-12-17 00:53:17] Production.INFO: ProcessCDR(1,14037266,1,1,2) [2024-12-17 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037266', 'tblTempUsageDetail_20' ) start [2024-12-17 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037266', 'tblTempUsageDetail_20' ) end [2024-12-17 00:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:53:20] Production.INFO: ==1852== Releasing lock... [2024-12-17 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:53:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:54:05 [end_date_ymd] => 2024-12-17 00:54:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:54:05' and `end` < '2024-12-17 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-17 00:54:17] Production.INFO: count ==241 [2024-12-17 00:54:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:54:05 - End Time 2024-12-17 00:54:05 [2024-12-17 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037271', 'tblTempUsageDetail_20' ) start [2024-12-17 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037271', 'tblTempUsageDetail_20' ) end [2024-12-17 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037271', 'tblTempVendorCDR_20' ) start [2024-12-17 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037271', 'tblTempVendorCDR_20' ) end [2024-12-17 00:54:17] Production.INFO: ProcessCDR(1,14037271,1,1,2) [2024-12-17 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037271', 'tblTempUsageDetail_20' ) start [2024-12-17 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037271', 'tblTempUsageDetail_20' ) end [2024-12-17 00:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:54:20] Production.INFO: ==1925== Releasing lock... [2024-12-17 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:54:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:55:05 [end_date_ymd] => 2024-12-17 00:55:05 [RateCDR] => 1 ) [2024-12-17 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:55:05' and `end` < '2024-12-17 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:55:17] Production.INFO: count ==243 [2024-12-17 00:55:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:55:05 - End Time 2024-12-17 00:55:05 [2024-12-17 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037276', 'tblTempUsageDetail_20' ) start [2024-12-17 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037276', 'tblTempUsageDetail_20' ) end [2024-12-17 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037276', 'tblTempVendorCDR_20' ) start [2024-12-17 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037276', 'tblTempVendorCDR_20' ) end [2024-12-17 00:55:17] Production.INFO: ProcessCDR(1,14037276,1,1,2) [2024-12-17 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037276', 'tblTempUsageDetail_20' ) start [2024-12-17 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037276', 'tblTempUsageDetail_20' ) end [2024-12-17 00:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:55:21] Production.INFO: ==2037== Releasing lock... [2024-12-17 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:55:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:56:04 [end_date_ymd] => 2024-12-17 00:56:04 [RateCDR] => 1 ) [2024-12-17 00: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-16 21:56:04' and `end` < '2024-12-17 00: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-17 00:56:16] Production.INFO: count ==240 [2024-12-17 00:56:16] Production.ERROR: pbx CDR StartTime 2024-12-16 21:56:04 - End Time 2024-12-17 00:56:04 [2024-12-17 00:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037279', 'tblTempUsageDetail_20' ) start [2024-12-17 00:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037279', 'tblTempUsageDetail_20' ) end [2024-12-17 00:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037279', 'tblTempVendorCDR_20' ) start [2024-12-17 00:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037279', 'tblTempVendorCDR_20' ) end [2024-12-17 00:56:16] Production.INFO: ProcessCDR(1,14037279,1,1,2) [2024-12-17 00:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:56:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037279', 'tblTempUsageDetail_20' ) start [2024-12-17 00:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037279', 'tblTempUsageDetail_20' ) end [2024-12-17 00:56:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:56:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:56:19] Production.INFO: ==2107== Releasing lock... [2024-12-17 00:56:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:56:19] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:57:05 [end_date_ymd] => 2024-12-17 00:57:05 [RateCDR] => 1 ) [2024-12-17 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 21:57:05' and `end` < '2024-12-17 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 00:57:17] Production.INFO: count ==236 [2024-12-17 00:57:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:57:05 - End Time 2024-12-17 00:57:05 [2024-12-17 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037286', 'tblTempUsageDetail_20' ) start [2024-12-17 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037286', 'tblTempUsageDetail_20' ) end [2024-12-17 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037286', 'tblTempVendorCDR_20' ) start [2024-12-17 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037286', 'tblTempVendorCDR_20' ) end [2024-12-17 00:57:17] Production.INFO: ProcessCDR(1,14037286,1,1,2) [2024-12-17 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037286', 'tblTempUsageDetail_20' ) start [2024-12-17 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037286', 'tblTempUsageDetail_20' ) end [2024-12-17 00:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:57:20] Production.INFO: ==2182== Releasing lock... [2024-12-17 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:57:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:58:05 [end_date_ymd] => 2024-12-17 00:58:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:58:05' and `end` < '2024-12-17 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-17 00:58:18] Production.INFO: count ==231 [2024-12-17 00:58:18] Production.ERROR: pbx CDR StartTime 2024-12-16 21:58:05 - End Time 2024-12-17 00:58:05 [2024-12-17 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037291', 'tblTempUsageDetail_20' ) start [2024-12-17 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037291', 'tblTempUsageDetail_20' ) end [2024-12-17 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037291', 'tblTempVendorCDR_20' ) start [2024-12-17 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037291', 'tblTempVendorCDR_20' ) end [2024-12-17 00:58:18] Production.INFO: ProcessCDR(1,14037291,1,1,2) [2024-12-17 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037291', 'tblTempUsageDetail_20' ) start [2024-12-17 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037291', 'tblTempUsageDetail_20' ) end [2024-12-17 00:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:58:21] Production.INFO: ==2260== Releasing lock... [2024-12-17 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:58:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 21:59:05 [end_date_ymd] => 2024-12-17 00:59:05 [RateCDR] => 1 ) [2024-12-17 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-16 21:59:05' and `end` < '2024-12-17 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-17 00:59:17] Production.INFO: count ==228 [2024-12-17 00:59:17] Production.ERROR: pbx CDR StartTime 2024-12-16 21:59:05 - End Time 2024-12-17 00:59:05 [2024-12-17 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037296', 'tblTempUsageDetail_20' ) start [2024-12-17 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037296', 'tblTempUsageDetail_20' ) end [2024-12-17 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037296', 'tblTempVendorCDR_20' ) start [2024-12-17 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037296', 'tblTempVendorCDR_20' ) end [2024-12-17 00:59:17] Production.INFO: ProcessCDR(1,14037296,1,1,2) [2024-12-17 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037296', 'tblTempUsageDetail_20' ) start [2024-12-17 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037296', 'tblTempUsageDetail_20' ) end [2024-12-17 00:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 00:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 00:59:20] Production.INFO: ==2332== Releasing lock... [2024-12-17 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 00:59:20] Production.INFO: 30 MB #Memory Used# [2024-12-17 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:00:05 [end_date_ymd] => 2024-12-17 01:00:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:00:05' and `end` < '2024-12-17 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-17 01:00:17] Production.INFO: count ==250 [2024-12-17 01:00:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:00:05 - End Time 2024-12-17 01:00:05 [2024-12-17 01:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037301', 'tblTempUsageDetail_20' ) start [2024-12-17 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037301', 'tblTempUsageDetail_20' ) end [2024-12-17 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037301', 'tblTempVendorCDR_20' ) start [2024-12-17 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037301', 'tblTempVendorCDR_20' ) end [2024-12-17 01:00:17] Production.INFO: ProcessCDR(1,14037301,1,1,2) [2024-12-17 01:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037301', 'tblTempUsageDetail_20' ) start [2024-12-17 01:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037301', 'tblTempUsageDetail_20' ) end [2024-12-17 01:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:00:20] Production.INFO: ==2407== Releasing lock... [2024-12-17 01:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:00:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 01:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:01:04 [end_date_ymd] => 2024-12-17 01:01:04 [RateCDR] => 1 ) [2024-12-17 01: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-16 22:01:04' and `end` < '2024-12-17 01: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-17 01:01:16] Production.INFO: count ==294 [2024-12-17 01:01:16] Production.ERROR: pbx CDR StartTime 2024-12-16 22:01:04 - End Time 2024-12-17 01:01:04 [2024-12-17 01:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037307', 'tblTempUsageDetail_20' ) start [2024-12-17 01:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037307', 'tblTempUsageDetail_20' ) end [2024-12-17 01:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037307', 'tblTempVendorCDR_20' ) start [2024-12-17 01:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037307', 'tblTempVendorCDR_20' ) end [2024-12-17 01:01:16] Production.INFO: ProcessCDR(1,14037307,1,1,2) [2024-12-17 01:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:01:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:01:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:01:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037307', 'tblTempUsageDetail_20' ) start [2024-12-17 01:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037307', 'tblTempUsageDetail_20' ) end [2024-12-17 01:01:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:01:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:01:19] Production.INFO: ==2501== Releasing lock... [2024-12-17 01:01:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:01:19] Production.INFO: 31 MB #Memory Used# [2024-12-17 01:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:02:04 [end_date_ymd] => 2024-12-17 01:02:04 [RateCDR] => 1 ) [2024-12-17 01: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-16 22:02:04' and `end` < '2024-12-17 01: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-17 01:02:16] Production.INFO: count ==332 [2024-12-17 01:02:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:02:04 - End Time 2024-12-17 01:02:04 [2024-12-17 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037312', 'tblTempUsageDetail_20' ) start [2024-12-17 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037312', 'tblTempUsageDetail_20' ) end [2024-12-17 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037312', 'tblTempVendorCDR_20' ) start [2024-12-17 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037312', 'tblTempVendorCDR_20' ) end [2024-12-17 01:02:17] Production.INFO: ProcessCDR(1,14037312,1,1,2) [2024-12-17 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:02:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:02:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037312', 'tblTempUsageDetail_20' ) start [2024-12-17 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037312', 'tblTempUsageDetail_20' ) end [2024-12-17 01:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:02:20] Production.INFO: ==2577== Releasing lock... [2024-12-17 01:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:02:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-17 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:03:05 [end_date_ymd] => 2024-12-17 01:03:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:03:05' and `end` < '2024-12-17 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-17 01:03:17] Production.INFO: count ==371 [2024-12-17 01:03:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:03:05 - End Time 2024-12-17 01:03:05 [2024-12-17 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037317', 'tblTempUsageDetail_20' ) start [2024-12-17 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037317', 'tblTempUsageDetail_20' ) end [2024-12-17 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037317', 'tblTempVendorCDR_20' ) start [2024-12-17 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037317', 'tblTempVendorCDR_20' ) end [2024-12-17 01:03:17] Production.INFO: ProcessCDR(1,14037317,1,1,2) [2024-12-17 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037317', 'tblTempUsageDetail_20' ) start [2024-12-17 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037317', 'tblTempUsageDetail_20' ) end [2024-12-17 01:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:03:21] Production.INFO: ==2651== Releasing lock... [2024-12-17 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:03:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-17 01:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:04:04 [end_date_ymd] => 2024-12-17 01:04:04 [RateCDR] => 1 ) [2024-12-17 01: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-16 22:04:04' and `end` < '2024-12-17 01: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-17 01:04:16] Production.INFO: count ==401 [2024-12-17 01:04:16] Production.ERROR: pbx CDR StartTime 2024-12-16 22:04:04 - End Time 2024-12-17 01:04:04 [2024-12-17 01:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037322', 'tblTempUsageDetail_20' ) start [2024-12-17 01:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037322', 'tblTempUsageDetail_20' ) end [2024-12-17 01:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037322', 'tblTempVendorCDR_20' ) start [2024-12-17 01:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037322', 'tblTempVendorCDR_20' ) end [2024-12-17 01:04:16] Production.INFO: ProcessCDR(1,14037322,1,1,2) [2024-12-17 01:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:04:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:04:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:04:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037322', 'tblTempUsageDetail_20' ) start [2024-12-17 01:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037322', 'tblTempUsageDetail_20' ) end [2024-12-17 01:04:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:04:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:04:19] Production.INFO: ==2725== Releasing lock... [2024-12-17 01:04:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:04:19] Production.INFO: 31.5 MB #Memory Used# [2024-12-17 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:05:05 [end_date_ymd] => 2024-12-17 01:05:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:05:05' and `end` < '2024-12-17 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-17 01:05:17] Production.INFO: count ==434 [2024-12-17 01:05:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:05:05 - End Time 2024-12-17 01:05:05 [2024-12-17 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037327', 'tblTempUsageDetail_20' ) start [2024-12-17 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037327', 'tblTempUsageDetail_20' ) end [2024-12-17 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037327', 'tblTempVendorCDR_20' ) start [2024-12-17 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037327', 'tblTempVendorCDR_20' ) end [2024-12-17 01:05:17] Production.INFO: ProcessCDR(1,14037327,1,1,2) [2024-12-17 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037327', 'tblTempUsageDetail_20' ) start [2024-12-17 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037327', 'tblTempUsageDetail_20' ) end [2024-12-17 01:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:05:21] Production.INFO: ==2799== Releasing lock... [2024-12-17 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:05:21] Production.INFO: 32 MB #Memory Used# [2024-12-17 01:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:06:04 [end_date_ymd] => 2024-12-17 01:06:04 [RateCDR] => 1 ) [2024-12-17 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-16 22:06:04' and `end` < '2024-12-17 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-17 01:06:16] Production.INFO: count ==479 [2024-12-17 01:06:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:06:04 - End Time 2024-12-17 01:06:04 [2024-12-17 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037332', 'tblTempUsageDetail_20' ) start [2024-12-17 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037332', 'tblTempUsageDetail_20' ) end [2024-12-17 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037332', 'tblTempVendorCDR_20' ) start [2024-12-17 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037332', 'tblTempVendorCDR_20' ) end [2024-12-17 01:06:17] Production.INFO: ProcessCDR(1,14037332,1,1,2) [2024-12-17 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037332', 'tblTempUsageDetail_20' ) start [2024-12-17 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037332', 'tblTempUsageDetail_20' ) end [2024-12-17 01:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:06:20] Production.INFO: ==2869== Releasing lock... [2024-12-17 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:06:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-17 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:07:05 [end_date_ymd] => 2024-12-17 01:07:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:07:05' and `end` < '2024-12-17 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-17 01:07:17] Production.INFO: count ==518 [2024-12-17 01:07:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:07:05 - End Time 2024-12-17 01:07:05 [2024-12-17 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037337', 'tblTempUsageDetail_20' ) start [2024-12-17 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037337', 'tblTempUsageDetail_20' ) end [2024-12-17 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037337', 'tblTempVendorCDR_20' ) start [2024-12-17 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037337', 'tblTempVendorCDR_20' ) end [2024-12-17 01:07:17] Production.INFO: ProcessCDR(1,14037337,1,1,2) [2024-12-17 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037337', 'tblTempUsageDetail_20' ) start [2024-12-17 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037337', 'tblTempUsageDetail_20' ) end [2024-12-17 01:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:07:20] Production.INFO: ==2951== Releasing lock... [2024-12-17 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:07:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-17 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:08:05 [end_date_ymd] => 2024-12-17 01:08:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:08:05' and `end` < '2024-12-17 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-17 01:08:17] Production.INFO: count ==557 [2024-12-17 01:08:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:08:05 - End Time 2024-12-17 01:08:05 [2024-12-17 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037342', 'tblTempUsageDetail_20' ) start [2024-12-17 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037342', 'tblTempUsageDetail_20' ) end [2024-12-17 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037342', 'tblTempVendorCDR_20' ) start [2024-12-17 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037342', 'tblTempVendorCDR_20' ) end [2024-12-17 01:08:17] Production.INFO: ProcessCDR(1,14037342,1,1,2) [2024-12-17 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037342', 'tblTempUsageDetail_20' ) start [2024-12-17 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037342', 'tblTempUsageDetail_20' ) end [2024-12-17 01:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:08:20] Production.INFO: ==3030== Releasing lock... [2024-12-17 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:08:20] Production.INFO: 33 MB #Memory Used# [2024-12-17 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:09:04 [end_date_ymd] => 2024-12-17 01:09:04 [RateCDR] => 1 ) [2024-12-17 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-16 22:09:04' and `end` < '2024-12-17 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-17 01:09:16] Production.INFO: count ==595 [2024-12-17 01:09:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:09:04 - End Time 2024-12-17 01:09:04 [2024-12-17 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037347', 'tblTempUsageDetail_20' ) start [2024-12-17 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037347', 'tblTempUsageDetail_20' ) end [2024-12-17 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037347', 'tblTempVendorCDR_20' ) start [2024-12-17 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037347', 'tblTempVendorCDR_20' ) end [2024-12-17 01:09:17] Production.INFO: ProcessCDR(1,14037347,1,1,2) [2024-12-17 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037347', 'tblTempUsageDetail_20' ) start [2024-12-17 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037347', 'tblTempUsageDetail_20' ) end [2024-12-17 01:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:09:20] Production.INFO: ==3101== Releasing lock... [2024-12-17 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:09:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-17 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:10:05 [end_date_ymd] => 2024-12-17 01:10:05 [RateCDR] => 1 ) [2024-12-17 01: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-16 22:10:05' and `end` < '2024-12-17 01: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-17 01:10:18] Production.INFO: count ==641 [2024-12-17 01:10:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:10:05 - End Time 2024-12-17 01:10:05 [2024-12-17 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037352', 'tblTempUsageDetail_20' ) start [2024-12-17 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037352', 'tblTempUsageDetail_20' ) end [2024-12-17 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037352', 'tblTempVendorCDR_20' ) start [2024-12-17 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037352', 'tblTempVendorCDR_20' ) end [2024-12-17 01:10:18] Production.INFO: ProcessCDR(1,14037352,1,1,2) [2024-12-17 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037352', 'tblTempUsageDetail_20' ) start [2024-12-17 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037352', 'tblTempUsageDetail_20' ) end [2024-12-17 01:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:10:21] Production.INFO: ==3175== Releasing lock... [2024-12-17 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:10:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-17 01:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:11:04 [end_date_ymd] => 2024-12-17 01:11:04 [RateCDR] => 1 ) [2024-12-17 01: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-16 22:11:04' and `end` < '2024-12-17 01: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-17 01:11:16] Production.INFO: count ==676 [2024-12-17 01:11:16] Production.ERROR: pbx CDR StartTime 2024-12-16 22:11:04 - End Time 2024-12-17 01:11:04 [2024-12-17 01:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037358', 'tblTempUsageDetail_20' ) start [2024-12-17 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037358', 'tblTempUsageDetail_20' ) end [2024-12-17 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037358', 'tblTempVendorCDR_20' ) start [2024-12-17 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037358', 'tblTempVendorCDR_20' ) end [2024-12-17 01:11:17] Production.INFO: ProcessCDR(1,14037358,1,1,2) [2024-12-17 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037358', 'tblTempUsageDetail_20' ) start [2024-12-17 01:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037358', 'tblTempUsageDetail_20' ) end [2024-12-17 01:11:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:11:20] Production.INFO: ==3288== Releasing lock... [2024-12-17 01:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:11:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-17 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:12:04 [end_date_ymd] => 2024-12-17 01:12:04 [RateCDR] => 1 ) [2024-12-17 01: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-16 22:12:04' and `end` < '2024-12-17 01: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-17 01:12:17] Production.INFO: count ==713 [2024-12-17 01:12:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:12:04 - End Time 2024-12-17 01:12:04 [2024-12-17 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037363', 'tblTempUsageDetail_20' ) start [2024-12-17 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037363', 'tblTempUsageDetail_20' ) end [2024-12-17 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037363', 'tblTempVendorCDR_20' ) start [2024-12-17 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037363', 'tblTempVendorCDR_20' ) end [2024-12-17 01:12:17] Production.INFO: ProcessCDR(1,14037363,1,1,2) [2024-12-17 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037363', 'tblTempUsageDetail_20' ) start [2024-12-17 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037363', 'tblTempUsageDetail_20' ) end [2024-12-17 01:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:12:20] Production.INFO: ==3360== Releasing lock... [2024-12-17 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:12:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:13:06 [end_date_ymd] => 2024-12-17 01:13:06 [RateCDR] => 1 ) [2024-12-17 01:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 22:13:06' and `end` < '2024-12-17 01:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 01:13:18] Production.INFO: count ==741 [2024-12-17 01:13:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:13:06 - End Time 2024-12-17 01:13:06 [2024-12-17 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037368', 'tblTempUsageDetail_20' ) start [2024-12-17 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037368', 'tblTempUsageDetail_20' ) end [2024-12-17 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037368', 'tblTempVendorCDR_20' ) start [2024-12-17 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037368', 'tblTempVendorCDR_20' ) end [2024-12-17 01:13:18] Production.INFO: ProcessCDR(1,14037368,1,1,2) [2024-12-17 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037368', 'tblTempUsageDetail_20' ) start [2024-12-17 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037368', 'tblTempUsageDetail_20' ) end [2024-12-17 01:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:13:22] Production.INFO: ==3434== Releasing lock... [2024-12-17 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:13:22] Production.INFO: 34 MB #Memory Used# [2024-12-17 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:14:05 [end_date_ymd] => 2024-12-17 01:14:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:14:05' and `end` < '2024-12-17 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-17 01:14:17] Production.INFO: count ==776 [2024-12-17 01:14:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:14:05 - End Time 2024-12-17 01:14:05 [2024-12-17 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037373', 'tblTempUsageDetail_20' ) start [2024-12-17 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037373', 'tblTempUsageDetail_20' ) end [2024-12-17 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037373', 'tblTempVendorCDR_20' ) start [2024-12-17 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037373', 'tblTempVendorCDR_20' ) end [2024-12-17 01:14:17] Production.INFO: ProcessCDR(1,14037373,1,1,2) [2024-12-17 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037373', 'tblTempUsageDetail_20' ) start [2024-12-17 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037373', 'tblTempUsageDetail_20' ) end [2024-12-17 01:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:14:20] Production.INFO: ==3508== Releasing lock... [2024-12-17 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:14:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-17 01:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:15:04 [end_date_ymd] => 2024-12-17 01:15:04 [RateCDR] => 1 ) [2024-12-17 01: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-16 22:15:04' and `end` < '2024-12-17 01: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-17 01:15:16] Production.INFO: count ==1386 [2024-12-17 01:15:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:15:04 - End Time 2024-12-17 01:15:04 [2024-12-17 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037378', 'tblTempUsageDetail_20' ) start [2024-12-17 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037378', 'tblTempUsageDetail_20' ) end [2024-12-17 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037378', 'tblTempVendorCDR_20' ) start [2024-12-17 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037378', 'tblTempVendorCDR_20' ) end [2024-12-17 01:15:17] Production.INFO: ProcessCDR(1,14037378,1,1,2) [2024-12-17 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037378', 'tblTempUsageDetail_20' ) start [2024-12-17 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037378', 'tblTempUsageDetail_20' ) end [2024-12-17 01:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:15:23] Production.INFO: ==3581== Releasing lock... [2024-12-17 01:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:15:23] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:16:04 [end_date_ymd] => 2024-12-17 01:16:04 [RateCDR] => 1 ) [2024-12-17 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-16 22:16:04' and `end` < '2024-12-17 01: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-17 01:16:17] Production.INFO: count ==1386 [2024-12-17 01:16:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:16:04 - End Time 2024-12-17 01:16:04 [2024-12-17 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037383', 'tblTempUsageDetail_20' ) start [2024-12-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037383', 'tblTempUsageDetail_20' ) end [2024-12-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037383', 'tblTempVendorCDR_20' ) start [2024-12-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037383', 'tblTempVendorCDR_20' ) end [2024-12-17 01:16:17] Production.INFO: ProcessCDR(1,14037383,1,1,2) [2024-12-17 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037383', 'tblTempUsageDetail_20' ) start [2024-12-17 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037383', 'tblTempUsageDetail_20' ) end [2024-12-17 01:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:16:21] Production.INFO: ==3653== Releasing lock... [2024-12-17 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:16:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:17:05 [end_date_ymd] => 2024-12-17 01:17:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:17:05' and `end` < '2024-12-17 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-17 01:17:17] Production.INFO: count ==1386 [2024-12-17 01:17:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:17:05 - End Time 2024-12-17 01:17:05 [2024-12-17 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037388', 'tblTempUsageDetail_20' ) start [2024-12-17 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037388', 'tblTempUsageDetail_20' ) end [2024-12-17 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037388', 'tblTempVendorCDR_20' ) start [2024-12-17 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037388', 'tblTempVendorCDR_20' ) end [2024-12-17 01:17:17] Production.INFO: ProcessCDR(1,14037388,1,1,2) [2024-12-17 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037388', 'tblTempUsageDetail_20' ) start [2024-12-17 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037388', 'tblTempUsageDetail_20' ) end [2024-12-17 01:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:17:20] Production.INFO: ==3723== Releasing lock... [2024-12-17 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:17:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:18:05 [end_date_ymd] => 2024-12-17 01:18:05 [RateCDR] => 1 ) [2024-12-17 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 22:18:05' and `end` < '2024-12-17 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 01:18:17] Production.INFO: count ==1386 [2024-12-17 01:18:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:18:05 - End Time 2024-12-17 01:18:05 [2024-12-17 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037393', 'tblTempUsageDetail_20' ) start [2024-12-17 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037393', 'tblTempUsageDetail_20' ) end [2024-12-17 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037393', 'tblTempVendorCDR_20' ) start [2024-12-17 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037393', 'tblTempVendorCDR_20' ) end [2024-12-17 01:18:18] Production.INFO: ProcessCDR(1,14037393,1,1,2) [2024-12-17 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037393', 'tblTempUsageDetail_20' ) start [2024-12-17 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037393', 'tblTempUsageDetail_20' ) end [2024-12-17 01:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:18:21] Production.INFO: ==3796== Releasing lock... [2024-12-17 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:18:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:19:05 [end_date_ymd] => 2024-12-17 01:19:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:19:05' and `end` < '2024-12-17 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-17 01:19:17] Production.INFO: count ==1386 [2024-12-17 01:19:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:19:05 - End Time 2024-12-17 01:19:05 [2024-12-17 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037398', 'tblTempUsageDetail_20' ) start [2024-12-17 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037398', 'tblTempUsageDetail_20' ) end [2024-12-17 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037398', 'tblTempVendorCDR_20' ) start [2024-12-17 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037398', 'tblTempVendorCDR_20' ) end [2024-12-17 01:19:18] Production.INFO: ProcessCDR(1,14037398,1,1,2) [2024-12-17 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037398', 'tblTempUsageDetail_20' ) start [2024-12-17 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037398', 'tblTempUsageDetail_20' ) end [2024-12-17 01:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:19:21] Production.INFO: ==3869== Releasing lock... [2024-12-17 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:19:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:20:05 [end_date_ymd] => 2024-12-17 01:20:05 [RateCDR] => 1 ) [2024-12-17 01:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 22:20:05' and `end` < '2024-12-17 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 01:20:18] Production.INFO: count ==1390 [2024-12-17 01:20:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:20:05 - End Time 2024-12-17 01:20:05 [2024-12-17 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037403', 'tblTempUsageDetail_20' ) start [2024-12-17 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037403', 'tblTempUsageDetail_20' ) end [2024-12-17 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037403', 'tblTempVendorCDR_20' ) start [2024-12-17 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037403', 'tblTempVendorCDR_20' ) end [2024-12-17 01:20:18] Production.INFO: ProcessCDR(1,14037403,1,1,2) [2024-12-17 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037403', 'tblTempUsageDetail_20' ) start [2024-12-17 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037403', 'tblTempUsageDetail_20' ) end [2024-12-17 01:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:20:21] Production.INFO: ==3943== Releasing lock... [2024-12-17 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:20:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:21:05 [end_date_ymd] => 2024-12-17 01:21:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:21:05' and `end` < '2024-12-17 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-17 01:21:18] Production.INFO: count ==1390 [2024-12-17 01:21:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:21:05 - End Time 2024-12-17 01:21:05 [2024-12-17 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037409', 'tblTempUsageDetail_20' ) start [2024-12-17 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037409', 'tblTempUsageDetail_20' ) end [2024-12-17 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037409', 'tblTempVendorCDR_20' ) start [2024-12-17 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037409', 'tblTempVendorCDR_20' ) end [2024-12-17 01:21:18] Production.INFO: ProcessCDR(1,14037409,1,1,2) [2024-12-17 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037409', 'tblTempUsageDetail_20' ) start [2024-12-17 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037409', 'tblTempUsageDetail_20' ) end [2024-12-17 01:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:21:21] Production.INFO: ==4016== Releasing lock... [2024-12-17 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:21:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:22:05 [end_date_ymd] => 2024-12-17 01:22:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:22:05' and `end` < '2024-12-17 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-17 01:22:17] Production.INFO: count ==1390 [2024-12-17 01:22:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:22:05 - End Time 2024-12-17 01:22:05 [2024-12-17 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037414', 'tblTempUsageDetail_20' ) start [2024-12-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037414', 'tblTempUsageDetail_20' ) end [2024-12-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037414', 'tblTempVendorCDR_20' ) start [2024-12-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037414', 'tblTempVendorCDR_20' ) end [2024-12-17 01:22:18] Production.INFO: ProcessCDR(1,14037414,1,1,2) [2024-12-17 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037414', 'tblTempUsageDetail_20' ) start [2024-12-17 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037414', 'tblTempUsageDetail_20' ) end [2024-12-17 01:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:22:21] Production.INFO: ==4087== Releasing lock... [2024-12-17 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:22:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 01:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:23:04 [end_date_ymd] => 2024-12-17 01:23:04 [RateCDR] => 1 ) [2024-12-17 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-16 22:23:04' and `end` < '2024-12-17 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-17 01:23:16] Production.INFO: count ==1388 [2024-12-17 01:23:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:23:04 - End Time 2024-12-17 01:23:04 [2024-12-17 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037419', 'tblTempUsageDetail_20' ) start [2024-12-17 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037419', 'tblTempUsageDetail_20' ) end [2024-12-17 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037419', 'tblTempVendorCDR_20' ) start [2024-12-17 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037419', 'tblTempVendorCDR_20' ) end [2024-12-17 01:23:17] Production.INFO: ProcessCDR(1,14037419,1,1,2) [2024-12-17 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037419', 'tblTempUsageDetail_20' ) start [2024-12-17 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037419', 'tblTempUsageDetail_20' ) end [2024-12-17 01:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:23:20] Production.INFO: ==4157== Releasing lock... [2024-12-17 01:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:23:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:24:05 [end_date_ymd] => 2024-12-17 01:24:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:24:05' and `end` < '2024-12-17 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-17 01:24:19] Production.INFO: count ==1387 [2024-12-17 01:24:19] Production.ERROR: pbx CDR StartTime 2024-12-16 22:24:05 - End Time 2024-12-17 01:24:05 [2024-12-17 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037424', 'tblTempUsageDetail_20' ) start [2024-12-17 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037424', 'tblTempUsageDetail_20' ) end [2024-12-17 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037424', 'tblTempVendorCDR_20' ) start [2024-12-17 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037424', 'tblTempVendorCDR_20' ) end [2024-12-17 01:24:19] Production.INFO: ProcessCDR(1,14037424,1,1,2) [2024-12-17 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037424', 'tblTempUsageDetail_20' ) start [2024-12-17 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037424', 'tblTempUsageDetail_20' ) end [2024-12-17 01:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:24:22] Production.INFO: ==4229== Releasing lock... [2024-12-17 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:24:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 01:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:25:04 [end_date_ymd] => 2024-12-17 01:25:04 [RateCDR] => 1 ) [2024-12-17 01: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-16 22:25:04' and `end` < '2024-12-17 01: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-17 01:25:16] Production.INFO: count ==1387 [2024-12-17 01:25:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:25:04 - End Time 2024-12-17 01:25:04 [2024-12-17 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037429', 'tblTempUsageDetail_20' ) start [2024-12-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037429', 'tblTempUsageDetail_20' ) end [2024-12-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037429', 'tblTempVendorCDR_20' ) start [2024-12-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037429', 'tblTempVendorCDR_20' ) end [2024-12-17 01:25:17] Production.INFO: ProcessCDR(1,14037429,1,1,2) [2024-12-17 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037429', 'tblTempUsageDetail_20' ) start [2024-12-17 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037429', 'tblTempUsageDetail_20' ) end [2024-12-17 01:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:25:20] Production.INFO: ==4300== Releasing lock... [2024-12-17 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:25:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:26:04 [end_date_ymd] => 2024-12-17 01:26:04 [RateCDR] => 1 ) [2024-12-17 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-16 22:26:04' and `end` < '2024-12-17 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-17 01:26:16] Production.INFO: count ==1387 [2024-12-17 01:26:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:26:04 - End Time 2024-12-17 01:26:04 [2024-12-17 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037433', 'tblTempUsageDetail_20' ) start [2024-12-17 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037433', 'tblTempUsageDetail_20' ) end [2024-12-17 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037433', 'tblTempVendorCDR_20' ) start [2024-12-17 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037433', 'tblTempVendorCDR_20' ) end [2024-12-17 01:26:17] Production.INFO: ProcessCDR(1,14037433,1,1,2) [2024-12-17 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037433', 'tblTempUsageDetail_20' ) start [2024-12-17 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037433', 'tblTempUsageDetail_20' ) end [2024-12-17 01:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:26:20] Production.INFO: ==4415== Releasing lock... [2024-12-17 01:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:26:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:27:05 [end_date_ymd] => 2024-12-17 01:27:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:27:05' and `end` < '2024-12-17 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-17 01:27:17] Production.INFO: count ==1386 [2024-12-17 01:27:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:27:05 - End Time 2024-12-17 01:27:05 [2024-12-17 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037437', 'tblTempUsageDetail_20' ) start [2024-12-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037437', 'tblTempUsageDetail_20' ) end [2024-12-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037437', 'tblTempVendorCDR_20' ) start [2024-12-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037437', 'tblTempVendorCDR_20' ) end [2024-12-17 01:27:18] Production.INFO: ProcessCDR(1,14037437,1,1,2) [2024-12-17 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037437', 'tblTempUsageDetail_20' ) start [2024-12-17 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037437', 'tblTempUsageDetail_20' ) end [2024-12-17 01:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:27:21] Production.INFO: ==4487== Releasing lock... [2024-12-17 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:27:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:28:05 [end_date_ymd] => 2024-12-17 01:28:05 [RateCDR] => 1 ) [2024-12-17 01: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-16 22:28:05' and `end` < '2024-12-17 01: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-17 01:28:19] Production.INFO: count ==1386 [2024-12-17 01:28:19] Production.ERROR: pbx CDR StartTime 2024-12-16 22:28:05 - End Time 2024-12-17 01:28:05 [2024-12-17 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037444', 'tblTempUsageDetail_20' ) start [2024-12-17 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037444', 'tblTempUsageDetail_20' ) end [2024-12-17 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037444', 'tblTempVendorCDR_20' ) start [2024-12-17 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037444', 'tblTempVendorCDR_20' ) end [2024-12-17 01:28:19] Production.INFO: ProcessCDR(1,14037444,1,1,2) [2024-12-17 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037444', 'tblTempUsageDetail_20' ) start [2024-12-17 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037444', 'tblTempUsageDetail_20' ) end [2024-12-17 01:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:28:23] Production.INFO: ==4558== Releasing lock... [2024-12-17 01:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:28:23] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:29:04 [end_date_ymd] => 2024-12-17 01:29:04 [RateCDR] => 1 ) [2024-12-17 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-16 22:29:04' and `end` < '2024-12-17 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-17 01:29:16] Production.INFO: count ==1389 [2024-12-17 01:29:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:29:04 - End Time 2024-12-17 01:29:04 [2024-12-17 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037449', 'tblTempUsageDetail_20' ) start [2024-12-17 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037449', 'tblTempUsageDetail_20' ) end [2024-12-17 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037449', 'tblTempVendorCDR_20' ) start [2024-12-17 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037449', 'tblTempVendorCDR_20' ) end [2024-12-17 01:29:17] Production.INFO: ProcessCDR(1,14037449,1,1,2) [2024-12-17 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037449', 'tblTempUsageDetail_20' ) start [2024-12-17 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037449', 'tblTempUsageDetail_20' ) end [2024-12-17 01:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:29:20] Production.INFO: ==4640== Releasing lock... [2024-12-17 01:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:29:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:30:05 [end_date_ymd] => 2024-12-17 01:30:05 [RateCDR] => 1 ) [2024-12-17 01: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-16 22:30:05' and `end` < '2024-12-17 01: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-17 01:30:17] Production.INFO: count ==1391 [2024-12-17 01:30:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:30:05 - End Time 2024-12-17 01:30:05 [2024-12-17 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037455', 'tblTempUsageDetail_20' ) start [2024-12-17 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037455', 'tblTempUsageDetail_20' ) end [2024-12-17 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037455', 'tblTempVendorCDR_20' ) start [2024-12-17 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037455', 'tblTempVendorCDR_20' ) end [2024-12-17 01:30:18] Production.INFO: ProcessCDR(1,14037455,1,1,2) [2024-12-17 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037455', 'tblTempUsageDetail_20' ) start [2024-12-17 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037455', 'tblTempUsageDetail_20' ) end [2024-12-17 01:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:30:21] Production.INFO: ==4715== Releasing lock... [2024-12-17 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:30:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:31:05 [end_date_ymd] => 2024-12-17 01:31:05 [RateCDR] => 1 ) [2024-12-17 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 22:31:05' and `end` < '2024-12-17 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 01:31:17] Production.INFO: count ==1405 [2024-12-17 01:31:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:31:05 - End Time 2024-12-17 01:31:05 [2024-12-17 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037460', 'tblTempUsageDetail_20' ) start [2024-12-17 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037460', 'tblTempUsageDetail_20' ) end [2024-12-17 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037460', 'tblTempVendorCDR_20' ) start [2024-12-17 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037460', 'tblTempVendorCDR_20' ) end [2024-12-17 01:31:18] Production.INFO: ProcessCDR(1,14037460,1,1,2) [2024-12-17 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037460', 'tblTempUsageDetail_20' ) start [2024-12-17 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037460', 'tblTempUsageDetail_20' ) end [2024-12-17 01:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:31:21] Production.INFO: ==4790== Releasing lock... [2024-12-17 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:31:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:32:04 [end_date_ymd] => 2024-12-17 01:32:04 [RateCDR] => 1 ) [2024-12-17 01: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-16 22:32:04' and `end` < '2024-12-17 01: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-17 01:32:17] Production.INFO: count ==1404 [2024-12-17 01:32:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:32:04 - End Time 2024-12-17 01:32:04 [2024-12-17 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037465', 'tblTempUsageDetail_20' ) start [2024-12-17 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037465', 'tblTempUsageDetail_20' ) end [2024-12-17 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037465', 'tblTempVendorCDR_20' ) start [2024-12-17 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037465', 'tblTempVendorCDR_20' ) end [2024-12-17 01:32:17] Production.INFO: ProcessCDR(1,14037465,1,1,2) [2024-12-17 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037465', 'tblTempUsageDetail_20' ) start [2024-12-17 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037465', 'tblTempUsageDetail_20' ) end [2024-12-17 01:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:32:20] Production.INFO: ==4860== Releasing lock... [2024-12-17 01:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:32:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:33:04 [end_date_ymd] => 2024-12-17 01:33:04 [RateCDR] => 1 ) [2024-12-17 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-16 22:33:04' and `end` < '2024-12-17 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-17 01:33:16] Production.INFO: count ==1405 [2024-12-17 01:33:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:33:04 - End Time 2024-12-17 01:33:04 [2024-12-17 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037470', 'tblTempUsageDetail_20' ) start [2024-12-17 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037470', 'tblTempUsageDetail_20' ) end [2024-12-17 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037470', 'tblTempVendorCDR_20' ) start [2024-12-17 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037470', 'tblTempVendorCDR_20' ) end [2024-12-17 01:33:17] Production.INFO: ProcessCDR(1,14037470,1,1,2) [2024-12-17 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037470', 'tblTempUsageDetail_20' ) start [2024-12-17 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037470', 'tblTempUsageDetail_20' ) end [2024-12-17 01:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:33:22] Production.INFO: ==4930== Releasing lock... [2024-12-17 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:33:22] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:34:05 [end_date_ymd] => 2024-12-17 01:34:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:34:05' and `end` < '2024-12-17 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-17 01:34:18] Production.INFO: count ==1405 [2024-12-17 01:34:19] Production.ERROR: pbx CDR StartTime 2024-12-16 22:34:05 - End Time 2024-12-17 01:34:05 [2024-12-17 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037475', 'tblTempUsageDetail_20' ) start [2024-12-17 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037475', 'tblTempUsageDetail_20' ) end [2024-12-17 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037475', 'tblTempVendorCDR_20' ) start [2024-12-17 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037475', 'tblTempVendorCDR_20' ) end [2024-12-17 01:34:19] Production.INFO: ProcessCDR(1,14037475,1,1,2) [2024-12-17 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037475', 'tblTempUsageDetail_20' ) start [2024-12-17 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037475', 'tblTempUsageDetail_20' ) end [2024-12-17 01:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:34:22] Production.INFO: ==5003== Releasing lock... [2024-12-17 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:34:22] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:35:05 [end_date_ymd] => 2024-12-17 01:35:05 [RateCDR] => 1 ) [2024-12-17 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 22:35:05' and `end` < '2024-12-17 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 01:35:17] Production.INFO: count ==1405 [2024-12-17 01:35:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:35:05 - End Time 2024-12-17 01:35:05 [2024-12-17 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037480', 'tblTempUsageDetail_20' ) start [2024-12-17 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037480', 'tblTempUsageDetail_20' ) end [2024-12-17 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037480', 'tblTempVendorCDR_20' ) start [2024-12-17 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037480', 'tblTempVendorCDR_20' ) end [2024-12-17 01:35:18] Production.INFO: ProcessCDR(1,14037480,1,1,2) [2024-12-17 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037480', 'tblTempUsageDetail_20' ) start [2024-12-17 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037480', 'tblTempUsageDetail_20' ) end [2024-12-17 01:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:35:21] Production.INFO: ==5075== Releasing lock... [2024-12-17 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:35:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:36:05 [end_date_ymd] => 2024-12-17 01:36:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:36:05' and `end` < '2024-12-17 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-17 01:36:17] Production.INFO: count ==1400 [2024-12-17 01:36:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:36:05 - End Time 2024-12-17 01:36:05 [2024-12-17 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037485', 'tblTempUsageDetail_20' ) start [2024-12-17 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037485', 'tblTempUsageDetail_20' ) end [2024-12-17 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037485', 'tblTempVendorCDR_20' ) start [2024-12-17 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037485', 'tblTempVendorCDR_20' ) end [2024-12-17 01:36:18] Production.INFO: ProcessCDR(1,14037485,1,1,2) [2024-12-17 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037485', 'tblTempUsageDetail_20' ) start [2024-12-17 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037485', 'tblTempUsageDetail_20' ) end [2024-12-17 01:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:36:22] Production.INFO: ==5147== Releasing lock... [2024-12-17 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:36:22] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:37:04 [end_date_ymd] => 2024-12-17 01:37:04 [RateCDR] => 1 ) [2024-12-17 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-16 22:37:04' and `end` < '2024-12-17 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-17 01:37:16] Production.INFO: count ==1395 [2024-12-17 01:37:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:37:04 - End Time 2024-12-17 01:37:04 [2024-12-17 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037490', 'tblTempUsageDetail_20' ) start [2024-12-17 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037490', 'tblTempUsageDetail_20' ) end [2024-12-17 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037490', 'tblTempVendorCDR_20' ) start [2024-12-17 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037490', 'tblTempVendorCDR_20' ) end [2024-12-17 01:37:17] Production.INFO: ProcessCDR(1,14037490,1,1,2) [2024-12-17 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037490', 'tblTempUsageDetail_20' ) start [2024-12-17 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037490', 'tblTempUsageDetail_20' ) end [2024-12-17 01:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:37:20] Production.INFO: ==5219== Releasing lock... [2024-12-17 01:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:37:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:38:04 [end_date_ymd] => 2024-12-17 01:38:04 [RateCDR] => 1 ) [2024-12-17 01: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-16 22:38:04' and `end` < '2024-12-17 01: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-17 01:38:16] Production.INFO: count ==1395 [2024-12-17 01:38:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:38:04 - End Time 2024-12-17 01:38:04 [2024-12-17 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037495', 'tblTempUsageDetail_20' ) start [2024-12-17 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037495', 'tblTempUsageDetail_20' ) end [2024-12-17 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037495', 'tblTempVendorCDR_20' ) start [2024-12-17 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037495', 'tblTempVendorCDR_20' ) end [2024-12-17 01:38:17] Production.INFO: ProcessCDR(1,14037495,1,1,2) [2024-12-17 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037495', 'tblTempUsageDetail_20' ) start [2024-12-17 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037495', 'tblTempUsageDetail_20' ) end [2024-12-17 01:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:38:20] Production.INFO: ==5289== Releasing lock... [2024-12-17 01:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:38:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:39:05 [end_date_ymd] => 2024-12-17 01:39:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:39:05' and `end` < '2024-12-17 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-17 01:39:17] Production.INFO: count ==1395 [2024-12-17 01:39:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:39:05 - End Time 2024-12-17 01:39:05 [2024-12-17 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037500', 'tblTempUsageDetail_20' ) start [2024-12-17 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037500', 'tblTempUsageDetail_20' ) end [2024-12-17 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037500', 'tblTempVendorCDR_20' ) start [2024-12-17 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037500', 'tblTempVendorCDR_20' ) end [2024-12-17 01:39:17] Production.INFO: ProcessCDR(1,14037500,1,1,2) [2024-12-17 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037500', 'tblTempUsageDetail_20' ) start [2024-12-17 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037500', 'tblTempUsageDetail_20' ) end [2024-12-17 01:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:39:21] Production.INFO: ==5362== Releasing lock... [2024-12-17 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:39:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:40:06 [end_date_ymd] => 2024-12-17 01:40:06 [RateCDR] => 1 ) [2024-12-17 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 22:40:06' and `end` < '2024-12-17 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 01:40:18] Production.INFO: count ==1405 [2024-12-17 01:40:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:40:06 - End Time 2024-12-17 01:40:06 [2024-12-17 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037506', 'tblTempUsageDetail_20' ) start [2024-12-17 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037506', 'tblTempUsageDetail_20' ) end [2024-12-17 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037506', 'tblTempVendorCDR_20' ) start [2024-12-17 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037506', 'tblTempVendorCDR_20' ) end [2024-12-17 01:40:18] Production.INFO: ProcessCDR(1,14037506,1,1,2) [2024-12-17 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037506', 'tblTempUsageDetail_20' ) start [2024-12-17 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037506', 'tblTempUsageDetail_20' ) end [2024-12-17 01:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:40:21] Production.INFO: ==5436== Releasing lock... [2024-12-17 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:40:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:41:05 [end_date_ymd] => 2024-12-17 01:41:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:41:05' and `end` < '2024-12-17 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-17 01:41:17] Production.INFO: count ==1408 [2024-12-17 01:41:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:41:05 - End Time 2024-12-17 01:41:05 [2024-12-17 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037511', 'tblTempUsageDetail_20' ) start [2024-12-17 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037511', 'tblTempUsageDetail_20' ) end [2024-12-17 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037511', 'tblTempVendorCDR_20' ) start [2024-12-17 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037511', 'tblTempVendorCDR_20' ) end [2024-12-17 01:41:18] Production.INFO: ProcessCDR(1,14037511,1,1,2) [2024-12-17 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037511', 'tblTempUsageDetail_20' ) start [2024-12-17 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037511', 'tblTempUsageDetail_20' ) end [2024-12-17 01:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:41:21] Production.INFO: ==5508== Releasing lock... [2024-12-17 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:41:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:42:05 [end_date_ymd] => 2024-12-17 01:42:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:42:05' and `end` < '2024-12-17 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-17 01:42:18] Production.INFO: count ==1401 [2024-12-17 01:42:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:42:05 - End Time 2024-12-17 01:42:05 [2024-12-17 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037516', 'tblTempUsageDetail_20' ) start [2024-12-17 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037516', 'tblTempUsageDetail_20' ) end [2024-12-17 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037516', 'tblTempVendorCDR_20' ) start [2024-12-17 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037516', 'tblTempVendorCDR_20' ) end [2024-12-17 01:42:18] Production.INFO: ProcessCDR(1,14037516,1,1,2) [2024-12-17 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037516', 'tblTempUsageDetail_20' ) start [2024-12-17 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037516', 'tblTempUsageDetail_20' ) end [2024-12-17 01:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:42:21] Production.INFO: ==5618== Releasing lock... [2024-12-17 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:42:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:43:04 [end_date_ymd] => 2024-12-17 01:43:04 [RateCDR] => 1 ) [2024-12-17 01: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-16 22:43:04' and `end` < '2024-12-17 01: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-17 01:43:16] Production.INFO: count ==1402 [2024-12-17 01:43:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:43:04 - End Time 2024-12-17 01:43:04 [2024-12-17 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037521', 'tblTempUsageDetail_20' ) start [2024-12-17 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037521', 'tblTempUsageDetail_20' ) end [2024-12-17 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037521', 'tblTempVendorCDR_20' ) start [2024-12-17 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037521', 'tblTempVendorCDR_20' ) end [2024-12-17 01:43:17] Production.INFO: ProcessCDR(1,14037521,1,1,2) [2024-12-17 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037521', 'tblTempUsageDetail_20' ) start [2024-12-17 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037521', 'tblTempUsageDetail_20' ) end [2024-12-17 01:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:43:21] Production.INFO: ==5688== Releasing lock... [2024-12-17 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:43:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:44:05 [end_date_ymd] => 2024-12-17 01:44:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:44:05' and `end` < '2024-12-17 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-17 01:44:17] Production.INFO: count ==1401 [2024-12-17 01:44:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:44:05 - End Time 2024-12-17 01:44:05 [2024-12-17 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037526', 'tblTempUsageDetail_20' ) start [2024-12-17 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037526', 'tblTempUsageDetail_20' ) end [2024-12-17 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037526', 'tblTempVendorCDR_20' ) start [2024-12-17 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037526', 'tblTempVendorCDR_20' ) end [2024-12-17 01:44:18] Production.INFO: ProcessCDR(1,14037526,1,1,2) [2024-12-17 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037526', 'tblTempUsageDetail_20' ) start [2024-12-17 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037526', 'tblTempUsageDetail_20' ) end [2024-12-17 01:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:44:21] Production.INFO: ==5761== Releasing lock... [2024-12-17 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:44:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:45:05 [end_date_ymd] => 2024-12-17 01:45:05 [RateCDR] => 1 ) [2024-12-17 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 22:45:05' and `end` < '2024-12-17 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 01:45:17] Production.INFO: count ==1399 [2024-12-17 01:45:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:45:05 - End Time 2024-12-17 01:45:05 [2024-12-17 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037531', 'tblTempUsageDetail_20' ) start [2024-12-17 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037531', 'tblTempUsageDetail_20' ) end [2024-12-17 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037531', 'tblTempVendorCDR_20' ) start [2024-12-17 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037531', 'tblTempVendorCDR_20' ) end [2024-12-17 01:45:17] Production.INFO: ProcessCDR(1,14037531,1,1,2) [2024-12-17 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037531', 'tblTempUsageDetail_20' ) start [2024-12-17 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037531', 'tblTempUsageDetail_20' ) end [2024-12-17 01:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:45:21] Production.INFO: ==5834== Releasing lock... [2024-12-17 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:45:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:46:04 [end_date_ymd] => 2024-12-17 01:46:04 [RateCDR] => 1 ) [2024-12-17 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-16 22:46:04' and `end` < '2024-12-17 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-17 01:46:18] Production.INFO: count ==1398 [2024-12-17 01:46:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:46:04 - End Time 2024-12-17 01:46:04 [2024-12-17 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037536', 'tblTempUsageDetail_20' ) start [2024-12-17 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037536', 'tblTempUsageDetail_20' ) end [2024-12-17 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037536', 'tblTempVendorCDR_20' ) start [2024-12-17 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037536', 'tblTempVendorCDR_20' ) end [2024-12-17 01:46:18] Production.INFO: ProcessCDR(1,14037536,1,1,2) [2024-12-17 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037536', 'tblTempUsageDetail_20' ) start [2024-12-17 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037536', 'tblTempUsageDetail_20' ) end [2024-12-17 01:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:46:22] Production.INFO: ==5914== Releasing lock... [2024-12-17 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:46:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:47:05 [end_date_ymd] => 2024-12-17 01:47:05 [RateCDR] => 1 ) [2024-12-17 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 22:47:05' and `end` < '2024-12-17 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 01:47:17] Production.INFO: count ==1397 [2024-12-17 01:47:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:47:05 - End Time 2024-12-17 01:47:05 [2024-12-17 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037541', 'tblTempUsageDetail_20' ) start [2024-12-17 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037541', 'tblTempUsageDetail_20' ) end [2024-12-17 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037541', 'tblTempVendorCDR_20' ) start [2024-12-17 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037541', 'tblTempVendorCDR_20' ) end [2024-12-17 01:47:18] Production.INFO: ProcessCDR(1,14037541,1,1,2) [2024-12-17 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037541', 'tblTempUsageDetail_20' ) start [2024-12-17 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037541', 'tblTempUsageDetail_20' ) end [2024-12-17 01:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:47:21] Production.INFO: ==5985== Releasing lock... [2024-12-17 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:47:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 01:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:48:04 [end_date_ymd] => 2024-12-17 01:48:04 [RateCDR] => 1 ) [2024-12-17 01:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 22:48:04' and `end` < '2024-12-17 01:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 01:48:17] Production.INFO: count ==1396 [2024-12-17 01:48:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:48:04 - End Time 2024-12-17 01:48:04 [2024-12-17 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037546', 'tblTempUsageDetail_20' ) start [2024-12-17 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037546', 'tblTempUsageDetail_20' ) end [2024-12-17 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037546', 'tblTempVendorCDR_20' ) start [2024-12-17 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037546', 'tblTempVendorCDR_20' ) end [2024-12-17 01:48:18] Production.INFO: ProcessCDR(1,14037546,1,1,2) [2024-12-17 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037546', 'tblTempUsageDetail_20' ) start [2024-12-17 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037546', 'tblTempUsageDetail_20' ) end [2024-12-17 01:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:48:21] Production.INFO: ==6059== Releasing lock... [2024-12-17 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:48:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 01:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:49:04 [end_date_ymd] => 2024-12-17 01:49:04 [RateCDR] => 1 ) [2024-12-17 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-16 22:49:04' and `end` < '2024-12-17 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-17 01:49:17] Production.INFO: count ==1396 [2024-12-17 01:49:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:49:04 - End Time 2024-12-17 01:49:04 [2024-12-17 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037551', 'tblTempUsageDetail_20' ) start [2024-12-17 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037551', 'tblTempUsageDetail_20' ) end [2024-12-17 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037551', 'tblTempVendorCDR_20' ) start [2024-12-17 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037551', 'tblTempVendorCDR_20' ) end [2024-12-17 01:49:18] Production.INFO: ProcessCDR(1,14037551,1,1,2) [2024-12-17 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037551', 'tblTempUsageDetail_20' ) start [2024-12-17 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037551', 'tblTempUsageDetail_20' ) end [2024-12-17 01:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:49:21] Production.INFO: ==6132== Releasing lock... [2024-12-17 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:49:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:50:05 [end_date_ymd] => 2024-12-17 01:50:05 [RateCDR] => 1 ) [2024-12-17 01: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-16 22:50:05' and `end` < '2024-12-17 01: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-17 01:50:17] Production.INFO: count ==1399 [2024-12-17 01:50:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:50:05 - End Time 2024-12-17 01:50:05 [2024-12-17 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037557', 'tblTempUsageDetail_20' ) start [2024-12-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037557', 'tblTempUsageDetail_20' ) end [2024-12-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037557', 'tblTempVendorCDR_20' ) start [2024-12-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037557', 'tblTempVendorCDR_20' ) end [2024-12-17 01:50:18] Production.INFO: ProcessCDR(1,14037557,1,1,2) [2024-12-17 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037557', 'tblTempUsageDetail_20' ) start [2024-12-17 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037557', 'tblTempUsageDetail_20' ) end [2024-12-17 01:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:50:21] Production.INFO: ==6207== Releasing lock... [2024-12-17 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:50:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:51:05 [end_date_ymd] => 2024-12-17 01:51:05 [RateCDR] => 1 ) [2024-12-17 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 22:51:05' and `end` < '2024-12-17 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 01:51:17] Production.INFO: count ==1399 [2024-12-17 01:51:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:51:05 - End Time 2024-12-17 01:51:05 [2024-12-17 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037562', 'tblTempUsageDetail_20' ) start [2024-12-17 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037562', 'tblTempUsageDetail_20' ) end [2024-12-17 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037562', 'tblTempVendorCDR_20' ) start [2024-12-17 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037562', 'tblTempVendorCDR_20' ) end [2024-12-17 01:51:17] Production.INFO: ProcessCDR(1,14037562,1,1,2) [2024-12-17 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037562', 'tblTempUsageDetail_20' ) start [2024-12-17 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037562', 'tblTempUsageDetail_20' ) end [2024-12-17 01:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:51:21] Production.INFO: ==6285== Releasing lock... [2024-12-17 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:51:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:52:05 [end_date_ymd] => 2024-12-17 01:52:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:52:05' and `end` < '2024-12-17 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-17 01:52:17] Production.INFO: count ==1399 [2024-12-17 01:52:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:52:05 - End Time 2024-12-17 01:52:05 [2024-12-17 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037567', 'tblTempUsageDetail_20' ) start [2024-12-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037567', 'tblTempUsageDetail_20' ) end [2024-12-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037567', 'tblTempVendorCDR_20' ) start [2024-12-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037567', 'tblTempVendorCDR_20' ) end [2024-12-17 01:52:18] Production.INFO: ProcessCDR(1,14037567,1,1,2) [2024-12-17 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037567', 'tblTempUsageDetail_20' ) start [2024-12-17 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037567', 'tblTempUsageDetail_20' ) end [2024-12-17 01:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:52:21] Production.INFO: ==6360== Releasing lock... [2024-12-17 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:52:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:53:05 [end_date_ymd] => 2024-12-17 01:53:05 [RateCDR] => 1 ) [2024-12-17 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-16 22:53:05' and `end` < '2024-12-17 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-17 01:53:17] Production.INFO: count ==1399 [2024-12-17 01:53:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:53:05 - End Time 2024-12-17 01:53:05 [2024-12-17 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037572', 'tblTempUsageDetail_20' ) start [2024-12-17 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037572', 'tblTempUsageDetail_20' ) end [2024-12-17 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037572', 'tblTempVendorCDR_20' ) start [2024-12-17 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037572', 'tblTempVendorCDR_20' ) end [2024-12-17 01:53:17] Production.INFO: ProcessCDR(1,14037572,1,1,2) [2024-12-17 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037572', 'tblTempUsageDetail_20' ) start [2024-12-17 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037572', 'tblTempUsageDetail_20' ) end [2024-12-17 01:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:53:20] Production.INFO: ==6442== Releasing lock... [2024-12-17 01:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:53:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:54:05 [end_date_ymd] => 2024-12-17 01:54:05 [RateCDR] => 1 ) [2024-12-17 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 22:54:05' and `end` < '2024-12-17 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 01:54:17] Production.INFO: count ==1399 [2024-12-17 01:54:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:54:05 - End Time 2024-12-17 01:54:05 [2024-12-17 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037577', 'tblTempUsageDetail_20' ) start [2024-12-17 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037577', 'tblTempUsageDetail_20' ) end [2024-12-17 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037577', 'tblTempVendorCDR_20' ) start [2024-12-17 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037577', 'tblTempVendorCDR_20' ) end [2024-12-17 01:54:18] Production.INFO: ProcessCDR(1,14037577,1,1,2) [2024-12-17 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037577', 'tblTempUsageDetail_20' ) start [2024-12-17 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037577', 'tblTempUsageDetail_20' ) end [2024-12-17 01:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:54:21] Production.INFO: ==6525== Releasing lock... [2024-12-17 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:54:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:55:04 [end_date_ymd] => 2024-12-17 01:55:04 [RateCDR] => 1 ) [2024-12-17 01: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-16 22:55:04' and `end` < '2024-12-17 01: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-17 01:55:17] Production.INFO: count ==1398 [2024-12-17 01:55:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:55:04 - End Time 2024-12-17 01:55:04 [2024-12-17 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037582', 'tblTempUsageDetail_20' ) start [2024-12-17 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037582', 'tblTempUsageDetail_20' ) end [2024-12-17 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037582', 'tblTempVendorCDR_20' ) start [2024-12-17 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037582', 'tblTempVendorCDR_20' ) end [2024-12-17 01:55:17] Production.INFO: ProcessCDR(1,14037582,1,1,2) [2024-12-17 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037582', 'tblTempUsageDetail_20' ) start [2024-12-17 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037582', 'tblTempUsageDetail_20' ) end [2024-12-17 01:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:55:20] Production.INFO: ==6596== Releasing lock... [2024-12-17 01:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:55:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:56:05 [end_date_ymd] => 2024-12-17 01:56:05 [RateCDR] => 1 ) [2024-12-17 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 22:56:05' and `end` < '2024-12-17 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 01:56:17] Production.INFO: count ==1398 [2024-12-17 01:56:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:56:05 - End Time 2024-12-17 01:56:05 [2024-12-17 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037587', 'tblTempUsageDetail_20' ) start [2024-12-17 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037587', 'tblTempUsageDetail_20' ) end [2024-12-17 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037587', 'tblTempVendorCDR_20' ) start [2024-12-17 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037587', 'tblTempVendorCDR_20' ) end [2024-12-17 01:56:18] Production.INFO: ProcessCDR(1,14037587,1,1,2) [2024-12-17 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037587', 'tblTempUsageDetail_20' ) start [2024-12-17 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037587', 'tblTempUsageDetail_20' ) end [2024-12-17 01:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:56:21] Production.INFO: ==6678== Releasing lock... [2024-12-17 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:56:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:57:05 [end_date_ymd] => 2024-12-17 01:57:05 [RateCDR] => 1 ) [2024-12-17 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 22:57:05' and `end` < '2024-12-17 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 01:57:17] Production.INFO: count ==1397 [2024-12-17 01:57:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:57:05 - End Time 2024-12-17 01:57:05 [2024-12-17 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037592', 'tblTempUsageDetail_20' ) start [2024-12-17 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037592', 'tblTempUsageDetail_20' ) end [2024-12-17 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037592', 'tblTempVendorCDR_20' ) start [2024-12-17 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037592', 'tblTempVendorCDR_20' ) end [2024-12-17 01:57:17] Production.INFO: ProcessCDR(1,14037592,1,1,2) [2024-12-17 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037592', 'tblTempUsageDetail_20' ) start [2024-12-17 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037592', 'tblTempUsageDetail_20' ) end [2024-12-17 01:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:57:21] Production.INFO: ==6764== Releasing lock... [2024-12-17 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:57:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:58:05 [end_date_ymd] => 2024-12-17 01:58:05 [RateCDR] => 1 ) [2024-12-17 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 22:58:05' and `end` < '2024-12-17 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 01:58:18] Production.INFO: count ==1396 [2024-12-17 01:58:18] Production.ERROR: pbx CDR StartTime 2024-12-16 22:58:05 - End Time 2024-12-17 01:58:05 [2024-12-17 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037597', 'tblTempUsageDetail_20' ) start [2024-12-17 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037597', 'tblTempUsageDetail_20' ) end [2024-12-17 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037597', 'tblTempVendorCDR_20' ) start [2024-12-17 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037597', 'tblTempVendorCDR_20' ) end [2024-12-17 01:58:19] Production.INFO: ProcessCDR(1,14037597,1,1,2) [2024-12-17 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037597', 'tblTempUsageDetail_20' ) start [2024-12-17 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037597', 'tblTempUsageDetail_20' ) end [2024-12-17 01:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:58:22] Production.INFO: ==6889== Releasing lock... [2024-12-17 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:58:22] Production.INFO: 39 MB #Memory Used# [2024-12-17 01:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 22:59:04 [end_date_ymd] => 2024-12-17 01:59:04 [RateCDR] => 1 ) [2024-12-17 01:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 22:59:04' and `end` < '2024-12-17 01:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 01:59:16] Production.INFO: count ==1399 [2024-12-17 01:59:17] Production.ERROR: pbx CDR StartTime 2024-12-16 22:59:04 - End Time 2024-12-17 01:59:04 [2024-12-17 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037602', 'tblTempUsageDetail_20' ) start [2024-12-17 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037602', 'tblTempUsageDetail_20' ) end [2024-12-17 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037602', 'tblTempVendorCDR_20' ) start [2024-12-17 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037602', 'tblTempVendorCDR_20' ) end [2024-12-17 01:59:17] Production.INFO: ProcessCDR(1,14037602,1,1,2) [2024-12-17 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037602', 'tblTempUsageDetail_20' ) start [2024-12-17 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037602', 'tblTempUsageDetail_20' ) end [2024-12-17 01:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 01:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 01:59:20] Production.INFO: ==6976== Releasing lock... [2024-12-17 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 01:59:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:00:06 [end_date_ymd] => 2024-12-17 02:00:06 [RateCDR] => 1 ) [2024-12-17 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-16 23:00:06' and `end` < '2024-12-17 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-17 02:00:18] Production.INFO: count ==1405 [2024-12-17 02:00:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:00:06 - End Time 2024-12-17 02:00:06 [2024-12-17 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037608', 'tblTempUsageDetail_20' ) start [2024-12-17 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037608', 'tblTempUsageDetail_20' ) end [2024-12-17 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037608', 'tblTempVendorCDR_20' ) start [2024-12-17 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037608', 'tblTempVendorCDR_20' ) end [2024-12-17 02:00:18] Production.INFO: ProcessCDR(1,14037608,1,1,2) [2024-12-17 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037608', 'tblTempUsageDetail_20' ) start [2024-12-17 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037608', 'tblTempUsageDetail_20' ) end [2024-12-17 02:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:00:22] Production.INFO: ==7062== Releasing lock... [2024-12-17 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:00:22] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:01:05 [end_date_ymd] => 2024-12-17 02:01:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:01:05' and `end` < '2024-12-17 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-17 02:01:17] Production.INFO: count ==1405 [2024-12-17 02:01:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:01:05 - End Time 2024-12-17 02:01:05 [2024-12-17 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037613', 'tblTempUsageDetail_20' ) start [2024-12-17 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037613', 'tblTempUsageDetail_20' ) end [2024-12-17 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037613', 'tblTempVendorCDR_20' ) start [2024-12-17 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037613', 'tblTempVendorCDR_20' ) end [2024-12-17 02:01:18] Production.INFO: ProcessCDR(1,14037613,1,1,2) [2024-12-17 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037613', 'tblTempUsageDetail_20' ) start [2024-12-17 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037613', 'tblTempUsageDetail_20' ) end [2024-12-17 02:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:01:21] Production.INFO: ==7261== Releasing lock... [2024-12-17 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:01:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:02:04 [end_date_ymd] => 2024-12-17 02:02:04 [RateCDR] => 1 ) [2024-12-17 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-16 23:02:04' and `end` < '2024-12-17 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-17 02:02:17] Production.INFO: count ==1405 [2024-12-17 02:02:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:02:04 - End Time 2024-12-17 02:02:04 [2024-12-17 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037616', 'tblTempUsageDetail_20' ) start [2024-12-17 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037616', 'tblTempUsageDetail_20' ) end [2024-12-17 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037616', 'tblTempVendorCDR_20' ) start [2024-12-17 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037616', 'tblTempVendorCDR_20' ) end [2024-12-17 02:02:18] Production.INFO: ProcessCDR(1,14037616,1,1,2) [2024-12-17 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037616', 'tblTempUsageDetail_20' ) start [2024-12-17 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037616', 'tblTempUsageDetail_20' ) end [2024-12-17 02:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:02:21] Production.INFO: ==7338== Releasing lock... [2024-12-17 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:02:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:03:05 [end_date_ymd] => 2024-12-17 02:03:05 [RateCDR] => 1 ) [2024-12-17 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 23:03:05' and `end` < '2024-12-17 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:03:17] Production.INFO: count ==1395 [2024-12-17 02:03:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:03:05 - End Time 2024-12-17 02:03:05 [2024-12-17 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037623', 'tblTempUsageDetail_20' ) start [2024-12-17 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037623', 'tblTempUsageDetail_20' ) end [2024-12-17 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037623', 'tblTempVendorCDR_20' ) start [2024-12-17 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037623', 'tblTempVendorCDR_20' ) end [2024-12-17 02:03:18] Production.INFO: ProcessCDR(1,14037623,1,1,2) [2024-12-17 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037623', 'tblTempUsageDetail_20' ) start [2024-12-17 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037623', 'tblTempUsageDetail_20' ) end [2024-12-17 02:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:03:21] Production.INFO: ==7428== Releasing lock... [2024-12-17 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:03:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:04:05 [end_date_ymd] => 2024-12-17 02:04:05 [RateCDR] => 1 ) [2024-12-17 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 23:04:05' and `end` < '2024-12-17 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:04:17] Production.INFO: count ==1392 [2024-12-17 02:04:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:04:05 - End Time 2024-12-17 02:04:05 [2024-12-17 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037628', 'tblTempUsageDetail_20' ) start [2024-12-17 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037628', 'tblTempUsageDetail_20' ) end [2024-12-17 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037628', 'tblTempVendorCDR_20' ) start [2024-12-17 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037628', 'tblTempVendorCDR_20' ) end [2024-12-17 02:04:18] Production.INFO: ProcessCDR(1,14037628,1,1,2) [2024-12-17 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037628', 'tblTempUsageDetail_20' ) start [2024-12-17 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037628', 'tblTempUsageDetail_20' ) end [2024-12-17 02:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:04:21] Production.INFO: ==7517== Releasing lock... [2024-12-17 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:04:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:05:05 [end_date_ymd] => 2024-12-17 02:05:05 [RateCDR] => 1 ) [2024-12-17 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 23:05:05' and `end` < '2024-12-17 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:05:17] Production.INFO: count ==1395 [2024-12-17 02:05:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:05:05 - End Time 2024-12-17 02:05:05 [2024-12-17 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037633', 'tblTempUsageDetail_20' ) start [2024-12-17 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037633', 'tblTempUsageDetail_20' ) end [2024-12-17 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037633', 'tblTempVendorCDR_20' ) start [2024-12-17 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037633', 'tblTempVendorCDR_20' ) end [2024-12-17 02:05:18] Production.INFO: ProcessCDR(1,14037633,1,1,2) [2024-12-17 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037633', 'tblTempUsageDetail_20' ) start [2024-12-17 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037633', 'tblTempUsageDetail_20' ) end [2024-12-17 02:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:05:21] Production.INFO: ==7601== Releasing lock... [2024-12-17 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:05:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:06:05 [end_date_ymd] => 2024-12-17 02:06:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:06:05' and `end` < '2024-12-17 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-17 02:06:18] Production.INFO: count ==1394 [2024-12-17 02:06:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:06:05 - End Time 2024-12-17 02:06:05 [2024-12-17 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037638', 'tblTempUsageDetail_20' ) start [2024-12-17 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037638', 'tblTempUsageDetail_20' ) end [2024-12-17 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037638', 'tblTempVendorCDR_20' ) start [2024-12-17 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037638', 'tblTempVendorCDR_20' ) end [2024-12-17 02:06:18] Production.INFO: ProcessCDR(1,14037638,1,1,2) [2024-12-17 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037638', 'tblTempUsageDetail_20' ) start [2024-12-17 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037638', 'tblTempUsageDetail_20' ) end [2024-12-17 02:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:06:22] Production.INFO: ==7689== Releasing lock... [2024-12-17 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:06:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:07:05 [end_date_ymd] => 2024-12-17 02:07:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:07:05' and `end` < '2024-12-17 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-17 02:07:18] Production.INFO: count ==1394 [2024-12-17 02:07:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:07:05 - End Time 2024-12-17 02:07:05 [2024-12-17 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037643', 'tblTempUsageDetail_20' ) start [2024-12-17 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037643', 'tblTempUsageDetail_20' ) end [2024-12-17 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037643', 'tblTempVendorCDR_20' ) start [2024-12-17 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037643', 'tblTempVendorCDR_20' ) end [2024-12-17 02:07:18] Production.INFO: ProcessCDR(1,14037643,1,1,2) [2024-12-17 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037643', 'tblTempUsageDetail_20' ) start [2024-12-17 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037643', 'tblTempUsageDetail_20' ) end [2024-12-17 02:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:07:21] Production.INFO: ==7774== Releasing lock... [2024-12-17 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:07:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:08:04 [end_date_ymd] => 2024-12-17 02:08:04 [RateCDR] => 1 ) [2024-12-17 02: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-16 23:08:04' and `end` < '2024-12-17 02: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-17 02:08:16] Production.INFO: count ==1388 [2024-12-17 02:08:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:08:04 - End Time 2024-12-17 02:08:04 [2024-12-17 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037648', 'tblTempUsageDetail_20' ) start [2024-12-17 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037648', 'tblTempUsageDetail_20' ) end [2024-12-17 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037648', 'tblTempVendorCDR_20' ) start [2024-12-17 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037648', 'tblTempVendorCDR_20' ) end [2024-12-17 02:08:17] Production.INFO: ProcessCDR(1,14037648,1,1,2) [2024-12-17 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037648', 'tblTempUsageDetail_20' ) start [2024-12-17 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037648', 'tblTempUsageDetail_20' ) end [2024-12-17 02:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:08:20] Production.INFO: ==7855== Releasing lock... [2024-12-17 02:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:08:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:09:04 [end_date_ymd] => 2024-12-17 02:09:04 [RateCDR] => 1 ) [2024-12-17 02: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-16 23:09:04' and `end` < '2024-12-17 02: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-17 02:09:16] Production.INFO: count ==1388 [2024-12-17 02:09:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:09:04 - End Time 2024-12-17 02:09:04 [2024-12-17 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037652', 'tblTempUsageDetail_20' ) start [2024-12-17 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037652', 'tblTempUsageDetail_20' ) end [2024-12-17 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037652', 'tblTempVendorCDR_20' ) start [2024-12-17 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037652', 'tblTempVendorCDR_20' ) end [2024-12-17 02:09:17] Production.INFO: ProcessCDR(1,14037652,1,1,2) [2024-12-17 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037652', 'tblTempUsageDetail_20' ) start [2024-12-17 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037652', 'tblTempUsageDetail_20' ) end [2024-12-17 02:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:09:20] Production.INFO: ==7949== Releasing lock... [2024-12-17 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:09:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:10:06 [end_date_ymd] => 2024-12-17 02:10:06 [RateCDR] => 1 ) [2024-12-17 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 23:10:06' and `end` < '2024-12-17 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:10:18] Production.INFO: count ==1396 [2024-12-17 02:10:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:10:06 - End Time 2024-12-17 02:10:06 [2024-12-17 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037659', 'tblTempUsageDetail_20' ) start [2024-12-17 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037659', 'tblTempUsageDetail_20' ) end [2024-12-17 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037659', 'tblTempVendorCDR_20' ) start [2024-12-17 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037659', 'tblTempVendorCDR_20' ) end [2024-12-17 02:10:18] Production.INFO: ProcessCDR(1,14037659,1,1,2) [2024-12-17 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037659', 'tblTempUsageDetail_20' ) start [2024-12-17 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037659', 'tblTempUsageDetail_20' ) end [2024-12-17 02:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:10:21] Production.INFO: ==8040== Releasing lock... [2024-12-17 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:10:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:11:04 [end_date_ymd] => 2024-12-17 02:11:04 [RateCDR] => 1 ) [2024-12-17 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-16 23:11:04' and `end` < '2024-12-17 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-17 02:11:16] Production.INFO: count ==1395 [2024-12-17 02:11:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:11:04 - End Time 2024-12-17 02:11:04 [2024-12-17 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037664', 'tblTempUsageDetail_20' ) start [2024-12-17 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037664', 'tblTempUsageDetail_20' ) end [2024-12-17 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037664', 'tblTempVendorCDR_20' ) start [2024-12-17 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037664', 'tblTempVendorCDR_20' ) end [2024-12-17 02:11:17] Production.INFO: ProcessCDR(1,14037664,1,1,2) [2024-12-17 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037664', 'tblTempUsageDetail_20' ) start [2024-12-17 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037664', 'tblTempUsageDetail_20' ) end [2024-12-17 02:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:11:20] Production.INFO: ==8126== Releasing lock... [2024-12-17 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:11:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:12:05 [end_date_ymd] => 2024-12-17 02:12:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:12:05' and `end` < '2024-12-17 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-17 02:12:18] Production.INFO: count ==1392 [2024-12-17 02:12:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:12:05 - End Time 2024-12-17 02:12:05 [2024-12-17 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037669', 'tblTempUsageDetail_20' ) start [2024-12-17 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037669', 'tblTempUsageDetail_20' ) end [2024-12-17 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037669', 'tblTempVendorCDR_20' ) start [2024-12-17 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037669', 'tblTempVendorCDR_20' ) end [2024-12-17 02:12:18] Production.INFO: ProcessCDR(1,14037669,1,1,2) [2024-12-17 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037669', 'tblTempUsageDetail_20' ) start [2024-12-17 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037669', 'tblTempUsageDetail_20' ) end [2024-12-17 02:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:12:21] Production.INFO: ==8210== Releasing lock... [2024-12-17 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:12:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:13:04 [end_date_ymd] => 2024-12-17 02:13:04 [RateCDR] => 1 ) [2024-12-17 02: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-16 23:13:04' and `end` < '2024-12-17 02: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-17 02:13:17] Production.INFO: count ==1391 [2024-12-17 02:13:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:13:04 - End Time 2024-12-17 02:13:04 [2024-12-17 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037674', 'tblTempUsageDetail_20' ) start [2024-12-17 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037674', 'tblTempUsageDetail_20' ) end [2024-12-17 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037674', 'tblTempVendorCDR_20' ) start [2024-12-17 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037674', 'tblTempVendorCDR_20' ) end [2024-12-17 02:13:17] Production.INFO: ProcessCDR(1,14037674,1,1,2) [2024-12-17 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037674', 'tblTempUsageDetail_20' ) start [2024-12-17 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037674', 'tblTempUsageDetail_20' ) end [2024-12-17 02:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:13:21] Production.INFO: ==8296== Releasing lock... [2024-12-17 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:13:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:14:05 [end_date_ymd] => 2024-12-17 02:14:05 [RateCDR] => 1 ) [2024-12-17 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 23:14:05' and `end` < '2024-12-17 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:14:17] Production.INFO: count ==1391 [2024-12-17 02:14:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:14:05 - End Time 2024-12-17 02:14:05 [2024-12-17 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037679', 'tblTempUsageDetail_20' ) start [2024-12-17 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037679', 'tblTempUsageDetail_20' ) end [2024-12-17 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037679', 'tblTempVendorCDR_20' ) start [2024-12-17 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037679', 'tblTempVendorCDR_20' ) end [2024-12-17 02:14:18] Production.INFO: ProcessCDR(1,14037679,1,1,2) [2024-12-17 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037679', 'tblTempUsageDetail_20' ) start [2024-12-17 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037679', 'tblTempUsageDetail_20' ) end [2024-12-17 02:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:14:21] Production.INFO: ==8425== Releasing lock... [2024-12-17 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:14:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 02:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:15:04 [end_date_ymd] => 2024-12-17 02:15:04 [RateCDR] => 1 ) [2024-12-17 02: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-16 23:15:04' and `end` < '2024-12-17 02: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-17 02:15:16] Production.INFO: count ==1391 [2024-12-17 02:15:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:15:04 - End Time 2024-12-17 02:15:04 [2024-12-17 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037684', 'tblTempUsageDetail_20' ) start [2024-12-17 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037684', 'tblTempUsageDetail_20' ) end [2024-12-17 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037684', 'tblTempVendorCDR_20' ) start [2024-12-17 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037684', 'tblTempVendorCDR_20' ) end [2024-12-17 02:15:17] Production.INFO: ProcessCDR(1,14037684,1,1,2) [2024-12-17 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037684', 'tblTempUsageDetail_20' ) start [2024-12-17 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037684', 'tblTempUsageDetail_20' ) end [2024-12-17 02:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:15:20] Production.INFO: ==8505== Releasing lock... [2024-12-17 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:15:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:16:05 [end_date_ymd] => 2024-12-17 02:16:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:16:05' and `end` < '2024-12-17 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-17 02:16:18] Production.INFO: count ==1390 [2024-12-17 02:16:19] Production.ERROR: pbx CDR StartTime 2024-12-16 23:16:05 - End Time 2024-12-17 02:16:05 [2024-12-17 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037689', 'tblTempUsageDetail_20' ) start [2024-12-17 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037689', 'tblTempUsageDetail_20' ) end [2024-12-17 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037689', 'tblTempVendorCDR_20' ) start [2024-12-17 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037689', 'tblTempVendorCDR_20' ) end [2024-12-17 02:16:19] Production.INFO: ProcessCDR(1,14037689,1,1,2) [2024-12-17 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037689', 'tblTempUsageDetail_20' ) start [2024-12-17 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037689', 'tblTempUsageDetail_20' ) end [2024-12-17 02:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:16:22] Production.INFO: ==8599== Releasing lock... [2024-12-17 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:16:22] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:17:04 [end_date_ymd] => 2024-12-17 02:17:04 [RateCDR] => 1 ) [2024-12-17 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-16 23:17:04' and `end` < '2024-12-17 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-17 02:17:16] Production.INFO: count ==1391 [2024-12-17 02:17:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:17:04 - End Time 2024-12-17 02:17:04 [2024-12-17 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037694', 'tblTempUsageDetail_20' ) start [2024-12-17 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037694', 'tblTempUsageDetail_20' ) end [2024-12-17 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037694', 'tblTempVendorCDR_20' ) start [2024-12-17 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037694', 'tblTempVendorCDR_20' ) end [2024-12-17 02:17:17] Production.INFO: ProcessCDR(1,14037694,1,1,2) [2024-12-17 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037694', 'tblTempUsageDetail_20' ) start [2024-12-17 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037694', 'tblTempUsageDetail_20' ) end [2024-12-17 02:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:17:21] Production.INFO: ==8686== Releasing lock... [2024-12-17 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:17:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:18:05 [end_date_ymd] => 2024-12-17 02:18:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:18:05' and `end` < '2024-12-17 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-17 02:18:17] Production.INFO: count ==1389 [2024-12-17 02:18:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:18:05 - End Time 2024-12-17 02:18:05 [2024-12-17 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037699', 'tblTempUsageDetail_20' ) start [2024-12-17 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037699', 'tblTempUsageDetail_20' ) end [2024-12-17 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037699', 'tblTempVendorCDR_20' ) start [2024-12-17 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037699', 'tblTempVendorCDR_20' ) end [2024-12-17 02:18:17] Production.INFO: ProcessCDR(1,14037699,1,1,2) [2024-12-17 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037699', 'tblTempUsageDetail_20' ) start [2024-12-17 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037699', 'tblTempUsageDetail_20' ) end [2024-12-17 02:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:18:20] Production.INFO: ==8768== Releasing lock... [2024-12-17 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:18:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:19:05 [end_date_ymd] => 2024-12-17 02:19:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:19:05' and `end` < '2024-12-17 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-17 02:19:17] Production.INFO: count ==1389 [2024-12-17 02:19:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:19:05 - End Time 2024-12-17 02:19:05 [2024-12-17 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037704', 'tblTempUsageDetail_20' ) start [2024-12-17 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037704', 'tblTempUsageDetail_20' ) end [2024-12-17 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037704', 'tblTempVendorCDR_20' ) start [2024-12-17 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037704', 'tblTempVendorCDR_20' ) end [2024-12-17 02:19:18] Production.INFO: ProcessCDR(1,14037704,1,1,2) [2024-12-17 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037704', 'tblTempUsageDetail_20' ) start [2024-12-17 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037704', 'tblTempUsageDetail_20' ) end [2024-12-17 02:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:19:21] Production.INFO: ==8859== Releasing lock... [2024-12-17 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:19:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:20:06 [end_date_ymd] => 2024-12-17 02:20:06 [RateCDR] => 1 ) [2024-12-17 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 23:20:06' and `end` < '2024-12-17 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:20:18] Production.INFO: count ==1397 [2024-12-17 02:20:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:20:06 - End Time 2024-12-17 02:20:06 [2024-12-17 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037710', 'tblTempUsageDetail_20' ) start [2024-12-17 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037710', 'tblTempUsageDetail_20' ) end [2024-12-17 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037710', 'tblTempVendorCDR_20' ) start [2024-12-17 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037710', 'tblTempVendorCDR_20' ) end [2024-12-17 02:20:18] Production.INFO: ProcessCDR(1,14037710,1,1,2) [2024-12-17 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037710', 'tblTempUsageDetail_20' ) start [2024-12-17 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037710', 'tblTempUsageDetail_20' ) end [2024-12-17 02:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:20:21] Production.INFO: ==8943== Releasing lock... [2024-12-17 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:20:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:21:05 [end_date_ymd] => 2024-12-17 02:21:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:21:05' and `end` < '2024-12-17 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-17 02:21:17] Production.INFO: count ==1397 [2024-12-17 02:21:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:21:05 - End Time 2024-12-17 02:21:05 [2024-12-17 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037715', 'tblTempUsageDetail_20' ) start [2024-12-17 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037715', 'tblTempUsageDetail_20' ) end [2024-12-17 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037715', 'tblTempVendorCDR_20' ) start [2024-12-17 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037715', 'tblTempVendorCDR_20' ) end [2024-12-17 02:21:18] Production.INFO: ProcessCDR(1,14037715,1,1,2) [2024-12-17 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037715', 'tblTempUsageDetail_20' ) start [2024-12-17 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037715', 'tblTempUsageDetail_20' ) end [2024-12-17 02:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:21:21] Production.INFO: ==9035== Releasing lock... [2024-12-17 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:21:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:22:04 [end_date_ymd] => 2024-12-17 02:22:04 [RateCDR] => 1 ) [2024-12-17 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-16 23:22:04' and `end` < '2024-12-17 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-17 02:22:16] Production.INFO: count ==1397 [2024-12-17 02:22:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:22:04 - End Time 2024-12-17 02:22:04 [2024-12-17 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037720', 'tblTempUsageDetail_20' ) start [2024-12-17 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037720', 'tblTempUsageDetail_20' ) end [2024-12-17 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037720', 'tblTempVendorCDR_20' ) start [2024-12-17 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037720', 'tblTempVendorCDR_20' ) end [2024-12-17 02:22:17] Production.INFO: ProcessCDR(1,14037720,1,1,2) [2024-12-17 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037720', 'tblTempUsageDetail_20' ) start [2024-12-17 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037720', 'tblTempUsageDetail_20' ) end [2024-12-17 02:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:22:20] Production.INFO: ==9112== Releasing lock... [2024-12-17 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:22:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:23:05 [end_date_ymd] => 2024-12-17 02:23:05 [RateCDR] => 1 ) [2024-12-17 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 23:23:05' and `end` < '2024-12-17 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:23:17] Production.INFO: count ==1393 [2024-12-17 02:23:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:23:05 - End Time 2024-12-17 02:23:05 [2024-12-17 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037725', 'tblTempUsageDetail_20' ) start [2024-12-17 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037725', 'tblTempUsageDetail_20' ) end [2024-12-17 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037725', 'tblTempVendorCDR_20' ) start [2024-12-17 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037725', 'tblTempVendorCDR_20' ) end [2024-12-17 02:23:17] Production.INFO: ProcessCDR(1,14037725,1,1,2) [2024-12-17 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037725', 'tblTempUsageDetail_20' ) start [2024-12-17 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037725', 'tblTempUsageDetail_20' ) end [2024-12-17 02:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:23:21] Production.INFO: ==9195== Releasing lock... [2024-12-17 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:23:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:24:06 [end_date_ymd] => 2024-12-17 02:24:06 [RateCDR] => 1 ) [2024-12-17 02:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 23:24:06' and `end` < '2024-12-17 02:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:24:18] Production.INFO: count ==1392 [2024-12-17 02:24:19] Production.ERROR: pbx CDR StartTime 2024-12-16 23:24:06 - End Time 2024-12-17 02:24:06 [2024-12-17 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037730', 'tblTempUsageDetail_20' ) start [2024-12-17 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037730', 'tblTempUsageDetail_20' ) end [2024-12-17 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037730', 'tblTempVendorCDR_20' ) start [2024-12-17 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037730', 'tblTempVendorCDR_20' ) end [2024-12-17 02:24:19] Production.INFO: ProcessCDR(1,14037730,1,1,2) [2024-12-17 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037730', 'tblTempUsageDetail_20' ) start [2024-12-17 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037730', 'tblTempUsageDetail_20' ) end [2024-12-17 02:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:24:22] Production.INFO: ==9283== Releasing lock... [2024-12-17 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:24:22] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:25:05 [end_date_ymd] => 2024-12-17 02:25:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:25:05' and `end` < '2024-12-17 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-17 02:25:17] Production.INFO: count ==1392 [2024-12-17 02:25:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:25:05 - End Time 2024-12-17 02:25:05 [2024-12-17 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037735', 'tblTempUsageDetail_20' ) start [2024-12-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037735', 'tblTempUsageDetail_20' ) end [2024-12-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037735', 'tblTempVendorCDR_20' ) start [2024-12-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037735', 'tblTempVendorCDR_20' ) end [2024-12-17 02:25:18] Production.INFO: ProcessCDR(1,14037735,1,1,2) [2024-12-17 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037735', 'tblTempUsageDetail_20' ) start [2024-12-17 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037735', 'tblTempUsageDetail_20' ) end [2024-12-17 02:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:25:21] Production.INFO: ==9366== Releasing lock... [2024-12-17 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:25:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:26:05 [end_date_ymd] => 2024-12-17 02:26:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:26:05' and `end` < '2024-12-17 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-17 02:26:18] Production.INFO: count ==1391 [2024-12-17 02:26:19] Production.ERROR: pbx CDR StartTime 2024-12-16 23:26:05 - End Time 2024-12-17 02:26:05 [2024-12-17 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037740', 'tblTempUsageDetail_20' ) start [2024-12-17 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037740', 'tblTempUsageDetail_20' ) end [2024-12-17 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037740', 'tblTempVendorCDR_20' ) start [2024-12-17 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037740', 'tblTempVendorCDR_20' ) end [2024-12-17 02:26:19] Production.INFO: ProcessCDR(1,14037740,1,1,2) [2024-12-17 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037740', 'tblTempUsageDetail_20' ) start [2024-12-17 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037740', 'tblTempUsageDetail_20' ) end [2024-12-17 02:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:26:22] Production.INFO: ==9447== Releasing lock... [2024-12-17 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:26:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:27:04 [end_date_ymd] => 2024-12-17 02:27:04 [RateCDR] => 1 ) [2024-12-17 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-16 23:27:04' and `end` < '2024-12-17 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-17 02:27:16] Production.INFO: count ==1390 [2024-12-17 02:27:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:27:04 - End Time 2024-12-17 02:27:04 [2024-12-17 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037745', 'tblTempUsageDetail_20' ) start [2024-12-17 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037745', 'tblTempUsageDetail_20' ) end [2024-12-17 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037745', 'tblTempVendorCDR_20' ) start [2024-12-17 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037745', 'tblTempVendorCDR_20' ) end [2024-12-17 02:27:17] Production.INFO: ProcessCDR(1,14037745,1,1,2) [2024-12-17 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037745', 'tblTempUsageDetail_20' ) start [2024-12-17 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037745', 'tblTempUsageDetail_20' ) end [2024-12-17 02:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:27:20] Production.INFO: ==9523== Releasing lock... [2024-12-17 02:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:27:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-17 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:28:05 [end_date_ymd] => 2024-12-17 02:28:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:28:05' and `end` < '2024-12-17 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-17 02:28:17] Production.INFO: count ==1389 [2024-12-17 02:28:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:28:05 - End Time 2024-12-17 02:28:05 [2024-12-17 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037750', 'tblTempUsageDetail_20' ) start [2024-12-17 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037750', 'tblTempUsageDetail_20' ) end [2024-12-17 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037750', 'tblTempVendorCDR_20' ) start [2024-12-17 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037750', 'tblTempVendorCDR_20' ) end [2024-12-17 02:28:18] Production.INFO: ProcessCDR(1,14037750,1,1,2) [2024-12-17 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037750', 'tblTempUsageDetail_20' ) start [2024-12-17 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037750', 'tblTempUsageDetail_20' ) end [2024-12-17 02:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:28:21] Production.INFO: ==9601== Releasing lock... [2024-12-17 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:28:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:29:05 [end_date_ymd] => 2024-12-17 02:29:05 [RateCDR] => 1 ) [2024-12-17 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 23:29:05' and `end` < '2024-12-17 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:29:17] Production.INFO: count ==1389 [2024-12-17 02:29:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:29:05 - End Time 2024-12-17 02:29:05 [2024-12-17 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037755', 'tblTempUsageDetail_20' ) start [2024-12-17 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037755', 'tblTempUsageDetail_20' ) end [2024-12-17 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037755', 'tblTempVendorCDR_20' ) start [2024-12-17 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037755', 'tblTempVendorCDR_20' ) end [2024-12-17 02:29:17] Production.INFO: ProcessCDR(1,14037755,1,1,2) [2024-12-17 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037755', 'tblTempUsageDetail_20' ) start [2024-12-17 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037755', 'tblTempUsageDetail_20' ) end [2024-12-17 02:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:29:21] Production.INFO: ==9723== Releasing lock... [2024-12-17 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:29:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:30:05 [end_date_ymd] => 2024-12-17 02:30:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:30:05' and `end` < '2024-12-17 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-17 02:30:18] Production.INFO: count ==1395 [2024-12-17 02:30:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:30:05 - End Time 2024-12-17 02:30:05 [2024-12-17 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037761', 'tblTempUsageDetail_20' ) start [2024-12-17 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037761', 'tblTempUsageDetail_20' ) end [2024-12-17 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037761', 'tblTempVendorCDR_20' ) start [2024-12-17 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037761', 'tblTempVendorCDR_20' ) end [2024-12-17 02:30:18] Production.INFO: ProcessCDR(1,14037761,1,1,2) [2024-12-17 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037761', 'tblTempUsageDetail_20' ) start [2024-12-17 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037761', 'tblTempUsageDetail_20' ) end [2024-12-17 02:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:30:21] Production.INFO: ==9802== Releasing lock... [2024-12-17 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:30:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:31:04 [end_date_ymd] => 2024-12-17 02:31:04 [RateCDR] => 1 ) [2024-12-17 02:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 23:31:04' and `end` < '2024-12-17 02:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:31:17] Production.INFO: count ==1402 [2024-12-17 02:31:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:31:04 - End Time 2024-12-17 02:31:04 [2024-12-17 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037766', 'tblTempUsageDetail_20' ) start [2024-12-17 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037766', 'tblTempUsageDetail_20' ) end [2024-12-17 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037766', 'tblTempVendorCDR_20' ) start [2024-12-17 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037766', 'tblTempVendorCDR_20' ) end [2024-12-17 02:31:18] Production.INFO: ProcessCDR(1,14037766,1,1,2) [2024-12-17 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037766', 'tblTempUsageDetail_20' ) start [2024-12-17 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037766', 'tblTempUsageDetail_20' ) end [2024-12-17 02:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:31:21] Production.INFO: ==9888== Releasing lock... [2024-12-17 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:31:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:32:05 [end_date_ymd] => 2024-12-17 02:32:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:32:05' and `end` < '2024-12-17 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-17 02:32:17] Production.INFO: count ==1401 [2024-12-17 02:32:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:32:05 - End Time 2024-12-17 02:32:05 [2024-12-17 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037771', 'tblTempUsageDetail_20' ) start [2024-12-17 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037771', 'tblTempUsageDetail_20' ) end [2024-12-17 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037771', 'tblTempVendorCDR_20' ) start [2024-12-17 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037771', 'tblTempVendorCDR_20' ) end [2024-12-17 02:32:17] Production.INFO: ProcessCDR(1,14037771,1,1,2) [2024-12-17 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037771', 'tblTempUsageDetail_20' ) start [2024-12-17 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037771', 'tblTempUsageDetail_20' ) end [2024-12-17 02:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:32:21] Production.INFO: ==9964== Releasing lock... [2024-12-17 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:32:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:33:04 [end_date_ymd] => 2024-12-17 02:33:04 [RateCDR] => 1 ) [2024-12-17 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-16 23:33:04' and `end` < '2024-12-17 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-17 02:33:17] Production.INFO: count ==1401 [2024-12-17 02:33:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:33:04 - End Time 2024-12-17 02:33:04 [2024-12-17 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037776', 'tblTempUsageDetail_20' ) start [2024-12-17 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037776', 'tblTempUsageDetail_20' ) end [2024-12-17 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037776', 'tblTempVendorCDR_20' ) start [2024-12-17 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037776', 'tblTempVendorCDR_20' ) end [2024-12-17 02:33:18] Production.INFO: ProcessCDR(1,14037776,1,1,2) [2024-12-17 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037776', 'tblTempUsageDetail_20' ) start [2024-12-17 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037776', 'tblTempUsageDetail_20' ) end [2024-12-17 02:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:33:21] Production.INFO: ==10044== Releasing lock... [2024-12-17 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:33:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:34:05 [end_date_ymd] => 2024-12-17 02:34:05 [RateCDR] => 1 ) [2024-12-17 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 23:34:05' and `end` < '2024-12-17 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:34:18] Production.INFO: count ==1398 [2024-12-17 02:34:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:34:05 - End Time 2024-12-17 02:34:05 [2024-12-17 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037781', 'tblTempUsageDetail_20' ) start [2024-12-17 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037781', 'tblTempUsageDetail_20' ) end [2024-12-17 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037781', 'tblTempVendorCDR_20' ) start [2024-12-17 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037781', 'tblTempVendorCDR_20' ) end [2024-12-17 02:34:18] Production.INFO: ProcessCDR(1,14037781,1,1,2) [2024-12-17 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037781', 'tblTempUsageDetail_20' ) start [2024-12-17 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037781', 'tblTempUsageDetail_20' ) end [2024-12-17 02:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:34:21] Production.INFO: ==10118== Releasing lock... [2024-12-17 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:34:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:35:05 [end_date_ymd] => 2024-12-17 02:35:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:35:05' and `end` < '2024-12-17 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-17 02:35:17] Production.INFO: count ==1398 [2024-12-17 02:35:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:35:05 - End Time 2024-12-17 02:35:05 [2024-12-17 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037786', 'tblTempUsageDetail_20' ) start [2024-12-17 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037786', 'tblTempUsageDetail_20' ) end [2024-12-17 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037786', 'tblTempVendorCDR_20' ) start [2024-12-17 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037786', 'tblTempVendorCDR_20' ) end [2024-12-17 02:35:18] Production.INFO: ProcessCDR(1,14037786,1,1,2) [2024-12-17 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037786', 'tblTempUsageDetail_20' ) start [2024-12-17 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037786', 'tblTempUsageDetail_20' ) end [2024-12-17 02:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:35:21] Production.INFO: ==10204== Releasing lock... [2024-12-17 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:35:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:36:04 [end_date_ymd] => 2024-12-17 02:36:04 [RateCDR] => 1 ) [2024-12-17 02: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-16 23:36:04' and `end` < '2024-12-17 02: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-17 02:36:18] Production.INFO: count ==1399 [2024-12-17 02:36:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:36:04 - End Time 2024-12-17 02:36:04 [2024-12-17 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037791', 'tblTempUsageDetail_20' ) start [2024-12-17 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037791', 'tblTempUsageDetail_20' ) end [2024-12-17 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037791', 'tblTempVendorCDR_20' ) start [2024-12-17 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037791', 'tblTempVendorCDR_20' ) end [2024-12-17 02:36:18] Production.INFO: ProcessCDR(1,14037791,1,1,2) [2024-12-17 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037791', 'tblTempUsageDetail_20' ) start [2024-12-17 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037791', 'tblTempUsageDetail_20' ) end [2024-12-17 02:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:36:22] Production.INFO: ==10276== Releasing lock... [2024-12-17 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:36:23] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:37:04 [end_date_ymd] => 2024-12-17 02:37:04 [RateCDR] => 1 ) [2024-12-17 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-16 23:37:04' and `end` < '2024-12-17 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-17 02:37:17] Production.INFO: count ==1400 [2024-12-17 02:37:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:37:04 - End Time 2024-12-17 02:37:04 [2024-12-17 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037796', 'tblTempUsageDetail_20' ) start [2024-12-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037796', 'tblTempUsageDetail_20' ) end [2024-12-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037796', 'tblTempVendorCDR_20' ) start [2024-12-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037796', 'tblTempVendorCDR_20' ) end [2024-12-17 02:37:18] Production.INFO: ProcessCDR(1,14037796,1,1,2) [2024-12-17 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037796', 'tblTempUsageDetail_20' ) start [2024-12-17 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037796', 'tblTempUsageDetail_20' ) end [2024-12-17 02:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:37:22] Production.INFO: ==10349== Releasing lock... [2024-12-17 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:37:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:38:04 [end_date_ymd] => 2024-12-17 02:38:04 [RateCDR] => 1 ) [2024-12-17 02: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-16 23:38:04' and `end` < '2024-12-17 02: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-17 02:38:16] Production.INFO: count ==1397 [2024-12-17 02:38:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:38:04 - End Time 2024-12-17 02:38:04 [2024-12-17 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037801', 'tblTempUsageDetail_20' ) start [2024-12-17 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037801', 'tblTempUsageDetail_20' ) end [2024-12-17 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037801', 'tblTempVendorCDR_20' ) start [2024-12-17 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037801', 'tblTempVendorCDR_20' ) end [2024-12-17 02:38:17] Production.INFO: ProcessCDR(1,14037801,1,1,2) [2024-12-17 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037801', 'tblTempUsageDetail_20' ) start [2024-12-17 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037801', 'tblTempUsageDetail_20' ) end [2024-12-17 02:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:38:20] Production.INFO: ==10419== Releasing lock... [2024-12-17 02:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:38:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:39:05 [end_date_ymd] => 2024-12-17 02:39:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:39:05' and `end` < '2024-12-17 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:39:17] Production.INFO: count ==1396 [2024-12-17 02:39:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:39:05 - End Time 2024-12-17 02:39:05 [2024-12-17 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037806', 'tblTempUsageDetail_20' ) start [2024-12-17 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037806', 'tblTempUsageDetail_20' ) end [2024-12-17 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037806', 'tblTempVendorCDR_20' ) start [2024-12-17 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037806', 'tblTempVendorCDR_20' ) end [2024-12-17 02:39:18] Production.INFO: ProcessCDR(1,14037806,1,1,2) [2024-12-17 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037806', 'tblTempUsageDetail_20' ) start [2024-12-17 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037806', 'tblTempUsageDetail_20' ) end [2024-12-17 02:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:39:20] Production.INFO: ==10495== Releasing lock... [2024-12-17 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:39:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:40:05 [end_date_ymd] => 2024-12-17 02:40:05 [RateCDR] => 1 ) [2024-12-17 02: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-16 23:40:05' and `end` < '2024-12-17 02: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-17 02:40:17] Production.INFO: count ==1400 [2024-12-17 02:40:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:40:05 - End Time 2024-12-17 02:40:05 [2024-12-17 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037812', 'tblTempUsageDetail_20' ) start [2024-12-17 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037812', 'tblTempUsageDetail_20' ) end [2024-12-17 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037812', 'tblTempVendorCDR_20' ) start [2024-12-17 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037812', 'tblTempVendorCDR_20' ) end [2024-12-17 02:40:18] Production.INFO: ProcessCDR(1,14037812,1,1,2) [2024-12-17 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037812', 'tblTempUsageDetail_20' ) start [2024-12-17 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037812', 'tblTempUsageDetail_20' ) end [2024-12-17 02:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:40:21] Production.INFO: ==10567== Releasing lock... [2024-12-17 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:40:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:41:04 [end_date_ymd] => 2024-12-17 02:41:04 [RateCDR] => 1 ) [2024-12-17 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-16 23:41:04' and `end` < '2024-12-17 02: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-17 02:41:17] Production.INFO: count ==1401 [2024-12-17 02:41:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:41:04 - End Time 2024-12-17 02:41:04 [2024-12-17 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037817', 'tblTempUsageDetail_20' ) start [2024-12-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037817', 'tblTempUsageDetail_20' ) end [2024-12-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037817', 'tblTempVendorCDR_20' ) start [2024-12-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037817', 'tblTempVendorCDR_20' ) end [2024-12-17 02:41:18] Production.INFO: ProcessCDR(1,14037817,1,1,2) [2024-12-17 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037817', 'tblTempUsageDetail_20' ) start [2024-12-17 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037817', 'tblTempUsageDetail_20' ) end [2024-12-17 02:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:41:21] Production.INFO: ==10642== Releasing lock... [2024-12-17 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:41:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:42:05 [end_date_ymd] => 2024-12-17 02:42:05 [RateCDR] => 1 ) [2024-12-17 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 23:42:05' and `end` < '2024-12-17 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:42:17] Production.INFO: count ==1401 [2024-12-17 02:42:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:42:05 - End Time 2024-12-17 02:42:05 [2024-12-17 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037822', 'tblTempUsageDetail_20' ) start [2024-12-17 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037822', 'tblTempUsageDetail_20' ) end [2024-12-17 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037822', 'tblTempVendorCDR_20' ) start [2024-12-17 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037822', 'tblTempVendorCDR_20' ) end [2024-12-17 02:42:17] Production.INFO: ProcessCDR(1,14037822,1,1,2) [2024-12-17 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037822', 'tblTempUsageDetail_20' ) start [2024-12-17 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037822', 'tblTempUsageDetail_20' ) end [2024-12-17 02:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:42:20] Production.INFO: ==10713== Releasing lock... [2024-12-17 02:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:42:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:43:05 [end_date_ymd] => 2024-12-17 02:43:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:43:05' and `end` < '2024-12-17 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:43:17] Production.INFO: count ==1401 [2024-12-17 02:43:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:43:05 - End Time 2024-12-17 02:43:05 [2024-12-17 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037827', 'tblTempUsageDetail_20' ) start [2024-12-17 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037827', 'tblTempUsageDetail_20' ) end [2024-12-17 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037827', 'tblTempVendorCDR_20' ) start [2024-12-17 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037827', 'tblTempVendorCDR_20' ) end [2024-12-17 02:43:17] Production.INFO: ProcessCDR(1,14037827,1,1,2) [2024-12-17 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037827', 'tblTempUsageDetail_20' ) start [2024-12-17 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037827', 'tblTempUsageDetail_20' ) end [2024-12-17 02:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:43:21] Production.INFO: ==10783== Releasing lock... [2024-12-17 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:43:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:44:05 [end_date_ymd] => 2024-12-17 02:44:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:44:05' and `end` < '2024-12-17 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-17 02:44:17] Production.INFO: count ==1401 [2024-12-17 02:44:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:44:05 - End Time 2024-12-17 02:44:05 [2024-12-17 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037832', 'tblTempUsageDetail_20' ) start [2024-12-17 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037832', 'tblTempUsageDetail_20' ) end [2024-12-17 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037832', 'tblTempVendorCDR_20' ) start [2024-12-17 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037832', 'tblTempVendorCDR_20' ) end [2024-12-17 02:44:18] Production.INFO: ProcessCDR(1,14037832,1,1,2) [2024-12-17 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037832', 'tblTempUsageDetail_20' ) start [2024-12-17 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037832', 'tblTempUsageDetail_20' ) end [2024-12-17 02:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:44:21] Production.INFO: ==10862== Releasing lock... [2024-12-17 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:44:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:45:05 [end_date_ymd] => 2024-12-17 02:45:05 [RateCDR] => 1 ) [2024-12-17 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 23:45:05' and `end` < '2024-12-17 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:45:17] Production.INFO: count ==1401 [2024-12-17 02:45:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:45:05 - End Time 2024-12-17 02:45:05 [2024-12-17 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037837', 'tblTempUsageDetail_20' ) start [2024-12-17 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037837', 'tblTempUsageDetail_20' ) end [2024-12-17 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037837', 'tblTempVendorCDR_20' ) start [2024-12-17 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037837', 'tblTempVendorCDR_20' ) end [2024-12-17 02:45:18] Production.INFO: ProcessCDR(1,14037837,1,1,2) [2024-12-17 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037837', 'tblTempUsageDetail_20' ) start [2024-12-17 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037837', 'tblTempUsageDetail_20' ) end [2024-12-17 02:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:45:21] Production.INFO: ==10975== Releasing lock... [2024-12-17 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:45:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:46:05 [end_date_ymd] => 2024-12-17 02:46:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:46:05' and `end` < '2024-12-17 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-17 02:46:18] Production.INFO: count ==1401 [2024-12-17 02:46:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:46:05 - End Time 2024-12-17 02:46:05 [2024-12-17 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037842', 'tblTempUsageDetail_20' ) start [2024-12-17 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037842', 'tblTempUsageDetail_20' ) end [2024-12-17 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037842', 'tblTempVendorCDR_20' ) start [2024-12-17 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037842', 'tblTempVendorCDR_20' ) end [2024-12-17 02:46:18] Production.INFO: ProcessCDR(1,14037842,1,1,2) [2024-12-17 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037842', 'tblTempUsageDetail_20' ) start [2024-12-17 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037842', 'tblTempUsageDetail_20' ) end [2024-12-17 02:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:46:21] Production.INFO: ==11053== Releasing lock... [2024-12-17 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:46:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:47:04 [end_date_ymd] => 2024-12-17 02:47:04 [RateCDR] => 1 ) [2024-12-17 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-16 23:47:04' and `end` < '2024-12-17 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-17 02:47:17] Production.INFO: count ==1401 [2024-12-17 02:47:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:47:04 - End Time 2024-12-17 02:47:04 [2024-12-17 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037847', 'tblTempUsageDetail_20' ) start [2024-12-17 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037847', 'tblTempUsageDetail_20' ) end [2024-12-17 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037847', 'tblTempVendorCDR_20' ) start [2024-12-17 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037847', 'tblTempVendorCDR_20' ) end [2024-12-17 02:47:17] Production.INFO: ProcessCDR(1,14037847,1,1,2) [2024-12-17 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037847', 'tblTempUsageDetail_20' ) start [2024-12-17 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037847', 'tblTempUsageDetail_20' ) end [2024-12-17 02:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:47:20] Production.INFO: ==11126== Releasing lock... [2024-12-17 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:47:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:48:05 [end_date_ymd] => 2024-12-17 02:48:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:48:05' and `end` < '2024-12-17 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-17 02:48:17] Production.INFO: count ==1401 [2024-12-17 02:48:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:48:05 - End Time 2024-12-17 02:48:05 [2024-12-17 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037852', 'tblTempUsageDetail_20' ) start [2024-12-17 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037852', 'tblTempUsageDetail_20' ) end [2024-12-17 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037852', 'tblTempVendorCDR_20' ) start [2024-12-17 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037852', 'tblTempVendorCDR_20' ) end [2024-12-17 02:48:18] Production.INFO: ProcessCDR(1,14037852,1,1,2) [2024-12-17 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037852', 'tblTempUsageDetail_20' ) start [2024-12-17 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037852', 'tblTempUsageDetail_20' ) end [2024-12-17 02:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:48:21] Production.INFO: ==11200== Releasing lock... [2024-12-17 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:48:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:49:05 [end_date_ymd] => 2024-12-17 02:49:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:49:05' and `end` < '2024-12-17 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-17 02:49:17] Production.INFO: count ==1399 [2024-12-17 02:49:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:49:05 - End Time 2024-12-17 02:49:05 [2024-12-17 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037857', 'tblTempUsageDetail_20' ) start [2024-12-17 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037857', 'tblTempUsageDetail_20' ) end [2024-12-17 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037857', 'tblTempVendorCDR_20' ) start [2024-12-17 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037857', 'tblTempVendorCDR_20' ) end [2024-12-17 02:49:18] Production.INFO: ProcessCDR(1,14037857,1,1,2) [2024-12-17 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037857', 'tblTempUsageDetail_20' ) start [2024-12-17 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037857', 'tblTempUsageDetail_20' ) end [2024-12-17 02:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:49:21] Production.INFO: ==11273== Releasing lock... [2024-12-17 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:49:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-17 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:50:05 [end_date_ymd] => 2024-12-17 02:50:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:50:05' and `end` < '2024-12-17 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-17 02:50:17] Production.INFO: count ==1405 [2024-12-17 02:50:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:50:05 - End Time 2024-12-17 02:50:05 [2024-12-17 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037863', 'tblTempUsageDetail_20' ) start [2024-12-17 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037863', 'tblTempUsageDetail_20' ) end [2024-12-17 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037863', 'tblTempVendorCDR_20' ) start [2024-12-17 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037863', 'tblTempVendorCDR_20' ) end [2024-12-17 02:50:18] Production.INFO: ProcessCDR(1,14037863,1,1,2) [2024-12-17 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037863', 'tblTempUsageDetail_20' ) start [2024-12-17 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037863', 'tblTempUsageDetail_20' ) end [2024-12-17 02:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:50:21] Production.INFO: ==11351== Releasing lock... [2024-12-17 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:50:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:51:05 [end_date_ymd] => 2024-12-17 02:51:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:51:05' and `end` < '2024-12-17 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-17 02:51:17] Production.INFO: count ==1409 [2024-12-17 02:51:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:51:05 - End Time 2024-12-17 02:51:05 [2024-12-17 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037868', 'tblTempUsageDetail_20' ) start [2024-12-17 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037868', 'tblTempUsageDetail_20' ) end [2024-12-17 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037868', 'tblTempVendorCDR_20' ) start [2024-12-17 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037868', 'tblTempVendorCDR_20' ) end [2024-12-17 02:51:17] Production.INFO: ProcessCDR(1,14037868,1,1,2) [2024-12-17 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037868', 'tblTempUsageDetail_20' ) start [2024-12-17 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037868', 'tblTempUsageDetail_20' ) end [2024-12-17 02:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:51:20] Production.INFO: ==11431== Releasing lock... [2024-12-17 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:51:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:52:05 [end_date_ymd] => 2024-12-17 02:52:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:52:05' and `end` < '2024-12-17 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-17 02:52:18] Production.INFO: count ==1408 [2024-12-17 02:52:19] Production.ERROR: pbx CDR StartTime 2024-12-16 23:52:05 - End Time 2024-12-17 02:52:05 [2024-12-17 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037873', 'tblTempUsageDetail_20' ) start [2024-12-17 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037873', 'tblTempUsageDetail_20' ) end [2024-12-17 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037873', 'tblTempVendorCDR_20' ) start [2024-12-17 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037873', 'tblTempVendorCDR_20' ) end [2024-12-17 02:52:19] Production.INFO: ProcessCDR(1,14037873,1,1,2) [2024-12-17 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037873', 'tblTempUsageDetail_20' ) start [2024-12-17 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037873', 'tblTempUsageDetail_20' ) end [2024-12-17 02:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:52:22] Production.INFO: ==11507== Releasing lock... [2024-12-17 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:52:22] Production.INFO: 39 MB #Memory Used# [2024-12-17 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:53:04 [end_date_ymd] => 2024-12-17 02:53:04 [RateCDR] => 1 ) [2024-12-17 02: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-16 23:53:04' and `end` < '2024-12-17 02: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-17 02:53:17] Production.INFO: count ==1407 [2024-12-17 02:53:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:53:04 - End Time 2024-12-17 02:53:04 [2024-12-17 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037878', 'tblTempUsageDetail_20' ) start [2024-12-17 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037878', 'tblTempUsageDetail_20' ) end [2024-12-17 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037878', 'tblTempVendorCDR_20' ) start [2024-12-17 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037878', 'tblTempVendorCDR_20' ) end [2024-12-17 02:53:17] Production.INFO: ProcessCDR(1,14037878,1,1,2) [2024-12-17 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037878', 'tblTempUsageDetail_20' ) start [2024-12-17 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037878', 'tblTempUsageDetail_20' ) end [2024-12-17 02:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:53:20] Production.INFO: ==11582== Releasing lock... [2024-12-17 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:53:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:54:05 [end_date_ymd] => 2024-12-17 02:54:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:54:05' and `end` < '2024-12-17 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-17 02:54:17] Production.INFO: count ==1407 [2024-12-17 02:54:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:54:05 - End Time 2024-12-17 02:54:05 [2024-12-17 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037883', 'tblTempUsageDetail_20' ) start [2024-12-17 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037883', 'tblTempUsageDetail_20' ) end [2024-12-17 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037883', 'tblTempVendorCDR_20' ) start [2024-12-17 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037883', 'tblTempVendorCDR_20' ) end [2024-12-17 02:54:18] Production.INFO: ProcessCDR(1,14037883,1,1,2) [2024-12-17 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037883', 'tblTempUsageDetail_20' ) start [2024-12-17 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037883', 'tblTempUsageDetail_20' ) end [2024-12-17 02:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:54:21] Production.INFO: ==11658== Releasing lock... [2024-12-17 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:54:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:55:05 [end_date_ymd] => 2024-12-17 02:55:05 [RateCDR] => 1 ) [2024-12-17 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 23:55:05' and `end` < '2024-12-17 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:55:17] Production.INFO: count ==1407 [2024-12-17 02:55:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:55:05 - End Time 2024-12-17 02:55:05 [2024-12-17 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037888', 'tblTempUsageDetail_20' ) start [2024-12-17 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037888', 'tblTempUsageDetail_20' ) end [2024-12-17 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037888', 'tblTempVendorCDR_20' ) start [2024-12-17 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037888', 'tblTempVendorCDR_20' ) end [2024-12-17 02:55:18] Production.INFO: ProcessCDR(1,14037888,1,1,2) [2024-12-17 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037888', 'tblTempUsageDetail_20' ) start [2024-12-17 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037888', 'tblTempUsageDetail_20' ) end [2024-12-17 02:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:55:21] Production.INFO: ==11738== Releasing lock... [2024-12-17 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:55:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:56:05 [end_date_ymd] => 2024-12-17 02:56:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:56:05' and `end` < '2024-12-17 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-17 02:56:17] Production.INFO: count ==1407 [2024-12-17 02:56:18] Production.ERROR: pbx CDR StartTime 2024-12-16 23:56:05 - End Time 2024-12-17 02:56:05 [2024-12-17 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037893', 'tblTempUsageDetail_20' ) start [2024-12-17 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037893', 'tblTempUsageDetail_20' ) end [2024-12-17 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037893', 'tblTempVendorCDR_20' ) start [2024-12-17 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037893', 'tblTempVendorCDR_20' ) end [2024-12-17 02:56:18] Production.INFO: ProcessCDR(1,14037893,1,1,2) [2024-12-17 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037893', 'tblTempUsageDetail_20' ) start [2024-12-17 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037893', 'tblTempUsageDetail_20' ) end [2024-12-17 02:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:56:21] Production.INFO: ==11813== Releasing lock... [2024-12-17 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:56:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:57:05 [end_date_ymd] => 2024-12-17 02:57:05 [RateCDR] => 1 ) [2024-12-17 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-16 23:57:05' and `end` < '2024-12-17 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 02:57:18] Production.INFO: count ==1407 [2024-12-17 02:57:19] Production.ERROR: pbx CDR StartTime 2024-12-16 23:57:05 - End Time 2024-12-17 02:57:05 [2024-12-17 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037898', 'tblTempUsageDetail_20' ) start [2024-12-17 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037898', 'tblTempUsageDetail_20' ) end [2024-12-17 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037898', 'tblTempVendorCDR_20' ) start [2024-12-17 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037898', 'tblTempVendorCDR_20' ) end [2024-12-17 02:57:19] Production.INFO: ProcessCDR(1,14037898,1,1,2) [2024-12-17 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037898', 'tblTempUsageDetail_20' ) start [2024-12-17 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037898', 'tblTempUsageDetail_20' ) end [2024-12-17 02:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:57:22] Production.INFO: ==11895== Releasing lock... [2024-12-17 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:57:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:58:05 [end_date_ymd] => 2024-12-17 02:58:05 [RateCDR] => 1 ) [2024-12-17 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-16 23:58:05' and `end` < '2024-12-17 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-17 02:58:17] Production.INFO: count ==1407 [2024-12-17 02:58:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:58:05 - End Time 2024-12-17 02:58:05 [2024-12-17 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037903', 'tblTempUsageDetail_20' ) start [2024-12-17 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037903', 'tblTempUsageDetail_20' ) end [2024-12-17 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037903', 'tblTempVendorCDR_20' ) start [2024-12-17 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037903', 'tblTempVendorCDR_20' ) end [2024-12-17 02:58:17] Production.INFO: ProcessCDR(1,14037903,1,1,2) [2024-12-17 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037903', 'tblTempUsageDetail_20' ) start [2024-12-17 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037903', 'tblTempUsageDetail_20' ) end [2024-12-17 02:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:58:20] Production.INFO: ==11970== Releasing lock... [2024-12-17 02:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:58:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 02:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-16 23:59:04 [end_date_ymd] => 2024-12-17 02:59:04 [RateCDR] => 1 ) [2024-12-17 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-16 23:59:04' and `end` < '2024-12-17 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-17 02:59:17] Production.INFO: count ==1407 [2024-12-17 02:59:17] Production.ERROR: pbx CDR StartTime 2024-12-16 23:59:04 - End Time 2024-12-17 02:59:04 [2024-12-17 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037908', 'tblTempUsageDetail_20' ) start [2024-12-17 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037908', 'tblTempUsageDetail_20' ) end [2024-12-17 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037908', 'tblTempVendorCDR_20' ) start [2024-12-17 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037908', 'tblTempVendorCDR_20' ) end [2024-12-17 02:59:17] Production.INFO: ProcessCDR(1,14037908,1,1,2) [2024-12-17 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037908', 'tblTempUsageDetail_20' ) start [2024-12-17 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037908', 'tblTempUsageDetail_20' ) end [2024-12-17 02:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 02:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 02:59:20] Production.INFO: ==12050== Releasing lock... [2024-12-17 02:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 02:59:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:00:05 [end_date_ymd] => 2024-12-17 03:00:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:00:05' and `end` < '2024-12-17 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-17 03:00:17] Production.INFO: count ==1409 [2024-12-17 03:00:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:00:05 - End Time 2024-12-17 03:00:05 [2024-12-17 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037914', 'tblTempUsageDetail_20' ) start [2024-12-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037914', 'tblTempUsageDetail_20' ) end [2024-12-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037914', 'tblTempVendorCDR_20' ) start [2024-12-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037914', 'tblTempVendorCDR_20' ) end [2024-12-17 03:00:18] Production.INFO: ProcessCDR(1,14037914,1,1,2) [2024-12-17 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037914', 'tblTempUsageDetail_20' ) start [2024-12-17 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037914', 'tblTempUsageDetail_20' ) end [2024-12-17 03:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:00:21] Production.INFO: ==12128== Releasing lock... [2024-12-17 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:00:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:01:05 [end_date_ymd] => 2024-12-17 03:01:05 [RateCDR] => 1 ) [2024-12-17 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:01:05' and `end` < '2024-12-17 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:01:18] Production.INFO: count ==1407 [2024-12-17 03:01:19] Production.ERROR: pbx CDR StartTime 2024-12-17 00:01:05 - End Time 2024-12-17 03:01:05 [2024-12-17 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037919', 'tblTempUsageDetail_20' ) start [2024-12-17 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037919', 'tblTempUsageDetail_20' ) end [2024-12-17 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037919', 'tblTempVendorCDR_20' ) start [2024-12-17 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037919', 'tblTempVendorCDR_20' ) end [2024-12-17 03:01:19] Production.INFO: ProcessCDR(1,14037919,1,1,2) [2024-12-17 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037919', 'tblTempUsageDetail_20' ) start [2024-12-17 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037919', 'tblTempUsageDetail_20' ) end [2024-12-17 03:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:01:22] Production.INFO: ==12271== Releasing lock... [2024-12-17 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:01:22] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:02:05 [end_date_ymd] => 2024-12-17 03:02:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:02:05' and `end` < '2024-12-17 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-17 03:02:17] Production.INFO: count ==1408 [2024-12-17 03:02:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:02:05 - End Time 2024-12-17 03:02:05 [2024-12-17 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037924', 'tblTempUsageDetail_20' ) start [2024-12-17 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037924', 'tblTempUsageDetail_20' ) end [2024-12-17 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037924', 'tblTempVendorCDR_20' ) start [2024-12-17 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037924', 'tblTempVendorCDR_20' ) end [2024-12-17 03:02:18] Production.INFO: ProcessCDR(1,14037924,1,1,2) [2024-12-17 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037924', 'tblTempUsageDetail_20' ) start [2024-12-17 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037924', 'tblTempUsageDetail_20' ) end [2024-12-17 03:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:02:21] Production.INFO: ==12426== Releasing lock... [2024-12-17 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:02:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:03:04 [end_date_ymd] => 2024-12-17 03:03:04 [RateCDR] => 1 ) [2024-12-17 03: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 00:03:04' and `end` < '2024-12-17 03: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-17 03:03:17] Production.INFO: count ==1407 [2024-12-17 03:03:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:03:04 - End Time 2024-12-17 03:03:04 [2024-12-17 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037929', 'tblTempUsageDetail_20' ) start [2024-12-17 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037929', 'tblTempUsageDetail_20' ) end [2024-12-17 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037929', 'tblTempVendorCDR_20' ) start [2024-12-17 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037929', 'tblTempVendorCDR_20' ) end [2024-12-17 03:03:17] Production.INFO: ProcessCDR(1,14037929,1,1,2) [2024-12-17 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037929', 'tblTempUsageDetail_20' ) start [2024-12-17 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037929', 'tblTempUsageDetail_20' ) end [2024-12-17 03:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:03:20] Production.INFO: ==12506== Releasing lock... [2024-12-17 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:03:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:04:05 [end_date_ymd] => 2024-12-17 03:04:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:04:05' and `end` < '2024-12-17 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-17 03:04:17] Production.INFO: count ==1407 [2024-12-17 03:04:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:04:05 - End Time 2024-12-17 03:04:05 [2024-12-17 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037934', 'tblTempUsageDetail_20' ) start [2024-12-17 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037934', 'tblTempUsageDetail_20' ) end [2024-12-17 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037934', 'tblTempVendorCDR_20' ) start [2024-12-17 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037934', 'tblTempVendorCDR_20' ) end [2024-12-17 03:04:18] Production.INFO: ProcessCDR(1,14037934,1,1,2) [2024-12-17 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037934', 'tblTempUsageDetail_20' ) start [2024-12-17 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037934', 'tblTempUsageDetail_20' ) end [2024-12-17 03:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:04:21] Production.INFO: ==12585== Releasing lock... [2024-12-17 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:04:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:05:05 [end_date_ymd] => 2024-12-17 03:05:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:05:05' and `end` < '2024-12-17 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-17 03:05:17] Production.INFO: count ==1407 [2024-12-17 03:05:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:05:05 - End Time 2024-12-17 03:05:05 [2024-12-17 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037939', 'tblTempUsageDetail_20' ) start [2024-12-17 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037939', 'tblTempUsageDetail_20' ) end [2024-12-17 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037939', 'tblTempVendorCDR_20' ) start [2024-12-17 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037939', 'tblTempVendorCDR_20' ) end [2024-12-17 03:05:18] Production.INFO: ProcessCDR(1,14037939,1,1,2) [2024-12-17 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037939', 'tblTempUsageDetail_20' ) start [2024-12-17 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037939', 'tblTempUsageDetail_20' ) end [2024-12-17 03:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:05:21] Production.INFO: ==12662== Releasing lock... [2024-12-17 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:05:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:06:05 [end_date_ymd] => 2024-12-17 03:06:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:06:05' and `end` < '2024-12-17 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-17 03:06:17] Production.INFO: count ==1407 [2024-12-17 03:06:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:06:05 - End Time 2024-12-17 03:06:05 [2024-12-17 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037944', 'tblTempUsageDetail_20' ) start [2024-12-17 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037944', 'tblTempUsageDetail_20' ) end [2024-12-17 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037944', 'tblTempVendorCDR_20' ) start [2024-12-17 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037944', 'tblTempVendorCDR_20' ) end [2024-12-17 03:06:18] Production.INFO: ProcessCDR(1,14037944,1,1,2) [2024-12-17 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037944', 'tblTempUsageDetail_20' ) start [2024-12-17 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037944', 'tblTempUsageDetail_20' ) end [2024-12-17 03:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:06:21] Production.INFO: ==12814== Releasing lock... [2024-12-17 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:06:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:07:04 [end_date_ymd] => 2024-12-17 03:07:04 [RateCDR] => 1 ) [2024-12-17 03: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-17 00:07:04' and `end` < '2024-12-17 03: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-17 03:07:16] Production.INFO: count ==1406 [2024-12-17 03:07:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:07:04 - End Time 2024-12-17 03:07:04 [2024-12-17 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037949', 'tblTempUsageDetail_20' ) start [2024-12-17 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037949', 'tblTempUsageDetail_20' ) end [2024-12-17 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037949', 'tblTempVendorCDR_20' ) start [2024-12-17 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037949', 'tblTempVendorCDR_20' ) end [2024-12-17 03:07:17] Production.INFO: ProcessCDR(1,14037949,1,1,2) [2024-12-17 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037949', 'tblTempUsageDetail_20' ) start [2024-12-17 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037949', 'tblTempUsageDetail_20' ) end [2024-12-17 03:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:07:20] Production.INFO: ==12892== Releasing lock... [2024-12-17 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:07:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:08:05 [end_date_ymd] => 2024-12-17 03:08:05 [RateCDR] => 1 ) [2024-12-17 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:08:05' and `end` < '2024-12-17 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:08:17] Production.INFO: count ==1406 [2024-12-17 03:08:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:08:05 - End Time 2024-12-17 03:08:05 [2024-12-17 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037954', 'tblTempUsageDetail_20' ) start [2024-12-17 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037954', 'tblTempUsageDetail_20' ) end [2024-12-17 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037954', 'tblTempVendorCDR_20' ) start [2024-12-17 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037954', 'tblTempVendorCDR_20' ) end [2024-12-17 03:08:18] Production.INFO: ProcessCDR(1,14037954,1,1,2) [2024-12-17 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037954', 'tblTempUsageDetail_20' ) start [2024-12-17 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037954', 'tblTempUsageDetail_20' ) end [2024-12-17 03:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:08:21] Production.INFO: ==12972== Releasing lock... [2024-12-17 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:08:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:09:04 [end_date_ymd] => 2024-12-17 03:09:04 [RateCDR] => 1 ) [2024-12-17 03: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 00:09:04' and `end` < '2024-12-17 03: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-17 03:09:17] Production.INFO: count ==1406 [2024-12-17 03:09:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:09:04 - End Time 2024-12-17 03:09:04 [2024-12-17 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037959', 'tblTempUsageDetail_20' ) start [2024-12-17 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037959', 'tblTempUsageDetail_20' ) end [2024-12-17 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037959', 'tblTempVendorCDR_20' ) start [2024-12-17 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037959', 'tblTempVendorCDR_20' ) end [2024-12-17 03:09:18] Production.INFO: ProcessCDR(1,14037959,1,1,2) [2024-12-17 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037959', 'tblTempUsageDetail_20' ) start [2024-12-17 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037959', 'tblTempUsageDetail_20' ) end [2024-12-17 03:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:09:21] Production.INFO: ==13129== Releasing lock... [2024-12-17 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:09:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:10:05 [end_date_ymd] => 2024-12-17 03:10:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:10:05' and `end` < '2024-12-17 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-17 03:10:17] Production.INFO: count ==1404 [2024-12-17 03:10:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:10:05 - End Time 2024-12-17 03:10:05 [2024-12-17 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037965', 'tblTempUsageDetail_20' ) start [2024-12-17 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037965', 'tblTempUsageDetail_20' ) end [2024-12-17 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037965', 'tblTempVendorCDR_20' ) start [2024-12-17 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037965', 'tblTempVendorCDR_20' ) end [2024-12-17 03:10:18] Production.INFO: ProcessCDR(1,14037965,1,1,2) [2024-12-17 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037965', 'tblTempUsageDetail_20' ) start [2024-12-17 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037965', 'tblTempUsageDetail_20' ) end [2024-12-17 03:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:10:21] Production.INFO: ==13214== Releasing lock... [2024-12-17 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:10:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:11:05 [end_date_ymd] => 2024-12-17 03:11:05 [RateCDR] => 1 ) [2024-12-17 03:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:11:05' and `end` < '2024-12-17 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:11:18] Production.INFO: count ==1400 [2024-12-17 03:11:19] Production.ERROR: pbx CDR StartTime 2024-12-17 00:11:05 - End Time 2024-12-17 03:11:05 [2024-12-17 03:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037970', 'tblTempUsageDetail_20' ) start [2024-12-17 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037970', 'tblTempUsageDetail_20' ) end [2024-12-17 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037970', 'tblTempVendorCDR_20' ) start [2024-12-17 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037970', 'tblTempVendorCDR_20' ) end [2024-12-17 03:11:19] Production.INFO: ProcessCDR(1,14037970,1,1,2) [2024-12-17 03:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037970', 'tblTempUsageDetail_20' ) start [2024-12-17 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037970', 'tblTempUsageDetail_20' ) end [2024-12-17 03:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:11:22] Production.INFO: ==13296== Releasing lock... [2024-12-17 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:11:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:12:05 [end_date_ymd] => 2024-12-17 03:12:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:12:05' and `end` < '2024-12-17 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-17 03:12:18] Production.INFO: count ==1400 [2024-12-17 03:12:19] Production.ERROR: pbx CDR StartTime 2024-12-17 00:12:05 - End Time 2024-12-17 03:12:05 [2024-12-17 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037975', 'tblTempUsageDetail_20' ) start [2024-12-17 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037975', 'tblTempUsageDetail_20' ) end [2024-12-17 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037975', 'tblTempVendorCDR_20' ) start [2024-12-17 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037975', 'tblTempVendorCDR_20' ) end [2024-12-17 03:12:19] Production.INFO: ProcessCDR(1,14037975,1,1,2) [2024-12-17 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037975', 'tblTempUsageDetail_20' ) start [2024-12-17 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037975', 'tblTempUsageDetail_20' ) end [2024-12-17 03:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:12:22] Production.INFO: ==13370== Releasing lock... [2024-12-17 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:12:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:13:05 [end_date_ymd] => 2024-12-17 03:13:05 [RateCDR] => 1 ) [2024-12-17 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:13:05' and `end` < '2024-12-17 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:13:18] Production.INFO: count ==1400 [2024-12-17 03:13:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:13:05 - End Time 2024-12-17 03:13:05 [2024-12-17 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037980', 'tblTempUsageDetail_20' ) start [2024-12-17 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037980', 'tblTempUsageDetail_20' ) end [2024-12-17 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037980', 'tblTempVendorCDR_20' ) start [2024-12-17 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037980', 'tblTempVendorCDR_20' ) end [2024-12-17 03:13:18] Production.INFO: ProcessCDR(1,14037980,1,1,2) [2024-12-17 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037980', 'tblTempUsageDetail_20' ) start [2024-12-17 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037980', 'tblTempUsageDetail_20' ) end [2024-12-17 03:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:13:21] Production.INFO: ==13531== Releasing lock... [2024-12-17 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:13:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 03:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:14:04 [end_date_ymd] => 2024-12-17 03:14:04 [RateCDR] => 1 ) [2024-12-17 03: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 00:14:04' and `end` < '2024-12-17 03: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-17 03:14:17] Production.INFO: count ==1400 [2024-12-17 03:14:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:14:04 - End Time 2024-12-17 03:14:04 [2024-12-17 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037985', 'tblTempUsageDetail_20' ) start [2024-12-17 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037985', 'tblTempUsageDetail_20' ) end [2024-12-17 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037985', 'tblTempVendorCDR_20' ) start [2024-12-17 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037985', 'tblTempVendorCDR_20' ) end [2024-12-17 03:14:18] Production.INFO: ProcessCDR(1,14037985,1,1,2) [2024-12-17 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037985', 'tblTempUsageDetail_20' ) start [2024-12-17 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037985', 'tblTempUsageDetail_20' ) end [2024-12-17 03:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:14:21] Production.INFO: ==13607== Releasing lock... [2024-12-17 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:14:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 03:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:15:04 [end_date_ymd] => 2024-12-17 03:15:04 [RateCDR] => 1 ) [2024-12-17 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-17 00:15:04' and `end` < '2024-12-17 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-17 03:15:17] Production.INFO: count ==1400 [2024-12-17 03:15:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:15:04 - End Time 2024-12-17 03:15:04 [2024-12-17 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037990', 'tblTempUsageDetail_20' ) start [2024-12-17 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037990', 'tblTempUsageDetail_20' ) end [2024-12-17 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037990', 'tblTempVendorCDR_20' ) start [2024-12-17 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037990', 'tblTempVendorCDR_20' ) end [2024-12-17 03:15:17] Production.INFO: ProcessCDR(1,14037990,1,1,2) [2024-12-17 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037990', 'tblTempUsageDetail_20' ) start [2024-12-17 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037990', 'tblTempUsageDetail_20' ) end [2024-12-17 03:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:15:20] Production.INFO: ==13687== Releasing lock... [2024-12-17 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:15:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 03:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:16:04 [end_date_ymd] => 2024-12-17 03:16:04 [RateCDR] => 1 ) [2024-12-17 03: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-17 00:16:04' and `end` < '2024-12-17 03: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-17 03:16:16] Production.INFO: count ==1399 [2024-12-17 03:16:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:16:04 - End Time 2024-12-17 03:16:04 [2024-12-17 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037995', 'tblTempUsageDetail_20' ) start [2024-12-17 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14037995', 'tblTempUsageDetail_20' ) end [2024-12-17 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037995', 'tblTempVendorCDR_20' ) start [2024-12-17 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14037995', 'tblTempVendorCDR_20' ) end [2024-12-17 03:16:17] Production.INFO: ProcessCDR(1,14037995,1,1,2) [2024-12-17 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14037995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14037995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14037995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14037995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037995', 'tblTempUsageDetail_20' ) start [2024-12-17 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14037995', 'tblTempUsageDetail_20' ) end [2024-12-17 03:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:16:20] Production.INFO: ==13810== Releasing lock... [2024-12-17 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:16:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:17:05 [end_date_ymd] => 2024-12-17 03:17:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:17:05' and `end` < '2024-12-17 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-17 03:17:17] Production.INFO: count ==1399 [2024-12-17 03:17:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:17:05 - End Time 2024-12-17 03:17:05 [2024-12-17 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038000', 'tblTempUsageDetail_20' ) start [2024-12-17 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038000', 'tblTempUsageDetail_20' ) end [2024-12-17 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038000', 'tblTempVendorCDR_20' ) start [2024-12-17 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038000', 'tblTempVendorCDR_20' ) end [2024-12-17 03:17:17] Production.INFO: ProcessCDR(1,14038000,1,1,2) [2024-12-17 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038000', 'tblTempUsageDetail_20' ) start [2024-12-17 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038000', 'tblTempUsageDetail_20' ) end [2024-12-17 03:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:17:21] Production.INFO: ==14001== Releasing lock... [2024-12-17 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:17:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:18:05 [end_date_ymd] => 2024-12-17 03:18:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:18:05' and `end` < '2024-12-17 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-17 03:18:18] Production.INFO: count ==1399 [2024-12-17 03:18:19] Production.ERROR: pbx CDR StartTime 2024-12-17 00:18:05 - End Time 2024-12-17 03:18:05 [2024-12-17 03:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038005', 'tblTempUsageDetail_20' ) start [2024-12-17 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038005', 'tblTempUsageDetail_20' ) end [2024-12-17 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038005', 'tblTempVendorCDR_20' ) start [2024-12-17 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038005', 'tblTempVendorCDR_20' ) end [2024-12-17 03:18:19] Production.INFO: ProcessCDR(1,14038005,1,1,2) [2024-12-17 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038005', 'tblTempUsageDetail_20' ) start [2024-12-17 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038005', 'tblTempUsageDetail_20' ) end [2024-12-17 03:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:18:22] Production.INFO: ==14081== Releasing lock... [2024-12-17 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:18:22] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:19:04 [end_date_ymd] => 2024-12-17 03:19:04 [RateCDR] => 1 ) [2024-12-17 03: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-17 00:19:04' and `end` < '2024-12-17 03: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-17 03:19:17] Production.INFO: count ==1399 [2024-12-17 03:19:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:19:04 - End Time 2024-12-17 03:19:04 [2024-12-17 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038010', 'tblTempUsageDetail_20' ) start [2024-12-17 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038010', 'tblTempUsageDetail_20' ) end [2024-12-17 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038010', 'tblTempVendorCDR_20' ) start [2024-12-17 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038010', 'tblTempVendorCDR_20' ) end [2024-12-17 03:19:18] Production.INFO: ProcessCDR(1,14038010,1,1,2) [2024-12-17 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038010', 'tblTempUsageDetail_20' ) start [2024-12-17 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038010', 'tblTempUsageDetail_20' ) end [2024-12-17 03:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:19:21] Production.INFO: ==14157== Releasing lock... [2024-12-17 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:19:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:20:05 [end_date_ymd] => 2024-12-17 03:20:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:20:05' and `end` < '2024-12-17 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-17 03:20:17] Production.INFO: count ==1401 [2024-12-17 03:20:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:20:05 - End Time 2024-12-17 03:20:05 [2024-12-17 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038016', 'tblTempUsageDetail_20' ) start [2024-12-17 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038016', 'tblTempUsageDetail_20' ) end [2024-12-17 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038016', 'tblTempVendorCDR_20' ) start [2024-12-17 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038016', 'tblTempVendorCDR_20' ) end [2024-12-17 03:20:18] Production.INFO: ProcessCDR(1,14038016,1,1,2) [2024-12-17 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038016', 'tblTempUsageDetail_20' ) start [2024-12-17 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038016', 'tblTempUsageDetail_20' ) end [2024-12-17 03:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:20:21] Production.INFO: ==14235== Releasing lock... [2024-12-17 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:20:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:21:04 [end_date_ymd] => 2024-12-17 03:21:04 [RateCDR] => 1 ) [2024-12-17 03:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:21:04' and `end` < '2024-12-17 03:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:21:17] Production.INFO: count ==1399 [2024-12-17 03:21:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:21:04 - End Time 2024-12-17 03:21:04 [2024-12-17 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038021', 'tblTempUsageDetail_20' ) start [2024-12-17 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038021', 'tblTempUsageDetail_20' ) end [2024-12-17 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038021', 'tblTempVendorCDR_20' ) start [2024-12-17 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038021', 'tblTempVendorCDR_20' ) end [2024-12-17 03:21:17] Production.INFO: ProcessCDR(1,14038021,1,1,2) [2024-12-17 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038021', 'tblTempUsageDetail_20' ) start [2024-12-17 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038021', 'tblTempUsageDetail_20' ) end [2024-12-17 03:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:21:20] Production.INFO: ==14318== Releasing lock... [2024-12-17 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:21:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:22:05 [end_date_ymd] => 2024-12-17 03:22:05 [RateCDR] => 1 ) [2024-12-17 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:22:05' and `end` < '2024-12-17 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:22:17] Production.INFO: count ==1399 [2024-12-17 03:22:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:22:05 - End Time 2024-12-17 03:22:05 [2024-12-17 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038026', 'tblTempUsageDetail_20' ) start [2024-12-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038026', 'tblTempUsageDetail_20' ) end [2024-12-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038026', 'tblTempVendorCDR_20' ) start [2024-12-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038026', 'tblTempVendorCDR_20' ) end [2024-12-17 03:22:18] Production.INFO: ProcessCDR(1,14038026,1,1,2) [2024-12-17 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038026', 'tblTempUsageDetail_20' ) start [2024-12-17 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038026', 'tblTempUsageDetail_20' ) end [2024-12-17 03:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:22:21] Production.INFO: ==14394== Releasing lock... [2024-12-17 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:22:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:23:05 [end_date_ymd] => 2024-12-17 03:23:05 [RateCDR] => 1 ) [2024-12-17 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:23:05' and `end` < '2024-12-17 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:23:18] Production.INFO: count ==1399 [2024-12-17 03:23:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:23:05 - End Time 2024-12-17 03:23:05 [2024-12-17 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038031', 'tblTempUsageDetail_20' ) start [2024-12-17 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038031', 'tblTempUsageDetail_20' ) end [2024-12-17 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038031', 'tblTempVendorCDR_20' ) start [2024-12-17 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038031', 'tblTempVendorCDR_20' ) end [2024-12-17 03:23:18] Production.INFO: ProcessCDR(1,14038031,1,1,2) [2024-12-17 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038031', 'tblTempUsageDetail_20' ) start [2024-12-17 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038031', 'tblTempUsageDetail_20' ) end [2024-12-17 03:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:23:21] Production.INFO: ==14466== Releasing lock... [2024-12-17 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:23:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:24:05 [end_date_ymd] => 2024-12-17 03:24:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:24:05' and `end` < '2024-12-17 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-17 03:24:17] Production.INFO: count ==1396 [2024-12-17 03:24:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:24:05 - End Time 2024-12-17 03:24:05 [2024-12-17 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038036', 'tblTempUsageDetail_20' ) start [2024-12-17 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038036', 'tblTempUsageDetail_20' ) end [2024-12-17 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038036', 'tblTempVendorCDR_20' ) start [2024-12-17 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038036', 'tblTempVendorCDR_20' ) end [2024-12-17 03:24:17] Production.INFO: ProcessCDR(1,14038036,1,1,2) [2024-12-17 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038036', 'tblTempUsageDetail_20' ) start [2024-12-17 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038036', 'tblTempUsageDetail_20' ) end [2024-12-17 03:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:24:20] Production.INFO: ==14542== Releasing lock... [2024-12-17 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:24:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:25:05 [end_date_ymd] => 2024-12-17 03:25:05 [RateCDR] => 1 ) [2024-12-17 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:25:05' and `end` < '2024-12-17 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:25:18] Production.INFO: count ==1391 [2024-12-17 03:25:19] Production.ERROR: pbx CDR StartTime 2024-12-17 00:25:05 - End Time 2024-12-17 03:25:05 [2024-12-17 03:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038041', 'tblTempUsageDetail_20' ) start [2024-12-17 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038041', 'tblTempUsageDetail_20' ) end [2024-12-17 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038041', 'tblTempVendorCDR_20' ) start [2024-12-17 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038041', 'tblTempVendorCDR_20' ) end [2024-12-17 03:25:19] Production.INFO: ProcessCDR(1,14038041,1,1,2) [2024-12-17 03:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038041', 'tblTempUsageDetail_20' ) start [2024-12-17 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038041', 'tblTempUsageDetail_20' ) end [2024-12-17 03:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:25:22] Production.INFO: ==14613== Releasing lock... [2024-12-17 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:25:22] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:26:04 [end_date_ymd] => 2024-12-17 03:26:04 [RateCDR] => 1 ) [2024-12-17 03: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 00:26:04' and `end` < '2024-12-17 03: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-17 03:26:17] Production.INFO: count ==1390 [2024-12-17 03:26:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:26:04 - End Time 2024-12-17 03:26:04 [2024-12-17 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038046', 'tblTempUsageDetail_20' ) start [2024-12-17 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038046', 'tblTempUsageDetail_20' ) end [2024-12-17 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038046', 'tblTempVendorCDR_20' ) start [2024-12-17 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038046', 'tblTempVendorCDR_20' ) end [2024-12-17 03:26:18] Production.INFO: ProcessCDR(1,14038046,1,1,2) [2024-12-17 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038046', 'tblTempUsageDetail_20' ) start [2024-12-17 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038046', 'tblTempUsageDetail_20' ) end [2024-12-17 03:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:26:21] Production.INFO: ==14687== Releasing lock... [2024-12-17 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:26:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:27:05 [end_date_ymd] => 2024-12-17 03:27:05 [RateCDR] => 1 ) [2024-12-17 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:27:05' and `end` < '2024-12-17 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:27:17] Production.INFO: count ==1388 [2024-12-17 03:27:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:27:05 - End Time 2024-12-17 03:27:05 [2024-12-17 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038051', 'tblTempUsageDetail_20' ) start [2024-12-17 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038051', 'tblTempUsageDetail_20' ) end [2024-12-17 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038051', 'tblTempVendorCDR_20' ) start [2024-12-17 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038051', 'tblTempVendorCDR_20' ) end [2024-12-17 03:27:18] Production.INFO: ProcessCDR(1,14038051,1,1,2) [2024-12-17 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038051', 'tblTempUsageDetail_20' ) start [2024-12-17 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038051', 'tblTempUsageDetail_20' ) end [2024-12-17 03:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:27:21] Production.INFO: ==14764== Releasing lock... [2024-12-17 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:27:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:28:05 [end_date_ymd] => 2024-12-17 03:28:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:28:05' and `end` < '2024-12-17 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-17 03:28:18] Production.INFO: count ==1388 [2024-12-17 03:28:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:28:05 - End Time 2024-12-17 03:28:05 [2024-12-17 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038056', 'tblTempUsageDetail_20' ) start [2024-12-17 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038056', 'tblTempUsageDetail_20' ) end [2024-12-17 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038056', 'tblTempVendorCDR_20' ) start [2024-12-17 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038056', 'tblTempVendorCDR_20' ) end [2024-12-17 03:28:18] Production.INFO: ProcessCDR(1,14038056,1,1,2) [2024-12-17 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038056', 'tblTempUsageDetail_20' ) start [2024-12-17 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038056', 'tblTempUsageDetail_20' ) end [2024-12-17 03:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:28:21] Production.INFO: ==14840== Releasing lock... [2024-12-17 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:28:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:29:04 [end_date_ymd] => 2024-12-17 03:29:04 [RateCDR] => 1 ) [2024-12-17 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-17 00:29:04' and `end` < '2024-12-17 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-17 03:29:17] Production.INFO: count ==1386 [2024-12-17 03:29:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:29:04 - End Time 2024-12-17 03:29:04 [2024-12-17 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038061', 'tblTempUsageDetail_20' ) start [2024-12-17 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038061', 'tblTempUsageDetail_20' ) end [2024-12-17 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038061', 'tblTempVendorCDR_20' ) start [2024-12-17 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038061', 'tblTempVendorCDR_20' ) end [2024-12-17 03:29:18] Production.INFO: ProcessCDR(1,14038061,1,1,2) [2024-12-17 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038061', 'tblTempUsageDetail_20' ) start [2024-12-17 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038061', 'tblTempUsageDetail_20' ) end [2024-12-17 03:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:29:20] Production.INFO: ==14921== Releasing lock... [2024-12-17 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:29:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:30:05 [end_date_ymd] => 2024-12-17 03:30:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:30:05' and `end` < '2024-12-17 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-17 03:30:17] Production.INFO: count ==1383 [2024-12-17 03:30:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:30:05 - End Time 2024-12-17 03:30:05 [2024-12-17 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038067', 'tblTempUsageDetail_20' ) start [2024-12-17 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038067', 'tblTempUsageDetail_20' ) end [2024-12-17 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038067', 'tblTempVendorCDR_20' ) start [2024-12-17 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038067', 'tblTempVendorCDR_20' ) end [2024-12-17 03:30:18] Production.INFO: ProcessCDR(1,14038067,1,1,2) [2024-12-17 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038067', 'tblTempUsageDetail_20' ) start [2024-12-17 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038067', 'tblTempUsageDetail_20' ) end [2024-12-17 03:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:30:21] Production.INFO: ==14998== Releasing lock... [2024-12-17 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:30:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-17 03:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:31:04 [end_date_ymd] => 2024-12-17 03:31:04 [RateCDR] => 1 ) [2024-12-17 03: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 00:31:04' and `end` < '2024-12-17 03: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-17 03:31:16] Production.INFO: count ==1371 [2024-12-17 03:31:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:31:04 - End Time 2024-12-17 03:31:04 [2024-12-17 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038072', 'tblTempUsageDetail_20' ) start [2024-12-17 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038072', 'tblTempUsageDetail_20' ) end [2024-12-17 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038072', 'tblTempVendorCDR_20' ) start [2024-12-17 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038072', 'tblTempVendorCDR_20' ) end [2024-12-17 03:31:17] Production.INFO: ProcessCDR(1,14038072,1,1,2) [2024-12-17 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038072', 'tblTempUsageDetail_20' ) start [2024-12-17 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038072', 'tblTempUsageDetail_20' ) end [2024-12-17 03:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:31:20] Production.INFO: ==15069== Releasing lock... [2024-12-17 03:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:31:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:32:05 [end_date_ymd] => 2024-12-17 03:32:05 [RateCDR] => 1 ) [2024-12-17 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:32:05' and `end` < '2024-12-17 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:32:17] Production.INFO: count ==1370 [2024-12-17 03:32:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:32:05 - End Time 2024-12-17 03:32:05 [2024-12-17 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038077', 'tblTempUsageDetail_20' ) start [2024-12-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038077', 'tblTempUsageDetail_20' ) end [2024-12-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038077', 'tblTempVendorCDR_20' ) start [2024-12-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038077', 'tblTempVendorCDR_20' ) end [2024-12-17 03:32:18] Production.INFO: ProcessCDR(1,14038077,1,1,2) [2024-12-17 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038077', 'tblTempUsageDetail_20' ) start [2024-12-17 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038077', 'tblTempUsageDetail_20' ) end [2024-12-17 03:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:32:21] Production.INFO: ==15146== Releasing lock... [2024-12-17 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:32:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:33:05 [end_date_ymd] => 2024-12-17 03:33:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:33:05' and `end` < '2024-12-17 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-17 03:33:18] Production.INFO: count ==1370 [2024-12-17 03:33:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:33:05 - End Time 2024-12-17 03:33:05 [2024-12-17 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038082', 'tblTempUsageDetail_20' ) start [2024-12-17 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038082', 'tblTempUsageDetail_20' ) end [2024-12-17 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038082', 'tblTempVendorCDR_20' ) start [2024-12-17 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038082', 'tblTempVendorCDR_20' ) end [2024-12-17 03:33:19] Production.INFO: ProcessCDR(1,14038082,1,1,2) [2024-12-17 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038082', 'tblTempUsageDetail_20' ) start [2024-12-17 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038082', 'tblTempUsageDetail_20' ) end [2024-12-17 03:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:33:21] Production.INFO: ==15222== Releasing lock... [2024-12-17 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:33:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:34:04 [end_date_ymd] => 2024-12-17 03:34:04 [RateCDR] => 1 ) [2024-12-17 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-17 00:34:04' and `end` < '2024-12-17 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-17 03:34:16] Production.INFO: count ==1370 [2024-12-17 03:34:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:34:04 - End Time 2024-12-17 03:34:04 [2024-12-17 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038087', 'tblTempUsageDetail_20' ) start [2024-12-17 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038087', 'tblTempUsageDetail_20' ) end [2024-12-17 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038087', 'tblTempVendorCDR_20' ) start [2024-12-17 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038087', 'tblTempVendorCDR_20' ) end [2024-12-17 03:34:17] Production.INFO: ProcessCDR(1,14038087,1,1,2) [2024-12-17 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038087', 'tblTempUsageDetail_20' ) start [2024-12-17 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038087', 'tblTempUsageDetail_20' ) end [2024-12-17 03:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:34:20] Production.INFO: ==15339== Releasing lock... [2024-12-17 03:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:34:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:35:05 [end_date_ymd] => 2024-12-17 03:35:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:35:05' and `end` < '2024-12-17 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-17 03:35:17] Production.INFO: count ==1370 [2024-12-17 03:35:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:35:05 - End Time 2024-12-17 03:35:05 [2024-12-17 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038092', 'tblTempUsageDetail_20' ) start [2024-12-17 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038092', 'tblTempUsageDetail_20' ) end [2024-12-17 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038092', 'tblTempVendorCDR_20' ) start [2024-12-17 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038092', 'tblTempVendorCDR_20' ) end [2024-12-17 03:35:18] Production.INFO: ProcessCDR(1,14038092,1,1,2) [2024-12-17 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038092', 'tblTempUsageDetail_20' ) start [2024-12-17 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038092', 'tblTempUsageDetail_20' ) end [2024-12-17 03:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:35:21] Production.INFO: ==15414== Releasing lock... [2024-12-17 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:35:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:36:05 [end_date_ymd] => 2024-12-17 03:36:05 [RateCDR] => 1 ) [2024-12-17 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:36:05' and `end` < '2024-12-17 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:36:18] Production.INFO: count ==1367 [2024-12-17 03:36:19] Production.ERROR: pbx CDR StartTime 2024-12-17 00:36:05 - End Time 2024-12-17 03:36:05 [2024-12-17 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038097', 'tblTempUsageDetail_20' ) start [2024-12-17 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038097', 'tblTempUsageDetail_20' ) end [2024-12-17 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038097', 'tblTempVendorCDR_20' ) start [2024-12-17 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038097', 'tblTempVendorCDR_20' ) end [2024-12-17 03:36:19] Production.INFO: ProcessCDR(1,14038097,1,1,2) [2024-12-17 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038097', 'tblTempUsageDetail_20' ) start [2024-12-17 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038097', 'tblTempUsageDetail_20' ) end [2024-12-17 03:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:36:22] Production.INFO: ==15492== Releasing lock... [2024-12-17 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:36:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:37:05 [end_date_ymd] => 2024-12-17 03:37:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:37:05' and `end` < '2024-12-17 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-17 03:37:17] Production.INFO: count ==1367 [2024-12-17 03:37:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:37:05 - End Time 2024-12-17 03:37:05 [2024-12-17 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038102', 'tblTempUsageDetail_20' ) start [2024-12-17 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038102', 'tblTempUsageDetail_20' ) end [2024-12-17 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038102', 'tblTempVendorCDR_20' ) start [2024-12-17 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038102', 'tblTempVendorCDR_20' ) end [2024-12-17 03:37:18] Production.INFO: ProcessCDR(1,14038102,1,1,2) [2024-12-17 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038102', 'tblTempUsageDetail_20' ) start [2024-12-17 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038102', 'tblTempUsageDetail_20' ) end [2024-12-17 03:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:37:21] Production.INFO: ==15570== Releasing lock... [2024-12-17 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:37:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:38:05 [end_date_ymd] => 2024-12-17 03:38:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:38:05' and `end` < '2024-12-17 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-17 03:38:18] Production.INFO: count ==1367 [2024-12-17 03:38:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:38:05 - End Time 2024-12-17 03:38:05 [2024-12-17 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038107', 'tblTempUsageDetail_20' ) start [2024-12-17 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038107', 'tblTempUsageDetail_20' ) end [2024-12-17 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038107', 'tblTempVendorCDR_20' ) start [2024-12-17 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038107', 'tblTempVendorCDR_20' ) end [2024-12-17 03:38:18] Production.INFO: ProcessCDR(1,14038107,1,1,2) [2024-12-17 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038107', 'tblTempUsageDetail_20' ) start [2024-12-17 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038107', 'tblTempUsageDetail_20' ) end [2024-12-17 03:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:38:21] Production.INFO: ==15651== Releasing lock... [2024-12-17 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:38:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:39:04 [end_date_ymd] => 2024-12-17 03:39:04 [RateCDR] => 1 ) [2024-12-17 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-17 00:39:04' and `end` < '2024-12-17 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-17 03:39:17] Production.INFO: count ==1367 [2024-12-17 03:39:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:39:04 - End Time 2024-12-17 03:39:04 [2024-12-17 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038112', 'tblTempUsageDetail_20' ) start [2024-12-17 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038112', 'tblTempUsageDetail_20' ) end [2024-12-17 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038112', 'tblTempVendorCDR_20' ) start [2024-12-17 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038112', 'tblTempVendorCDR_20' ) end [2024-12-17 03:39:18] Production.INFO: ProcessCDR(1,14038112,1,1,2) [2024-12-17 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038112', 'tblTempUsageDetail_20' ) start [2024-12-17 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038112', 'tblTempUsageDetail_20' ) end [2024-12-17 03:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:39:21] Production.INFO: ==15724== Releasing lock... [2024-12-17 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:39:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:40:05 [end_date_ymd] => 2024-12-17 03:40:05 [RateCDR] => 1 ) [2024-12-17 03:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:40:05' and `end` < '2024-12-17 03:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:40:18] Production.INFO: count ==1363 [2024-12-17 03:40:19] Production.ERROR: pbx CDR StartTime 2024-12-17 00:40:05 - End Time 2024-12-17 03:40:05 [2024-12-17 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038117', 'tblTempUsageDetail_20' ) start [2024-12-17 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038117', 'tblTempUsageDetail_20' ) end [2024-12-17 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038117', 'tblTempVendorCDR_20' ) start [2024-12-17 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038117', 'tblTempVendorCDR_20' ) end [2024-12-17 03:40:19] Production.INFO: ProcessCDR(1,14038117,1,1,2) [2024-12-17 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038117', 'tblTempUsageDetail_20' ) start [2024-12-17 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038117', 'tblTempUsageDetail_20' ) end [2024-12-17 03:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:40:22] Production.INFO: ==15803== Releasing lock... [2024-12-17 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:40:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:41:04 [end_date_ymd] => 2024-12-17 03:41:04 [RateCDR] => 1 ) [2024-12-17 03: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 00:41:04' and `end` < '2024-12-17 03: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-17 03:41:16] Production.INFO: count ==1363 [2024-12-17 03:41:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:41:04 - End Time 2024-12-17 03:41:04 [2024-12-17 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038123', 'tblTempUsageDetail_20' ) start [2024-12-17 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038123', 'tblTempUsageDetail_20' ) end [2024-12-17 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038123', 'tblTempVendorCDR_20' ) start [2024-12-17 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038123', 'tblTempVendorCDR_20' ) end [2024-12-17 03:41:17] Production.INFO: ProcessCDR(1,14038123,1,1,2) [2024-12-17 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038123', 'tblTempUsageDetail_20' ) start [2024-12-17 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038123', 'tblTempUsageDetail_20' ) end [2024-12-17 03:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:41:20] Production.INFO: ==15882== Releasing lock... [2024-12-17 03:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:41:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:42:04 [end_date_ymd] => 2024-12-17 03:42:04 [RateCDR] => 1 ) [2024-12-17 03: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 00:42:04' and `end` < '2024-12-17 03: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-17 03:42:17] Production.INFO: count ==1363 [2024-12-17 03:42:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:42:04 - End Time 2024-12-17 03:42:04 [2024-12-17 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038128', 'tblTempUsageDetail_20' ) start [2024-12-17 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038128', 'tblTempUsageDetail_20' ) end [2024-12-17 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038128', 'tblTempVendorCDR_20' ) start [2024-12-17 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038128', 'tblTempVendorCDR_20' ) end [2024-12-17 03:42:18] Production.INFO: ProcessCDR(1,14038128,1,1,2) [2024-12-17 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038128', 'tblTempUsageDetail_20' ) start [2024-12-17 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038128', 'tblTempUsageDetail_20' ) end [2024-12-17 03:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:42:21] Production.INFO: ==15958== Releasing lock... [2024-12-17 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:42:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:43:05 [end_date_ymd] => 2024-12-17 03:43:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:43:05' and `end` < '2024-12-17 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-17 03:43:17] Production.INFO: count ==1363 [2024-12-17 03:43:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:43:05 - End Time 2024-12-17 03:43:05 [2024-12-17 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038133', 'tblTempUsageDetail_20' ) start [2024-12-17 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038133', 'tblTempUsageDetail_20' ) end [2024-12-17 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038133', 'tblTempVendorCDR_20' ) start [2024-12-17 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038133', 'tblTempVendorCDR_20' ) end [2024-12-17 03:43:17] Production.INFO: ProcessCDR(1,14038133,1,1,2) [2024-12-17 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038133', 'tblTempUsageDetail_20' ) start [2024-12-17 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038133', 'tblTempUsageDetail_20' ) end [2024-12-17 03:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:43:20] Production.INFO: ==16038== Releasing lock... [2024-12-17 03:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:43:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:44:04 [end_date_ymd] => 2024-12-17 03:44:04 [RateCDR] => 1 ) [2024-12-17 03: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 00:44:04' and `end` < '2024-12-17 03: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-17 03:44:16] Production.INFO: count ==1363 [2024-12-17 03:44:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:44:04 - End Time 2024-12-17 03:44:04 [2024-12-17 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038138', 'tblTempUsageDetail_20' ) start [2024-12-17 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038138', 'tblTempUsageDetail_20' ) end [2024-12-17 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038138', 'tblTempVendorCDR_20' ) start [2024-12-17 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038138', 'tblTempVendorCDR_20' ) end [2024-12-17 03:44:17] Production.INFO: ProcessCDR(1,14038138,1,1,2) [2024-12-17 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038138', 'tblTempUsageDetail_20' ) start [2024-12-17 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038138', 'tblTempUsageDetail_20' ) end [2024-12-17 03:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:44:20] Production.INFO: ==16113== Releasing lock... [2024-12-17 03:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:44:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:45:05 [end_date_ymd] => 2024-12-17 03:45:05 [RateCDR] => 1 ) [2024-12-17 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:45:05' and `end` < '2024-12-17 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:45:18] Production.INFO: count ==1363 [2024-12-17 03:45:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:45:05 - End Time 2024-12-17 03:45:05 [2024-12-17 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038143', 'tblTempUsageDetail_20' ) start [2024-12-17 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038143', 'tblTempUsageDetail_20' ) end [2024-12-17 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038143', 'tblTempVendorCDR_20' ) start [2024-12-17 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038143', 'tblTempVendorCDR_20' ) end [2024-12-17 03:45:18] Production.INFO: ProcessCDR(1,14038143,1,1,2) [2024-12-17 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038143', 'tblTempUsageDetail_20' ) start [2024-12-17 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038143', 'tblTempUsageDetail_20' ) end [2024-12-17 03:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:45:21] Production.INFO: ==16189== Releasing lock... [2024-12-17 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:45:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:46:05 [end_date_ymd] => 2024-12-17 03:46:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:46:05' and `end` < '2024-12-17 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-17 03:46:17] Production.INFO: count ==1363 [2024-12-17 03:46:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:46:05 - End Time 2024-12-17 03:46:05 [2024-12-17 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038148', 'tblTempUsageDetail_20' ) start [2024-12-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038148', 'tblTempUsageDetail_20' ) end [2024-12-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038148', 'tblTempVendorCDR_20' ) start [2024-12-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038148', 'tblTempVendorCDR_20' ) end [2024-12-17 03:46:18] Production.INFO: ProcessCDR(1,14038148,1,1,2) [2024-12-17 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038148', 'tblTempUsageDetail_20' ) start [2024-12-17 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038148', 'tblTempUsageDetail_20' ) end [2024-12-17 03:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:46:21] Production.INFO: ==16261== Releasing lock... [2024-12-17 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:46:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:47:05 [end_date_ymd] => 2024-12-17 03:47:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:47:05' and `end` < '2024-12-17 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-17 03:47:17] Production.INFO: count ==1363 [2024-12-17 03:47:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:47:05 - End Time 2024-12-17 03:47:05 [2024-12-17 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038153', 'tblTempUsageDetail_20' ) start [2024-12-17 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038153', 'tblTempUsageDetail_20' ) end [2024-12-17 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038153', 'tblTempVendorCDR_20' ) start [2024-12-17 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038153', 'tblTempVendorCDR_20' ) end [2024-12-17 03:47:18] Production.INFO: ProcessCDR(1,14038153,1,1,2) [2024-12-17 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038153', 'tblTempUsageDetail_20' ) start [2024-12-17 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038153', 'tblTempUsageDetail_20' ) end [2024-12-17 03:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:47:21] Production.INFO: ==16340== Releasing lock... [2024-12-17 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:47:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:48:05 [end_date_ymd] => 2024-12-17 03:48:05 [RateCDR] => 1 ) [2024-12-17 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:48:05' and `end` < '2024-12-17 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:48:17] Production.INFO: count ==1363 [2024-12-17 03:48:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:48:05 - End Time 2024-12-17 03:48:05 [2024-12-17 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038158', 'tblTempUsageDetail_20' ) start [2024-12-17 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038158', 'tblTempUsageDetail_20' ) end [2024-12-17 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038158', 'tblTempVendorCDR_20' ) start [2024-12-17 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038158', 'tblTempVendorCDR_20' ) end [2024-12-17 03:48:18] Production.INFO: ProcessCDR(1,14038158,1,1,2) [2024-12-17 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038158', 'tblTempUsageDetail_20' ) start [2024-12-17 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038158', 'tblTempUsageDetail_20' ) end [2024-12-17 03:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:48:21] Production.INFO: ==16417== Releasing lock... [2024-12-17 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:48:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:49:05 [end_date_ymd] => 2024-12-17 03:49:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:49:05' and `end` < '2024-12-17 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-17 03:49:18] Production.INFO: count ==1364 [2024-12-17 03:49:19] Production.ERROR: pbx CDR StartTime 2024-12-17 00:49:05 - End Time 2024-12-17 03:49:05 [2024-12-17 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038163', 'tblTempUsageDetail_20' ) start [2024-12-17 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038163', 'tblTempUsageDetail_20' ) end [2024-12-17 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038163', 'tblTempVendorCDR_20' ) start [2024-12-17 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038163', 'tblTempVendorCDR_20' ) end [2024-12-17 03:49:19] Production.INFO: ProcessCDR(1,14038163,1,1,2) [2024-12-17 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038163', 'tblTempUsageDetail_20' ) start [2024-12-17 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038163', 'tblTempUsageDetail_20' ) end [2024-12-17 03:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:49:23] Production.INFO: ==16536== Releasing lock... [2024-12-17 03:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:49:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:50:05 [end_date_ymd] => 2024-12-17 03:50:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:50:05' and `end` < '2024-12-17 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-17 03:50:17] Production.INFO: count ==1360 [2024-12-17 03:50:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:50:05 - End Time 2024-12-17 03:50:05 [2024-12-17 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038169', 'tblTempUsageDetail_20' ) start [2024-12-17 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038169', 'tblTempUsageDetail_20' ) end [2024-12-17 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038169', 'tblTempVendorCDR_20' ) start [2024-12-17 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038169', 'tblTempVendorCDR_20' ) end [2024-12-17 03:50:18] Production.INFO: ProcessCDR(1,14038169,1,1,2) [2024-12-17 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038169', 'tblTempUsageDetail_20' ) start [2024-12-17 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038169', 'tblTempUsageDetail_20' ) end [2024-12-17 03:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:50:21] Production.INFO: ==16613== Releasing lock... [2024-12-17 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:50:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:51:05 [end_date_ymd] => 2024-12-17 03:51:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:51:05' and `end` < '2024-12-17 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-17 03:51:17] Production.INFO: count ==1350 [2024-12-17 03:51:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:51:05 - End Time 2024-12-17 03:51:05 [2024-12-17 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038174', 'tblTempUsageDetail_20' ) start [2024-12-17 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038174', 'tblTempUsageDetail_20' ) end [2024-12-17 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038174', 'tblTempVendorCDR_20' ) start [2024-12-17 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038174', 'tblTempVendorCDR_20' ) end [2024-12-17 03:51:18] Production.INFO: ProcessCDR(1,14038174,1,1,2) [2024-12-17 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038174', 'tblTempUsageDetail_20' ) start [2024-12-17 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038174', 'tblTempUsageDetail_20' ) end [2024-12-17 03:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:51:21] Production.INFO: ==16695== Releasing lock... [2024-12-17 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:51:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:52:04 [end_date_ymd] => 2024-12-17 03:52:04 [RateCDR] => 1 ) [2024-12-17 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-17 00:52:04' and `end` < '2024-12-17 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-17 03:52:17] Production.INFO: count ==1350 [2024-12-17 03:52:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:52:04 - End Time 2024-12-17 03:52:04 [2024-12-17 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038179', 'tblTempUsageDetail_20' ) start [2024-12-17 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038179', 'tblTempUsageDetail_20' ) end [2024-12-17 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038179', 'tblTempVendorCDR_20' ) start [2024-12-17 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038179', 'tblTempVendorCDR_20' ) end [2024-12-17 03:52:18] Production.INFO: ProcessCDR(1,14038179,1,1,2) [2024-12-17 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038179', 'tblTempUsageDetail_20' ) start [2024-12-17 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038179', 'tblTempUsageDetail_20' ) end [2024-12-17 03:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:52:21] Production.INFO: ==16768== Releasing lock... [2024-12-17 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:52:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:53:05 [end_date_ymd] => 2024-12-17 03:53:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:53:05' and `end` < '2024-12-17 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-17 03:53:17] Production.INFO: count ==1350 [2024-12-17 03:53:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:53:05 - End Time 2024-12-17 03:53:05 [2024-12-17 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038184', 'tblTempUsageDetail_20' ) start [2024-12-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038184', 'tblTempUsageDetail_20' ) end [2024-12-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038184', 'tblTempVendorCDR_20' ) start [2024-12-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038184', 'tblTempVendorCDR_20' ) end [2024-12-17 03:53:18] Production.INFO: ProcessCDR(1,14038184,1,1,2) [2024-12-17 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038184', 'tblTempUsageDetail_20' ) start [2024-12-17 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038184', 'tblTempUsageDetail_20' ) end [2024-12-17 03:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:53:21] Production.INFO: ==16845== Releasing lock... [2024-12-17 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:53:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:54:04 [end_date_ymd] => 2024-12-17 03:54:04 [RateCDR] => 1 ) [2024-12-17 03: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 00:54:04' and `end` < '2024-12-17 03: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-17 03:54:16] Production.INFO: count ==1350 [2024-12-17 03:54:17] Production.ERROR: pbx CDR StartTime 2024-12-17 00:54:04 - End Time 2024-12-17 03:54:04 [2024-12-17 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038189', 'tblTempUsageDetail_20' ) start [2024-12-17 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038189', 'tblTempUsageDetail_20' ) end [2024-12-17 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038189', 'tblTempVendorCDR_20' ) start [2024-12-17 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038189', 'tblTempVendorCDR_20' ) end [2024-12-17 03:54:17] Production.INFO: ProcessCDR(1,14038189,1,1,2) [2024-12-17 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038189', 'tblTempUsageDetail_20' ) start [2024-12-17 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038189', 'tblTempUsageDetail_20' ) end [2024-12-17 03:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:54:20] Production.INFO: ==16922== Releasing lock... [2024-12-17 03:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:54:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:55:05 [end_date_ymd] => 2024-12-17 03:55:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:55:05' and `end` < '2024-12-17 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-17 03:55:17] Production.INFO: count ==1347 [2024-12-17 03:55:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:55:05 - End Time 2024-12-17 03:55:05 [2024-12-17 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038194', 'tblTempUsageDetail_20' ) start [2024-12-17 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038194', 'tblTempUsageDetail_20' ) end [2024-12-17 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038194', 'tblTempVendorCDR_20' ) start [2024-12-17 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038194', 'tblTempVendorCDR_20' ) end [2024-12-17 03:55:18] Production.INFO: ProcessCDR(1,14038194,1,1,2) [2024-12-17 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038194', 'tblTempUsageDetail_20' ) start [2024-12-17 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038194', 'tblTempUsageDetail_20' ) end [2024-12-17 03:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:55:21] Production.INFO: ==17000== Releasing lock... [2024-12-17 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:55:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:56:05 [end_date_ymd] => 2024-12-17 03:56:05 [RateCDR] => 1 ) [2024-12-17 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:56:05' and `end` < '2024-12-17 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:56:18] Production.INFO: count ==1347 [2024-12-17 03:56:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:56:05 - End Time 2024-12-17 03:56:05 [2024-12-17 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038199', 'tblTempUsageDetail_20' ) start [2024-12-17 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038199', 'tblTempUsageDetail_20' ) end [2024-12-17 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038199', 'tblTempVendorCDR_20' ) start [2024-12-17 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038199', 'tblTempVendorCDR_20' ) end [2024-12-17 03:56:19] Production.INFO: ProcessCDR(1,14038199,1,1,2) [2024-12-17 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038199', 'tblTempUsageDetail_20' ) start [2024-12-17 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038199', 'tblTempUsageDetail_20' ) end [2024-12-17 03:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:56:22] Production.INFO: ==17073== Releasing lock... [2024-12-17 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:56:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:57:05 [end_date_ymd] => 2024-12-17 03:57:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:57:05' and `end` < '2024-12-17 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-17 03:57:17] Production.INFO: count ==1347 [2024-12-17 03:57:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:57:05 - End Time 2024-12-17 03:57:05 [2024-12-17 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038204', 'tblTempUsageDetail_20' ) start [2024-12-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038204', 'tblTempUsageDetail_20' ) end [2024-12-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038204', 'tblTempVendorCDR_20' ) start [2024-12-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038204', 'tblTempVendorCDR_20' ) end [2024-12-17 03:57:18] Production.INFO: ProcessCDR(1,14038204,1,1,2) [2024-12-17 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038204', 'tblTempUsageDetail_20' ) start [2024-12-17 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038204', 'tblTempUsageDetail_20' ) end [2024-12-17 03:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:57:21] Production.INFO: ==17150== Releasing lock... [2024-12-17 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:57:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:58:05 [end_date_ymd] => 2024-12-17 03:58:05 [RateCDR] => 1 ) [2024-12-17 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-17 00:58:05' and `end` < '2024-12-17 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-17 03:58:17] Production.INFO: count ==1347 [2024-12-17 03:58:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:58:05 - End Time 2024-12-17 03:58:05 [2024-12-17 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038209', 'tblTempUsageDetail_20' ) start [2024-12-17 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038209', 'tblTempUsageDetail_20' ) end [2024-12-17 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038209', 'tblTempVendorCDR_20' ) start [2024-12-17 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038209', 'tblTempVendorCDR_20' ) end [2024-12-17 03:58:18] Production.INFO: ProcessCDR(1,14038209,1,1,2) [2024-12-17 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038209', 'tblTempUsageDetail_20' ) start [2024-12-17 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038209', 'tblTempUsageDetail_20' ) end [2024-12-17 03:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:58:21] Production.INFO: ==17230== Releasing lock... [2024-12-17 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:58:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 00:59:05 [end_date_ymd] => 2024-12-17 03:59:05 [RateCDR] => 1 ) [2024-12-17 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 00:59:05' and `end` < '2024-12-17 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 03:59:17] Production.INFO: count ==1347 [2024-12-17 03:59:18] Production.ERROR: pbx CDR StartTime 2024-12-17 00:59:05 - End Time 2024-12-17 03:59:05 [2024-12-17 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038214', 'tblTempUsageDetail_20' ) start [2024-12-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038214', 'tblTempUsageDetail_20' ) end [2024-12-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038214', 'tblTempVendorCDR_20' ) start [2024-12-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038214', 'tblTempVendorCDR_20' ) end [2024-12-17 03:59:18] Production.INFO: ProcessCDR(1,14038214,1,1,2) [2024-12-17 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038214', 'tblTempUsageDetail_20' ) start [2024-12-17 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038214', 'tblTempUsageDetail_20' ) end [2024-12-17 03:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 03:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 03:59:21] Production.INFO: ==17300== Releasing lock... [2024-12-17 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 03:59:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:00:06 [end_date_ymd] => 2024-12-17 04:00:06 [RateCDR] => 1 ) [2024-12-17 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-17 01:00:06' and `end` < '2024-12-17 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-17 04:00:19] Production.INFO: count ==1313 [2024-12-17 04:00:19] Production.ERROR: pbx CDR StartTime 2024-12-17 01:00:06 - End Time 2024-12-17 04:00:06 [2024-12-17 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038220', 'tblTempUsageDetail_20' ) start [2024-12-17 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038220', 'tblTempUsageDetail_20' ) end [2024-12-17 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038220', 'tblTempVendorCDR_20' ) start [2024-12-17 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038220', 'tblTempVendorCDR_20' ) end [2024-12-17 04:00:19] Production.INFO: ProcessCDR(1,14038220,1,1,2) [2024-12-17 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038220', 'tblTempUsageDetail_20' ) start [2024-12-17 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038220', 'tblTempUsageDetail_20' ) end [2024-12-17 04:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:00:22] Production.INFO: ==17382== Releasing lock... [2024-12-17 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:00:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-17 04:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:01:04 [end_date_ymd] => 2024-12-17 04:01:04 [RateCDR] => 1 ) [2024-12-17 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-17 01:01:04' and `end` < '2024-12-17 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-17 04:01:17] Production.INFO: count ==1229 [2024-12-17 04:01:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:01:04 - End Time 2024-12-17 04:01:04 [2024-12-17 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038226', 'tblTempUsageDetail_20' ) start [2024-12-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038226', 'tblTempUsageDetail_20' ) end [2024-12-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038226', 'tblTempVendorCDR_20' ) start [2024-12-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038226', 'tblTempVendorCDR_20' ) end [2024-12-17 04:01:18] Production.INFO: ProcessCDR(1,14038226,1,1,2) [2024-12-17 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038226', 'tblTempUsageDetail_20' ) start [2024-12-17 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038226', 'tblTempUsageDetail_20' ) end [2024-12-17 04:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:01:21] Production.INFO: ==17469== Releasing lock... [2024-12-17 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:01:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-17 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:02:05 [end_date_ymd] => 2024-12-17 04:02:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:02:05' and `end` < '2024-12-17 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-17 04:02:18] Production.INFO: count ==1146 [2024-12-17 04:02:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:02:05 - End Time 2024-12-17 04:02:05 [2024-12-17 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038231', 'tblTempUsageDetail_20' ) start [2024-12-17 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038231', 'tblTempUsageDetail_20' ) end [2024-12-17 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038231', 'tblTempVendorCDR_20' ) start [2024-12-17 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038231', 'tblTempVendorCDR_20' ) end [2024-12-17 04:02:18] Production.INFO: ProcessCDR(1,14038231,1,1,2) [2024-12-17 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038231', 'tblTempUsageDetail_20' ) start [2024-12-17 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038231', 'tblTempUsageDetail_20' ) end [2024-12-17 04:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:02:21] Production.INFO: ==17547== Releasing lock... [2024-12-17 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:02:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-17 04:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:03:04 [end_date_ymd] => 2024-12-17 04:03:04 [RateCDR] => 1 ) [2024-12-17 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-17 01:03:04' and `end` < '2024-12-17 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-17 04:03:17] Production.INFO: count ==1070 [2024-12-17 04:03:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:03:04 - End Time 2024-12-17 04:03:04 [2024-12-17 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038236', 'tblTempUsageDetail_20' ) start [2024-12-17 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038236', 'tblTempUsageDetail_20' ) end [2024-12-17 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038236', 'tblTempVendorCDR_20' ) start [2024-12-17 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038236', 'tblTempVendorCDR_20' ) end [2024-12-17 04:03:17] Production.INFO: ProcessCDR(1,14038236,1,1,2) [2024-12-17 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038236', 'tblTempUsageDetail_20' ) start [2024-12-17 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038236', 'tblTempUsageDetail_20' ) end [2024-12-17 04:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:03:20] Production.INFO: ==17620== Releasing lock... [2024-12-17 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:03:20] Production.INFO: 37 MB #Memory Used# [2024-12-17 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:04:05 [end_date_ymd] => 2024-12-17 04:04:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:04:05' and `end` < '2024-12-17 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-17 04:04:18] Production.INFO: count ==989 [2024-12-17 04:04:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:04:05 - End Time 2024-12-17 04:04:05 [2024-12-17 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038241', 'tblTempUsageDetail_20' ) start [2024-12-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038241', 'tblTempUsageDetail_20' ) end [2024-12-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038241', 'tblTempVendorCDR_20' ) start [2024-12-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038241', 'tblTempVendorCDR_20' ) end [2024-12-17 04:04:18] Production.INFO: ProcessCDR(1,14038241,1,1,2) [2024-12-17 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038241', 'tblTempUsageDetail_20' ) start [2024-12-17 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038241', 'tblTempUsageDetail_20' ) end [2024-12-17 04:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:04:21] Production.INFO: ==17693== Releasing lock... [2024-12-17 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:04:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-17 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:05:05 [end_date_ymd] => 2024-12-17 04:05:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:05:05' and `end` < '2024-12-17 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-17 04:05:17] Production.INFO: count ==909 [2024-12-17 04:05:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:05:05 - End Time 2024-12-17 04:05:05 [2024-12-17 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038245', 'tblTempUsageDetail_20' ) start [2024-12-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038245', 'tblTempUsageDetail_20' ) end [2024-12-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038245', 'tblTempVendorCDR_20' ) start [2024-12-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038245', 'tblTempVendorCDR_20' ) end [2024-12-17 04:05:18] Production.INFO: ProcessCDR(1,14038245,1,1,2) [2024-12-17 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038245', 'tblTempUsageDetail_20' ) start [2024-12-17 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038245', 'tblTempUsageDetail_20' ) end [2024-12-17 04:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:05:21] Production.INFO: ==17804== Releasing lock... [2024-12-17 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:05:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-17 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:06:05 [end_date_ymd] => 2024-12-17 04:06:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:06:05' and `end` < '2024-12-17 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-17 04:06:17] Production.INFO: count ==830 [2024-12-17 04:06:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:06:05 - End Time 2024-12-17 04:06:05 [2024-12-17 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038251', 'tblTempUsageDetail_20' ) start [2024-12-17 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038251', 'tblTempUsageDetail_20' ) end [2024-12-17 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038251', 'tblTempVendorCDR_20' ) start [2024-12-17 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038251', 'tblTempVendorCDR_20' ) end [2024-12-17 04:06:17] Production.INFO: ProcessCDR(1,14038251,1,1,2) [2024-12-17 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038251', 'tblTempUsageDetail_20' ) start [2024-12-17 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038251', 'tblTempUsageDetail_20' ) end [2024-12-17 04:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:06:20] Production.INFO: ==17877== Releasing lock... [2024-12-17 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:06:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-17 04:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:07:04 [end_date_ymd] => 2024-12-17 04:07:04 [RateCDR] => 1 ) [2024-12-17 04: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-17 01:07:04' and `end` < '2024-12-17 04: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-17 04:07:16] Production.INFO: count ==754 [2024-12-17 04:07:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:07:04 - End Time 2024-12-17 04:07:04 [2024-12-17 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038256', 'tblTempUsageDetail_20' ) start [2024-12-17 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038256', 'tblTempUsageDetail_20' ) end [2024-12-17 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038256', 'tblTempVendorCDR_20' ) start [2024-12-17 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038256', 'tblTempVendorCDR_20' ) end [2024-12-17 04:07:17] Production.INFO: ProcessCDR(1,14038256,1,1,2) [2024-12-17 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038256', 'tblTempUsageDetail_20' ) start [2024-12-17 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038256', 'tblTempUsageDetail_20' ) end [2024-12-17 04:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:07:20] Production.INFO: ==17949== Releasing lock... [2024-12-17 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:07:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-17 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:08:05 [end_date_ymd] => 2024-12-17 04:08:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:08:05' and `end` < '2024-12-17 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 04:08:17] Production.INFO: count ==674 [2024-12-17 04:08:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:08:05 - End Time 2024-12-17 04:08:05 [2024-12-17 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038261', 'tblTempUsageDetail_20' ) start [2024-12-17 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038261', 'tblTempUsageDetail_20' ) end [2024-12-17 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038261', 'tblTempVendorCDR_20' ) start [2024-12-17 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038261', 'tblTempVendorCDR_20' ) end [2024-12-17 04:08:17] Production.INFO: ProcessCDR(1,14038261,1,1,2) [2024-12-17 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038261', 'tblTempUsageDetail_20' ) start [2024-12-17 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038261', 'tblTempUsageDetail_20' ) end [2024-12-17 04:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:08:20] Production.INFO: ==18023== Releasing lock... [2024-12-17 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:08:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:09:05 [end_date_ymd] => 2024-12-17 04:09:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:09:05' and `end` < '2024-12-17 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-17 04:09:17] Production.INFO: count ==598 [2024-12-17 04:09:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:09:05 - End Time 2024-12-17 04:09:05 [2024-12-17 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038266', 'tblTempUsageDetail_20' ) start [2024-12-17 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038266', 'tblTempUsageDetail_20' ) end [2024-12-17 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038266', 'tblTempVendorCDR_20' ) start [2024-12-17 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038266', 'tblTempVendorCDR_20' ) end [2024-12-17 04:09:17] Production.INFO: ProcessCDR(1,14038266,1,1,2) [2024-12-17 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038266', 'tblTempUsageDetail_20' ) start [2024-12-17 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038266', 'tblTempUsageDetail_20' ) end [2024-12-17 04:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:09:20] Production.INFO: ==18096== Releasing lock... [2024-12-17 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:09:20] Production.INFO: 33 MB #Memory Used# [2024-12-17 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:10:05 [end_date_ymd] => 2024-12-17 04:10:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:10:05' and `end` < '2024-12-17 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-17 04:10:18] Production.INFO: count ==514 [2024-12-17 04:10:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:10:05 - End Time 2024-12-17 04:10:05 [2024-12-17 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038272', 'tblTempUsageDetail_20' ) start [2024-12-17 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038272', 'tblTempUsageDetail_20' ) end [2024-12-17 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038272', 'tblTempVendorCDR_20' ) start [2024-12-17 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038272', 'tblTempVendorCDR_20' ) end [2024-12-17 04:10:18] Production.INFO: ProcessCDR(1,14038272,1,1,2) [2024-12-17 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038272', 'tblTempUsageDetail_20' ) start [2024-12-17 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038272', 'tblTempUsageDetail_20' ) end [2024-12-17 04:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:10:21] Production.INFO: ==18169== Releasing lock... [2024-12-17 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:10:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-17 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:11:05 [end_date_ymd] => 2024-12-17 04:11:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:11:05' and `end` < '2024-12-17 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-17 04:11:17] Production.INFO: count ==430 [2024-12-17 04:11:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:11:05 - End Time 2024-12-17 04:11:05 [2024-12-17 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038277', 'tblTempUsageDetail_20' ) start [2024-12-17 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038277', 'tblTempUsageDetail_20' ) end [2024-12-17 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038277', 'tblTempVendorCDR_20' ) start [2024-12-17 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038277', 'tblTempVendorCDR_20' ) end [2024-12-17 04:11:18] Production.INFO: ProcessCDR(1,14038277,1,1,2) [2024-12-17 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038277', 'tblTempUsageDetail_20' ) start [2024-12-17 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038277', 'tblTempUsageDetail_20' ) end [2024-12-17 04:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:11:21] Production.INFO: ==18241== Releasing lock... [2024-12-17 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:11:21] Production.INFO: 32 MB #Memory Used# [2024-12-17 04:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:12:04 [end_date_ymd] => 2024-12-17 04:12:04 [RateCDR] => 1 ) [2024-12-17 04: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-17 01:12:04' and `end` < '2024-12-17 04: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-17 04:12:16] Production.INFO: count ==354 [2024-12-17 04:12:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:12:04 - End Time 2024-12-17 04:12:04 [2024-12-17 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038282', 'tblTempUsageDetail_20' ) start [2024-12-17 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038282', 'tblTempUsageDetail_20' ) end [2024-12-17 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038282', 'tblTempVendorCDR_20' ) start [2024-12-17 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038282', 'tblTempVendorCDR_20' ) end [2024-12-17 04:12:17] Production.INFO: ProcessCDR(1,14038282,1,1,2) [2024-12-17 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038282', 'tblTempUsageDetail_20' ) start [2024-12-17 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038282', 'tblTempUsageDetail_20' ) end [2024-12-17 04:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:12:20] Production.INFO: ==18314== Releasing lock... [2024-12-17 04:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:12:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-17 04:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:13:04 [end_date_ymd] => 2024-12-17 04:13:04 [RateCDR] => 1 ) [2024-12-17 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-17 01:13:04' and `end` < '2024-12-17 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-17 04:13:16] Production.INFO: count ==276 [2024-12-17 04:13:16] Production.ERROR: pbx CDR StartTime 2024-12-17 01:13:04 - End Time 2024-12-17 04:13:04 [2024-12-17 04:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038287', 'tblTempUsageDetail_20' ) start [2024-12-17 04:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038287', 'tblTempUsageDetail_20' ) end [2024-12-17 04:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038287', 'tblTempVendorCDR_20' ) start [2024-12-17 04:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038287', 'tblTempVendorCDR_20' ) end [2024-12-17 04:13:16] Production.INFO: ProcessCDR(1,14038287,1,1,2) [2024-12-17 04:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038287', 'tblTempUsageDetail_20' ) start [2024-12-17 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038287', 'tblTempUsageDetail_20' ) end [2024-12-17 04:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:13:20] Production.INFO: ==18384== Releasing lock... [2024-12-17 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:13:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:14:05 [end_date_ymd] => 2024-12-17 04:14:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:14:05' and `end` < '2024-12-17 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-17 04:14:18] Production.INFO: count ==194 [2024-12-17 04:14:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:14:05 - End Time 2024-12-17 04:14:05 [2024-12-17 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038292', 'tblTempUsageDetail_20' ) start [2024-12-17 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038292', 'tblTempUsageDetail_20' ) end [2024-12-17 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038292', 'tblTempVendorCDR_20' ) start [2024-12-17 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038292', 'tblTempVendorCDR_20' ) end [2024-12-17 04:14:18] Production.INFO: ProcessCDR(1,14038292,1,1,2) [2024-12-17 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038292', 'tblTempUsageDetail_20' ) start [2024-12-17 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038292', 'tblTempUsageDetail_20' ) end [2024-12-17 04:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:14:21] Production.INFO: ==18455== Releasing lock... [2024-12-17 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:14:21] Production.INFO: 29 MB #Memory Used# [2024-12-17 04:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:15:04 [end_date_ymd] => 2024-12-17 04:15:04 [RateCDR] => 1 ) [2024-12-17 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-17 01:15:04' and `end` < '2024-12-17 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-17 04:15:16] Production.INFO: count ==144 [2024-12-17 04:15:16] Production.ERROR: pbx CDR StartTime 2024-12-17 01:15:04 - End Time 2024-12-17 04:15:04 [2024-12-17 04:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038297', 'tblTempUsageDetail_20' ) start [2024-12-17 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038297', 'tblTempUsageDetail_20' ) end [2024-12-17 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038297', 'tblTempVendorCDR_20' ) start [2024-12-17 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038297', 'tblTempVendorCDR_20' ) end [2024-12-17 04:15:16] Production.INFO: ProcessCDR(1,14038297,1,1,2) [2024-12-17 04:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038297', 'tblTempUsageDetail_20' ) start [2024-12-17 04:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038297', 'tblTempUsageDetail_20' ) end [2024-12-17 04:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:15:19] Production.INFO: ==18525== Releasing lock... [2024-12-17 04:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:15:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:16:05 [end_date_ymd] => 2024-12-17 04:16:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:16:05' and `end` < '2024-12-17 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-17 04:16:17] Production.INFO: count ==144 [2024-12-17 04:16:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:16:05 - End Time 2024-12-17 04:16:05 [2024-12-17 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038302', 'tblTempUsageDetail_20' ) start [2024-12-17 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038302', 'tblTempUsageDetail_20' ) end [2024-12-17 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038302', 'tblTempVendorCDR_20' ) start [2024-12-17 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038302', 'tblTempVendorCDR_20' ) end [2024-12-17 04:16:17] Production.INFO: ProcessCDR(1,14038302,1,1,2) [2024-12-17 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038302', 'tblTempUsageDetail_20' ) start [2024-12-17 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038302', 'tblTempUsageDetail_20' ) end [2024-12-17 04:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:16:20] Production.INFO: ==18597== Releasing lock... [2024-12-17 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:16:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:17:04 [end_date_ymd] => 2024-12-17 04:17:04 [RateCDR] => 1 ) [2024-12-17 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-17 01:17:04' and `end` < '2024-12-17 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-17 04:17:17] Production.INFO: count ==144 [2024-12-17 04:17:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:17:04 - End Time 2024-12-17 04:17:04 [2024-12-17 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038307', 'tblTempUsageDetail_20' ) start [2024-12-17 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038307', 'tblTempUsageDetail_20' ) end [2024-12-17 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038307', 'tblTempVendorCDR_20' ) start [2024-12-17 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038307', 'tblTempVendorCDR_20' ) end [2024-12-17 04:17:17] Production.INFO: ProcessCDR(1,14038307,1,1,2) [2024-12-17 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038307', 'tblTempUsageDetail_20' ) start [2024-12-17 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038307', 'tblTempUsageDetail_20' ) end [2024-12-17 04:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:17:20] Production.INFO: ==18684== Releasing lock... [2024-12-17 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:17:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:18:04 [end_date_ymd] => 2024-12-17 04:18:04 [RateCDR] => 1 ) [2024-12-17 04: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 01:18:04' and `end` < '2024-12-17 04: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-17 04:18:16] Production.INFO: count ==144 [2024-12-17 04:18:16] Production.ERROR: pbx CDR StartTime 2024-12-17 01:18:04 - End Time 2024-12-17 04:18:04 [2024-12-17 04:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038312', 'tblTempUsageDetail_20' ) start [2024-12-17 04:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038312', 'tblTempUsageDetail_20' ) end [2024-12-17 04:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038312', 'tblTempVendorCDR_20' ) start [2024-12-17 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038312', 'tblTempVendorCDR_20' ) end [2024-12-17 04:18:17] Production.INFO: ProcessCDR(1,14038312,1,1,2) [2024-12-17 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:18:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038312', 'tblTempUsageDetail_20' ) start [2024-12-17 04:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038312', 'tblTempUsageDetail_20' ) end [2024-12-17 04:18:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:18:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:18:20] Production.INFO: ==18755== Releasing lock... [2024-12-17 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:18:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:19:05 [end_date_ymd] => 2024-12-17 04:19:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:19:05' and `end` < '2024-12-17 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-17 04:19:18] Production.INFO: count ==144 [2024-12-17 04:19:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:19:05 - End Time 2024-12-17 04:19:05 [2024-12-17 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038317', 'tblTempUsageDetail_20' ) start [2024-12-17 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038317', 'tblTempUsageDetail_20' ) end [2024-12-17 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038317', 'tblTempVendorCDR_20' ) start [2024-12-17 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038317', 'tblTempVendorCDR_20' ) end [2024-12-17 04:19:18] Production.INFO: ProcessCDR(1,14038317,1,1,2) [2024-12-17 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038317', 'tblTempUsageDetail_20' ) start [2024-12-17 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038317', 'tblTempUsageDetail_20' ) end [2024-12-17 04:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:19:21] Production.INFO: ==18829== Releasing lock... [2024-12-17 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:19:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:20:05 [end_date_ymd] => 2024-12-17 04:20:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:20:05' and `end` < '2024-12-17 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-17 04:20:17] Production.INFO: count ==142 [2024-12-17 04:20:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:20:05 - End Time 2024-12-17 04:20:05 [2024-12-17 04:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038322', 'tblTempUsageDetail_20' ) start [2024-12-17 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038322', 'tblTempUsageDetail_20' ) end [2024-12-17 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038322', 'tblTempVendorCDR_20' ) start [2024-12-17 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038322', 'tblTempVendorCDR_20' ) end [2024-12-17 04:20:17] Production.INFO: ProcessCDR(1,14038322,1,1,2) [2024-12-17 04:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038322', 'tblTempUsageDetail_20' ) start [2024-12-17 04:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038322', 'tblTempUsageDetail_20' ) end [2024-12-17 04:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:20:20] Production.INFO: ==18903== Releasing lock... [2024-12-17 04:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:20:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:21:04 [end_date_ymd] => 2024-12-17 04:21:04 [RateCDR] => 1 ) [2024-12-17 04: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-17 01:21:04' and `end` < '2024-12-17 04: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-17 04:21:17] Production.INFO: count ==142 [2024-12-17 04:21:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:21:04 - End Time 2024-12-17 04:21:04 [2024-12-17 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038328', 'tblTempUsageDetail_20' ) start [2024-12-17 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038328', 'tblTempUsageDetail_20' ) end [2024-12-17 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038328', 'tblTempVendorCDR_20' ) start [2024-12-17 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038328', 'tblTempVendorCDR_20' ) end [2024-12-17 04:21:17] Production.INFO: ProcessCDR(1,14038328,1,1,2) [2024-12-17 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038328', 'tblTempUsageDetail_20' ) start [2024-12-17 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038328', 'tblTempUsageDetail_20' ) end [2024-12-17 04:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:21:20] Production.INFO: ==19014== Releasing lock... [2024-12-17 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:21:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:22:04 [end_date_ymd] => 2024-12-17 04:22:04 [RateCDR] => 1 ) [2024-12-17 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-17 01:22:04' and `end` < '2024-12-17 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-17 04:22:16] Production.INFO: count ==142 [2024-12-17 04:22:16] Production.ERROR: pbx CDR StartTime 2024-12-17 01:22:04 - End Time 2024-12-17 04:22:04 [2024-12-17 04:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038333', 'tblTempUsageDetail_20' ) start [2024-12-17 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038333', 'tblTempUsageDetail_20' ) end [2024-12-17 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038333', 'tblTempVendorCDR_20' ) start [2024-12-17 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038333', 'tblTempVendorCDR_20' ) end [2024-12-17 04:22:16] Production.INFO: ProcessCDR(1,14038333,1,1,2) [2024-12-17 04:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:22:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:22:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:22:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038333', 'tblTempUsageDetail_20' ) start [2024-12-17 04:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038333', 'tblTempUsageDetail_20' ) end [2024-12-17 04:22:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:22:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:22:19] Production.INFO: ==19086== Releasing lock... [2024-12-17 04:22:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:22:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:23:05 [end_date_ymd] => 2024-12-17 04:23:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:23:05' and `end` < '2024-12-17 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-17 04:23:17] Production.INFO: count ==142 [2024-12-17 04:23:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:23:05 - End Time 2024-12-17 04:23:05 [2024-12-17 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038338', 'tblTempUsageDetail_20' ) start [2024-12-17 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038338', 'tblTempUsageDetail_20' ) end [2024-12-17 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038338', 'tblTempVendorCDR_20' ) start [2024-12-17 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038338', 'tblTempVendorCDR_20' ) end [2024-12-17 04:23:17] Production.INFO: ProcessCDR(1,14038338,1,1,2) [2024-12-17 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038338', 'tblTempUsageDetail_20' ) start [2024-12-17 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038338', 'tblTempUsageDetail_20' ) end [2024-12-17 04:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:23:21] Production.INFO: ==19157== Releasing lock... [2024-12-17 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:23:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:24:05 [end_date_ymd] => 2024-12-17 04:24:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:24:05' and `end` < '2024-12-17 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-17 04:24:18] Production.INFO: count ==142 [2024-12-17 04:24:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:24:05 - End Time 2024-12-17 04:24:05 [2024-12-17 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038343', 'tblTempUsageDetail_20' ) start [2024-12-17 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038343', 'tblTempUsageDetail_20' ) end [2024-12-17 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038343', 'tblTempVendorCDR_20' ) start [2024-12-17 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038343', 'tblTempVendorCDR_20' ) end [2024-12-17 04:24:18] Production.INFO: ProcessCDR(1,14038343,1,1,2) [2024-12-17 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038343', 'tblTempUsageDetail_20' ) start [2024-12-17 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038343', 'tblTempUsageDetail_20' ) end [2024-12-17 04:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:24:21] Production.INFO: ==19227== Releasing lock... [2024-12-17 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:24:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:25:05 [end_date_ymd] => 2024-12-17 04:25:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:25:05' and `end` < '2024-12-17 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-17 04:25:17] Production.INFO: count ==142 [2024-12-17 04:25:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:25:05 - End Time 2024-12-17 04:25:05 [2024-12-17 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038348', 'tblTempUsageDetail_20' ) start [2024-12-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038348', 'tblTempUsageDetail_20' ) end [2024-12-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038348', 'tblTempVendorCDR_20' ) start [2024-12-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038348', 'tblTempVendorCDR_20' ) end [2024-12-17 04:25:17] Production.INFO: ProcessCDR(1,14038348,1,1,2) [2024-12-17 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038348', 'tblTempUsageDetail_20' ) start [2024-12-17 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038348', 'tblTempUsageDetail_20' ) end [2024-12-17 04:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:25:20] Production.INFO: ==19297== Releasing lock... [2024-12-17 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:25:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:26:05 [end_date_ymd] => 2024-12-17 04:26:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:26:05' and `end` < '2024-12-17 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-17 04:26:17] Production.INFO: count ==142 [2024-12-17 04:26:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:26:05 - End Time 2024-12-17 04:26:05 [2024-12-17 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038353', 'tblTempUsageDetail_20' ) start [2024-12-17 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038353', 'tblTempUsageDetail_20' ) end [2024-12-17 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038353', 'tblTempVendorCDR_20' ) start [2024-12-17 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038353', 'tblTempVendorCDR_20' ) end [2024-12-17 04:26:17] Production.INFO: ProcessCDR(1,14038353,1,1,2) [2024-12-17 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038353', 'tblTempUsageDetail_20' ) start [2024-12-17 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038353', 'tblTempUsageDetail_20' ) end [2024-12-17 04:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:26:20] Production.INFO: ==19367== Releasing lock... [2024-12-17 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:26:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:27:04 [end_date_ymd] => 2024-12-17 04:27:04 [RateCDR] => 1 ) [2024-12-17 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-17 01:27:04' and `end` < '2024-12-17 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-17 04:27:17] Production.INFO: count ==142 [2024-12-17 04:27:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:27:04 - End Time 2024-12-17 04:27:04 [2024-12-17 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038358', 'tblTempUsageDetail_20' ) start [2024-12-17 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038358', 'tblTempUsageDetail_20' ) end [2024-12-17 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038358', 'tblTempVendorCDR_20' ) start [2024-12-17 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038358', 'tblTempVendorCDR_20' ) end [2024-12-17 04:27:17] Production.INFO: ProcessCDR(1,14038358,1,1,2) [2024-12-17 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038358', 'tblTempUsageDetail_20' ) start [2024-12-17 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038358', 'tblTempUsageDetail_20' ) end [2024-12-17 04:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:27:20] Production.INFO: ==19439== Releasing lock... [2024-12-17 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:27:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:28:05 [end_date_ymd] => 2024-12-17 04:28:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:28:05' and `end` < '2024-12-17 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-17 04:28:18] Production.INFO: count ==140 [2024-12-17 04:28:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:28:05 - End Time 2024-12-17 04:28:05 [2024-12-17 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038363', 'tblTempUsageDetail_20' ) start [2024-12-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038363', 'tblTempUsageDetail_20' ) end [2024-12-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038363', 'tblTempVendorCDR_20' ) start [2024-12-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038363', 'tblTempVendorCDR_20' ) end [2024-12-17 04:28:18] Production.INFO: ProcessCDR(1,14038363,1,1,2) [2024-12-17 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038363', 'tblTempUsageDetail_20' ) start [2024-12-17 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038363', 'tblTempUsageDetail_20' ) end [2024-12-17 04:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:28:21] Production.INFO: ==19508== Releasing lock... [2024-12-17 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:28:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:29:04 [end_date_ymd] => 2024-12-17 04:29:04 [RateCDR] => 1 ) [2024-12-17 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-17 01:29:04' and `end` < '2024-12-17 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-17 04:29:16] Production.INFO: count ==139 [2024-12-17 04:29:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:29:04 - End Time 2024-12-17 04:29:04 [2024-12-17 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038368', 'tblTempUsageDetail_20' ) start [2024-12-17 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038368', 'tblTempUsageDetail_20' ) end [2024-12-17 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038368', 'tblTempVendorCDR_20' ) start [2024-12-17 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038368', 'tblTempVendorCDR_20' ) end [2024-12-17 04:29:17] Production.INFO: ProcessCDR(1,14038368,1,1,2) [2024-12-17 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038368', 'tblTempUsageDetail_20' ) start [2024-12-17 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038368', 'tblTempUsageDetail_20' ) end [2024-12-17 04:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:29:20] Production.INFO: ==19579== Releasing lock... [2024-12-17 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:29:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:30:06 [end_date_ymd] => 2024-12-17 04:30:06 [RateCDR] => 1 ) [2024-12-17 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-17 01:30:06' and `end` < '2024-12-17 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-17 04:30:18] Production.INFO: count ==135 [2024-12-17 04:30:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:30:06 - End Time 2024-12-17 04:30:06 [2024-12-17 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038375', 'tblTempUsageDetail_20' ) start [2024-12-17 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038375', 'tblTempUsageDetail_20' ) end [2024-12-17 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038375', 'tblTempVendorCDR_20' ) start [2024-12-17 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038375', 'tblTempVendorCDR_20' ) end [2024-12-17 04:30:18] Production.INFO: ProcessCDR(1,14038375,1,1,2) [2024-12-17 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038375', 'tblTempUsageDetail_20' ) start [2024-12-17 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038375', 'tblTempUsageDetail_20' ) end [2024-12-17 04:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:30:21] Production.INFO: ==19658== Releasing lock... [2024-12-17 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:30:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 04:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:31:04 [end_date_ymd] => 2024-12-17 04:31:04 [RateCDR] => 1 ) [2024-12-17 04:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 01:31:04' and `end` < '2024-12-17 04:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 04:31:16] Production.INFO: count ==124 [2024-12-17 04:31:16] Production.ERROR: pbx CDR StartTime 2024-12-17 01:31:04 - End Time 2024-12-17 04:31:04 [2024-12-17 04:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038380', 'tblTempUsageDetail_20' ) start [2024-12-17 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038380', 'tblTempUsageDetail_20' ) end [2024-12-17 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038380', 'tblTempVendorCDR_20' ) start [2024-12-17 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038380', 'tblTempVendorCDR_20' ) end [2024-12-17 04:31:16] Production.INFO: ProcessCDR(1,14038380,1,1,2) [2024-12-17 04:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:31:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038380', 'tblTempUsageDetail_20' ) start [2024-12-17 04:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038380', 'tblTempUsageDetail_20' ) end [2024-12-17 04:31:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:31:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:31:19] Production.INFO: ==19763== Releasing lock... [2024-12-17 04:31:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:31:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:32:05 [end_date_ymd] => 2024-12-17 04:32:05 [RateCDR] => 1 ) [2024-12-17 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 01:32:05' and `end` < '2024-12-17 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 04:32:17] Production.INFO: count ==124 [2024-12-17 04:32:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:32:05 - End Time 2024-12-17 04:32:05 [2024-12-17 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038385', 'tblTempUsageDetail_20' ) start [2024-12-17 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038385', 'tblTempUsageDetail_20' ) end [2024-12-17 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038385', 'tblTempVendorCDR_20' ) start [2024-12-17 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038385', 'tblTempVendorCDR_20' ) end [2024-12-17 04:32:17] Production.INFO: ProcessCDR(1,14038385,1,1,2) [2024-12-17 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038385', 'tblTempUsageDetail_20' ) start [2024-12-17 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038385', 'tblTempUsageDetail_20' ) end [2024-12-17 04:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:32:20] Production.INFO: ==19839== Releasing lock... [2024-12-17 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:32:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:33:05 [end_date_ymd] => 2024-12-17 04:33:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:33:05' and `end` < '2024-12-17 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-17 04:33:18] Production.INFO: count ==123 [2024-12-17 04:33:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:33:05 - End Time 2024-12-17 04:33:05 [2024-12-17 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038390', 'tblTempUsageDetail_20' ) start [2024-12-17 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038390', 'tblTempUsageDetail_20' ) end [2024-12-17 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038390', 'tblTempVendorCDR_20' ) start [2024-12-17 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038390', 'tblTempVendorCDR_20' ) end [2024-12-17 04:33:18] Production.INFO: ProcessCDR(1,14038390,1,1,2) [2024-12-17 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038390', 'tblTempUsageDetail_20' ) start [2024-12-17 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038390', 'tblTempUsageDetail_20' ) end [2024-12-17 04:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:33:21] Production.INFO: ==19914== Releasing lock... [2024-12-17 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:33:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:34:04 [end_date_ymd] => 2024-12-17 04:34:04 [RateCDR] => 1 ) [2024-12-17 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-17 01:34:04' and `end` < '2024-12-17 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-17 04:34:17] Production.INFO: count ==123 [2024-12-17 04:34:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:34:04 - End Time 2024-12-17 04:34:04 [2024-12-17 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038395', 'tblTempUsageDetail_20' ) start [2024-12-17 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038395', 'tblTempUsageDetail_20' ) end [2024-12-17 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038395', 'tblTempVendorCDR_20' ) start [2024-12-17 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038395', 'tblTempVendorCDR_20' ) end [2024-12-17 04:34:17] Production.INFO: ProcessCDR(1,14038395,1,1,2) [2024-12-17 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038395', 'tblTempUsageDetail_20' ) start [2024-12-17 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038395', 'tblTempUsageDetail_20' ) end [2024-12-17 04:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:34:20] Production.INFO: ==19983== Releasing lock... [2024-12-17 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:34:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:35:05 [end_date_ymd] => 2024-12-17 04:35:05 [RateCDR] => 1 ) [2024-12-17 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 01:35:05' and `end` < '2024-12-17 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 04:35:17] Production.INFO: count ==123 [2024-12-17 04:35:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:35:05 - End Time 2024-12-17 04:35:05 [2024-12-17 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038400', 'tblTempUsageDetail_20' ) start [2024-12-17 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038400', 'tblTempUsageDetail_20' ) end [2024-12-17 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038400', 'tblTempVendorCDR_20' ) start [2024-12-17 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038400', 'tblTempVendorCDR_20' ) end [2024-12-17 04:35:17] Production.INFO: ProcessCDR(1,14038400,1,1,2) [2024-12-17 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038400', 'tblTempUsageDetail_20' ) start [2024-12-17 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038400', 'tblTempUsageDetail_20' ) end [2024-12-17 04:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:35:20] Production.INFO: ==20057== Releasing lock... [2024-12-17 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:35:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:36:04 [end_date_ymd] => 2024-12-17 04:36:04 [RateCDR] => 1 ) [2024-12-17 04: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-17 01:36:04' and `end` < '2024-12-17 04: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-17 04:36:17] Production.INFO: count ==122 [2024-12-17 04:36:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:36:04 - End Time 2024-12-17 04:36:04 [2024-12-17 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038405', 'tblTempUsageDetail_20' ) start [2024-12-17 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038405', 'tblTempUsageDetail_20' ) end [2024-12-17 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038405', 'tblTempVendorCDR_20' ) start [2024-12-17 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038405', 'tblTempVendorCDR_20' ) end [2024-12-17 04:36:17] Production.INFO: ProcessCDR(1,14038405,1,1,2) [2024-12-17 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038405', 'tblTempUsageDetail_20' ) start [2024-12-17 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038405', 'tblTempUsageDetail_20' ) end [2024-12-17 04:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:36:20] Production.INFO: ==20174== Releasing lock... [2024-12-17 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:36:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:37:05 [end_date_ymd] => 2024-12-17 04:37:05 [RateCDR] => 1 ) [2024-12-17 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 01:37:05' and `end` < '2024-12-17 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 04:37:16] Production.INFO: count ==122 [2024-12-17 04:37:16] Production.ERROR: pbx CDR StartTime 2024-12-17 01:37:05 - End Time 2024-12-17 04:37:05 [2024-12-17 04:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038410', 'tblTempUsageDetail_20' ) start [2024-12-17 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038410', 'tblTempUsageDetail_20' ) end [2024-12-17 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038410', 'tblTempVendorCDR_20' ) start [2024-12-17 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038410', 'tblTempVendorCDR_20' ) end [2024-12-17 04:37:17] Production.INFO: ProcessCDR(1,14038410,1,1,2) [2024-12-17 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038410', 'tblTempUsageDetail_20' ) start [2024-12-17 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038410', 'tblTempUsageDetail_20' ) end [2024-12-17 04:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:37:20] Production.INFO: ==20249== Releasing lock... [2024-12-17 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:37:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:38:05 [end_date_ymd] => 2024-12-17 04:38:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:38:05' and `end` < '2024-12-17 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-17 04:38:18] Production.INFO: count ==122 [2024-12-17 04:38:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:38:05 - End Time 2024-12-17 04:38:05 [2024-12-17 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038415', 'tblTempUsageDetail_20' ) start [2024-12-17 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038415', 'tblTempUsageDetail_20' ) end [2024-12-17 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038415', 'tblTempVendorCDR_20' ) start [2024-12-17 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038415', 'tblTempVendorCDR_20' ) end [2024-12-17 04:38:18] Production.INFO: ProcessCDR(1,14038415,1,1,2) [2024-12-17 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038415', 'tblTempUsageDetail_20' ) start [2024-12-17 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038415', 'tblTempUsageDetail_20' ) end [2024-12-17 04:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:38:21] Production.INFO: ==20321== Releasing lock... [2024-12-17 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:38:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:39:04 [end_date_ymd] => 2024-12-17 04:39:04 [RateCDR] => 1 ) [2024-12-17 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-17 01:39:04' and `end` < '2024-12-17 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-17 04:39:16] Production.INFO: count ==122 [2024-12-17 04:39:16] Production.ERROR: pbx CDR StartTime 2024-12-17 01:39:04 - End Time 2024-12-17 04:39:04 [2024-12-17 04:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038420', 'tblTempUsageDetail_20' ) start [2024-12-17 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038420', 'tblTempUsageDetail_20' ) end [2024-12-17 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038420', 'tblTempVendorCDR_20' ) start [2024-12-17 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038420', 'tblTempVendorCDR_20' ) end [2024-12-17 04:39:16] Production.INFO: ProcessCDR(1,14038420,1,1,2) [2024-12-17 04:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038420', 'tblTempUsageDetail_20' ) start [2024-12-17 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038420', 'tblTempUsageDetail_20' ) end [2024-12-17 04:39:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:39:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:39:19] Production.INFO: ==20391== Releasing lock... [2024-12-17 04:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:39:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:40:05 [end_date_ymd] => 2024-12-17 04:40:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:40:05' and `end` < '2024-12-17 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-17 04:40:17] Production.INFO: count ==115 [2024-12-17 04:40:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:40:05 - End Time 2024-12-17 04:40:05 [2024-12-17 04:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038426', 'tblTempUsageDetail_20' ) start [2024-12-17 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038426', 'tblTempUsageDetail_20' ) end [2024-12-17 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038426', 'tblTempVendorCDR_20' ) start [2024-12-17 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038426', 'tblTempVendorCDR_20' ) end [2024-12-17 04:40:17] Production.INFO: ProcessCDR(1,14038426,1,1,2) [2024-12-17 04:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038426', 'tblTempUsageDetail_20' ) start [2024-12-17 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038426', 'tblTempUsageDetail_20' ) end [2024-12-17 04:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:40:20] Production.INFO: ==20466== Releasing lock... [2024-12-17 04:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:40:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:41:05 [end_date_ymd] => 2024-12-17 04:41:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:41:05' and `end` < '2024-12-17 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-17 04:41:18] Production.INFO: count ==109 [2024-12-17 04:41:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:41:05 - End Time 2024-12-17 04:41:05 [2024-12-17 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038431', 'tblTempUsageDetail_20' ) start [2024-12-17 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038431', 'tblTempUsageDetail_20' ) end [2024-12-17 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038431', 'tblTempVendorCDR_20' ) start [2024-12-17 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038431', 'tblTempVendorCDR_20' ) end [2024-12-17 04:41:18] Production.INFO: ProcessCDR(1,14038431,1,1,2) [2024-12-17 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038431', 'tblTempUsageDetail_20' ) start [2024-12-17 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038431', 'tblTempUsageDetail_20' ) end [2024-12-17 04:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:41:21] Production.INFO: ==20541== Releasing lock... [2024-12-17 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:41:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:42:04 [end_date_ymd] => 2024-12-17 04:42:04 [RateCDR] => 1 ) [2024-12-17 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-17 01:42:04' and `end` < '2024-12-17 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-17 04:42:17] Production.INFO: count ==109 [2024-12-17 04:42:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:42:04 - End Time 2024-12-17 04:42:04 [2024-12-17 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038436', 'tblTempUsageDetail_20' ) start [2024-12-17 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038436', 'tblTempUsageDetail_20' ) end [2024-12-17 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038436', 'tblTempVendorCDR_20' ) start [2024-12-17 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038436', 'tblTempVendorCDR_20' ) end [2024-12-17 04:42:17] Production.INFO: ProcessCDR(1,14038436,1,1,2) [2024-12-17 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038436', 'tblTempUsageDetail_20' ) start [2024-12-17 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038436', 'tblTempUsageDetail_20' ) end [2024-12-17 04:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:42:20] Production.INFO: ==20612== Releasing lock... [2024-12-17 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:42:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:43:05 [end_date_ymd] => 2024-12-17 04:43:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:43:05' and `end` < '2024-12-17 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-17 04:43:18] Production.INFO: count ==108 [2024-12-17 04:43:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:43:05 - End Time 2024-12-17 04:43:05 [2024-12-17 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038441', 'tblTempUsageDetail_20' ) start [2024-12-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038441', 'tblTempUsageDetail_20' ) end [2024-12-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038441', 'tblTempVendorCDR_20' ) start [2024-12-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038441', 'tblTempVendorCDR_20' ) end [2024-12-17 04:43:18] Production.INFO: ProcessCDR(1,14038441,1,1,2) [2024-12-17 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038441', 'tblTempUsageDetail_20' ) start [2024-12-17 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038441', 'tblTempUsageDetail_20' ) end [2024-12-17 04:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:43:21] Production.INFO: ==20684== Releasing lock... [2024-12-17 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:43:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:44:04 [end_date_ymd] => 2024-12-17 04:44:04 [RateCDR] => 1 ) [2024-12-17 04: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 01:44:04' and `end` < '2024-12-17 04: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-17 04:44:17] Production.INFO: count ==108 [2024-12-17 04:44:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:44:04 - End Time 2024-12-17 04:44:04 [2024-12-17 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038446', 'tblTempUsageDetail_20' ) start [2024-12-17 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038446', 'tblTempUsageDetail_20' ) end [2024-12-17 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038446', 'tblTempVendorCDR_20' ) start [2024-12-17 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038446', 'tblTempVendorCDR_20' ) end [2024-12-17 04:44:17] Production.INFO: ProcessCDR(1,14038446,1,1,2) [2024-12-17 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038446', 'tblTempUsageDetail_20' ) start [2024-12-17 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038446', 'tblTempUsageDetail_20' ) end [2024-12-17 04:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:44:20] Production.INFO: ==20754== Releasing lock... [2024-12-17 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:44:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:45:04 [end_date_ymd] => 2024-12-17 04:45:04 [RateCDR] => 1 ) [2024-12-17 04:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 01:45:04' and `end` < '2024-12-17 04:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 04:45:17] Production.INFO: count ==108 [2024-12-17 04:45:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:45:04 - End Time 2024-12-17 04:45:04 [2024-12-17 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038451', 'tblTempUsageDetail_20' ) start [2024-12-17 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038451', 'tblTempUsageDetail_20' ) end [2024-12-17 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038451', 'tblTempVendorCDR_20' ) start [2024-12-17 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038451', 'tblTempVendorCDR_20' ) end [2024-12-17 04:45:17] Production.INFO: ProcessCDR(1,14038451,1,1,2) [2024-12-17 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038451', 'tblTempUsageDetail_20' ) start [2024-12-17 04:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038451', 'tblTempUsageDetail_20' ) end [2024-12-17 04:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:45:20] Production.INFO: ==20826== Releasing lock... [2024-12-17 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:45:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:46:04 [end_date_ymd] => 2024-12-17 04:46:04 [RateCDR] => 1 ) [2024-12-17 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-17 01:46:04' and `end` < '2024-12-17 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-17 04:46:46] Production.INFO: count ==108 [2024-12-17 04:46:46] Production.ERROR: pbx CDR StartTime 2024-12-17 01:46:04 - End Time 2024-12-17 04:46:04 [2024-12-17 04:46:46] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:46:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038456', 'tblTempUsageDetail_20' ) start [2024-12-17 04:46:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038456', 'tblTempUsageDetail_20' ) end [2024-12-17 04:46:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038456', 'tblTempVendorCDR_20' ) start [2024-12-17 04:46:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038456', 'tblTempVendorCDR_20' ) end [2024-12-17 04:46:46] Production.INFO: ProcessCDR(1,14038456,1,1,2) [2024-12-17 04:46:46] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:46:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:46:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:46:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:46:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038456', 'tblTempUsageDetail_20' ) start [2024-12-17 04:46:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038456', 'tblTempUsageDetail_20' ) end [2024-12-17 04:46:49] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:46:49] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:46:49] Production.INFO: ==20900== Releasing lock... [2024-12-17 04:46:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:46:49] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:47:04 [end_date_ymd] => 2024-12-17 04:47:04 [RateCDR] => 1 ) [2024-12-17 04: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 01:47:04' and `end` < '2024-12-17 04: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-17 04:47:17] Production.INFO: count ==108 [2024-12-17 04:47:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:47:04 - End Time 2024-12-17 04:47:04 [2024-12-17 04:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038461', 'tblTempUsageDetail_20' ) start [2024-12-17 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038461', 'tblTempUsageDetail_20' ) end [2024-12-17 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038461', 'tblTempVendorCDR_20' ) start [2024-12-17 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038461', 'tblTempVendorCDR_20' ) end [2024-12-17 04:47:17] Production.INFO: ProcessCDR(1,14038461,1,1,2) [2024-12-17 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038461', 'tblTempUsageDetail_20' ) start [2024-12-17 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038461', 'tblTempUsageDetail_20' ) end [2024-12-17 04:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:47:21] Production.INFO: ==20975== Releasing lock... [2024-12-17 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:47:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:48:05 [end_date_ymd] => 2024-12-17 04:48:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:48:05' and `end` < '2024-12-17 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-17 04:48:19] Production.INFO: count ==108 [2024-12-17 04:48:19] Production.ERROR: pbx CDR StartTime 2024-12-17 01:48:05 - End Time 2024-12-17 04:48:05 [2024-12-17 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038466', 'tblTempUsageDetail_20' ) start [2024-12-17 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038466', 'tblTempUsageDetail_20' ) end [2024-12-17 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038466', 'tblTempVendorCDR_20' ) start [2024-12-17 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038466', 'tblTempVendorCDR_20' ) end [2024-12-17 04:48:19] Production.INFO: ProcessCDR(1,14038466,1,1,2) [2024-12-17 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038466', 'tblTempUsageDetail_20' ) start [2024-12-17 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038466', 'tblTempUsageDetail_20' ) end [2024-12-17 04:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:48:22] Production.INFO: ==21052== Releasing lock... [2024-12-17 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:48:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:49:04 [end_date_ymd] => 2024-12-17 04:49:04 [RateCDR] => 1 ) [2024-12-17 04: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 01:49:04' and `end` < '2024-12-17 04: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-17 04:49:17] Production.INFO: count ==108 [2024-12-17 04:49:17] Production.ERROR: pbx CDR StartTime 2024-12-17 01:49:04 - End Time 2024-12-17 04:49:04 [2024-12-17 04:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038471', 'tblTempUsageDetail_20' ) start [2024-12-17 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038471', 'tblTempUsageDetail_20' ) end [2024-12-17 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038471', 'tblTempVendorCDR_20' ) start [2024-12-17 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038471', 'tblTempVendorCDR_20' ) end [2024-12-17 04:49:17] Production.INFO: ProcessCDR(1,14038471,1,1,2) [2024-12-17 04:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038471', 'tblTempUsageDetail_20' ) start [2024-12-17 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038471', 'tblTempUsageDetail_20' ) end [2024-12-17 04:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:49:20] Production.INFO: ==21123== Releasing lock... [2024-12-17 04:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:49:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:50:05 [end_date_ymd] => 2024-12-17 04:50:05 [RateCDR] => 1 ) [2024-12-17 04: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 01:50:05' and `end` < '2024-12-17 04: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-17 04:50:18] Production.INFO: count ==104 [2024-12-17 04:50:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:50:05 - End Time 2024-12-17 04:50:05 [2024-12-17 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038476', 'tblTempUsageDetail_20' ) start [2024-12-17 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038476', 'tblTempUsageDetail_20' ) end [2024-12-17 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038476', 'tblTempVendorCDR_20' ) start [2024-12-17 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038476', 'tblTempVendorCDR_20' ) end [2024-12-17 04:50:18] Production.INFO: ProcessCDR(1,14038476,1,1,2) [2024-12-17 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038476', 'tblTempUsageDetail_20' ) start [2024-12-17 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038476', 'tblTempUsageDetail_20' ) end [2024-12-17 04:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:50:21] Production.INFO: ==21194== Releasing lock... [2024-12-17 04:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:50:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:51:05 [end_date_ymd] => 2024-12-17 04:51:05 [RateCDR] => 1 ) [2024-12-17 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 01:51:05' and `end` < '2024-12-17 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 04:51:19] Production.INFO: count ==106 [2024-12-17 04:51:19] Production.ERROR: pbx CDR StartTime 2024-12-17 01:51:05 - End Time 2024-12-17 04:51:05 [2024-12-17 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038482', 'tblTempUsageDetail_20' ) start [2024-12-17 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038482', 'tblTempUsageDetail_20' ) end [2024-12-17 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038482', 'tblTempVendorCDR_20' ) start [2024-12-17 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038482', 'tblTempVendorCDR_20' ) end [2024-12-17 04:51:19] Production.INFO: ProcessCDR(1,14038482,1,1,2) [2024-12-17 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038482', 'tblTempUsageDetail_20' ) start [2024-12-17 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038482', 'tblTempUsageDetail_20' ) end [2024-12-17 04:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:51:21] Production.INFO: ==21270== Releasing lock... [2024-12-17 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:51:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:52:05 [end_date_ymd] => 2024-12-17 04:52:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:52:05' and `end` < '2024-12-17 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-17 04:52:19] Production.INFO: count ==106 [2024-12-17 04:52:19] Production.ERROR: pbx CDR StartTime 2024-12-17 01:52:05 - End Time 2024-12-17 04:52:05 [2024-12-17 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038487', 'tblTempUsageDetail_20' ) start [2024-12-17 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038487', 'tblTempUsageDetail_20' ) end [2024-12-17 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038487', 'tblTempVendorCDR_20' ) start [2024-12-17 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038487', 'tblTempVendorCDR_20' ) end [2024-12-17 04:52:19] Production.INFO: ProcessCDR(1,14038487,1,1,2) [2024-12-17 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038487', 'tblTempUsageDetail_20' ) start [2024-12-17 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038487', 'tblTempUsageDetail_20' ) end [2024-12-17 04:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:52:22] Production.INFO: ==21381== Releasing lock... [2024-12-17 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:52:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:53:04 [end_date_ymd] => 2024-12-17 04:53:04 [RateCDR] => 1 ) [2024-12-17 04: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-17 01:53:04' and `end` < '2024-12-17 04: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-17 04:53:18] Production.INFO: count ==106 [2024-12-17 04:53:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:53:04 - End Time 2024-12-17 04:53:04 [2024-12-17 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038492', 'tblTempUsageDetail_20' ) start [2024-12-17 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038492', 'tblTempUsageDetail_20' ) end [2024-12-17 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038492', 'tblTempVendorCDR_20' ) start [2024-12-17 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038492', 'tblTempVendorCDR_20' ) end [2024-12-17 04:53:18] Production.INFO: ProcessCDR(1,14038492,1,1,2) [2024-12-17 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038492', 'tblTempUsageDetail_20' ) start [2024-12-17 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038492', 'tblTempUsageDetail_20' ) end [2024-12-17 04:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:53:21] Production.INFO: ==21453== Releasing lock... [2024-12-17 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:53:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:54:04 [end_date_ymd] => 2024-12-17 04:54:04 [RateCDR] => 1 ) [2024-12-17 04: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 01:54:04' and `end` < '2024-12-17 04: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-17 04:54:18] Production.INFO: count ==106 [2024-12-17 04:54:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:54:04 - End Time 2024-12-17 04:54:04 [2024-12-17 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038497', 'tblTempUsageDetail_20' ) start [2024-12-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038497', 'tblTempUsageDetail_20' ) end [2024-12-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038497', 'tblTempVendorCDR_20' ) start [2024-12-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038497', 'tblTempVendorCDR_20' ) end [2024-12-17 04:54:18] Production.INFO: ProcessCDR(1,14038497,1,1,2) [2024-12-17 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038497', 'tblTempUsageDetail_20' ) start [2024-12-17 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038497', 'tblTempUsageDetail_20' ) end [2024-12-17 04:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:54:21] Production.INFO: ==21527== Releasing lock... [2024-12-17 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:54:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:55:05 [end_date_ymd] => 2024-12-17 04:55:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:55:05' and `end` < '2024-12-17 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-17 04:55:18] Production.INFO: count ==106 [2024-12-17 04:55:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:55:05 - End Time 2024-12-17 04:55:05 [2024-12-17 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038502', 'tblTempUsageDetail_20' ) start [2024-12-17 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038502', 'tblTempUsageDetail_20' ) end [2024-12-17 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038502', 'tblTempVendorCDR_20' ) start [2024-12-17 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038502', 'tblTempVendorCDR_20' ) end [2024-12-17 04:55:18] Production.INFO: ProcessCDR(1,14038502,1,1,2) [2024-12-17 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038502', 'tblTempUsageDetail_20' ) start [2024-12-17 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038502', 'tblTempUsageDetail_20' ) end [2024-12-17 04:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:55:21] Production.INFO: ==21601== Releasing lock... [2024-12-17 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:55:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:56:05 [end_date_ymd] => 2024-12-17 04:56:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:56:05' and `end` < '2024-12-17 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-17 04:56:19] Production.INFO: count ==106 [2024-12-17 04:56:19] Production.ERROR: pbx CDR StartTime 2024-12-17 01:56:05 - End Time 2024-12-17 04:56:05 [2024-12-17 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038507', 'tblTempUsageDetail_20' ) start [2024-12-17 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038507', 'tblTempUsageDetail_20' ) end [2024-12-17 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038507', 'tblTempVendorCDR_20' ) start [2024-12-17 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038507', 'tblTempVendorCDR_20' ) end [2024-12-17 04:56:19] Production.INFO: ProcessCDR(1,14038507,1,1,2) [2024-12-17 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038507', 'tblTempUsageDetail_20' ) start [2024-12-17 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038507', 'tblTempUsageDetail_20' ) end [2024-12-17 04:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:56:22] Production.INFO: ==21671== Releasing lock... [2024-12-17 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:56:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:57:04 [end_date_ymd] => 2024-12-17 04:57:04 [RateCDR] => 1 ) [2024-12-17 04: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 01:57:04' and `end` < '2024-12-17 04: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-17 04:57:19] Production.INFO: count ==104 [2024-12-17 04:57:19] Production.ERROR: pbx CDR StartTime 2024-12-17 01:57:04 - End Time 2024-12-17 04:57:04 [2024-12-17 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038512', 'tblTempUsageDetail_20' ) start [2024-12-17 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038512', 'tblTempUsageDetail_20' ) end [2024-12-17 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038512', 'tblTempVendorCDR_20' ) start [2024-12-17 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038512', 'tblTempVendorCDR_20' ) end [2024-12-17 04:57:19] Production.INFO: ProcessCDR(1,14038512,1,1,2) [2024-12-17 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038512', 'tblTempUsageDetail_20' ) start [2024-12-17 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038512', 'tblTempUsageDetail_20' ) end [2024-12-17 04:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:57:22] Production.INFO: ==21743== Releasing lock... [2024-12-17 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:57:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:58:05 [end_date_ymd] => 2024-12-17 04:58:05 [RateCDR] => 1 ) [2024-12-17 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 01:58:05' and `end` < '2024-12-17 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 04:58:18] Production.INFO: count ==104 [2024-12-17 04:58:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:58:05 - End Time 2024-12-17 04:58:05 [2024-12-17 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038517', 'tblTempUsageDetail_20' ) start [2024-12-17 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038517', 'tblTempUsageDetail_20' ) end [2024-12-17 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038517', 'tblTempVendorCDR_20' ) start [2024-12-17 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038517', 'tblTempVendorCDR_20' ) end [2024-12-17 04:58:18] Production.INFO: ProcessCDR(1,14038517,1,1,2) [2024-12-17 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038517', 'tblTempUsageDetail_20' ) start [2024-12-17 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038517', 'tblTempUsageDetail_20' ) end [2024-12-17 04:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:58:21] Production.INFO: ==21815== Releasing lock... [2024-12-17 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:58:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 01:59:05 [end_date_ymd] => 2024-12-17 04:59:05 [RateCDR] => 1 ) [2024-12-17 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-17 01:59:05' and `end` < '2024-12-17 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-17 04:59:18] Production.INFO: count ==103 [2024-12-17 04:59:18] Production.ERROR: pbx CDR StartTime 2024-12-17 01:59:05 - End Time 2024-12-17 04:59:05 [2024-12-17 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038522', 'tblTempUsageDetail_20' ) start [2024-12-17 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038522', 'tblTempUsageDetail_20' ) end [2024-12-17 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038522', 'tblTempVendorCDR_20' ) start [2024-12-17 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038522', 'tblTempVendorCDR_20' ) end [2024-12-17 04:59:18] Production.INFO: ProcessCDR(1,14038522,1,1,2) [2024-12-17 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038522', 'tblTempUsageDetail_20' ) start [2024-12-17 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038522', 'tblTempUsageDetail_20' ) end [2024-12-17 04:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 04:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 04:59:21] Production.INFO: ==21885== Releasing lock... [2024-12-17 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 04:59:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:00:05 [end_date_ymd] => 2024-12-17 05:00:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:00:05' and `end` < '2024-12-17 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-17 05:00:18] Production.INFO: count ==98 [2024-12-17 05:00:18] Production.ERROR: pbx CDR StartTime 2024-12-17 02:00:05 - End Time 2024-12-17 05:00:05 [2024-12-17 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038528', 'tblTempUsageDetail_20' ) start [2024-12-17 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038528', 'tblTempUsageDetail_20' ) end [2024-12-17 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038528', 'tblTempVendorCDR_20' ) start [2024-12-17 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038528', 'tblTempVendorCDR_20' ) end [2024-12-17 05:00:18] Production.INFO: ProcessCDR(1,14038528,1,1,2) [2024-12-17 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038528', 'tblTempUsageDetail_20' ) start [2024-12-17 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038528', 'tblTempUsageDetail_20' ) end [2024-12-17 05:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:00:21] Production.INFO: ==21962== Releasing lock... [2024-12-17 05:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:00:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:01:05 [end_date_ymd] => 2024-12-17 05:01:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:01:05' and `end` < '2024-12-17 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-17 05:01:20] Production.INFO: count ==98 [2024-12-17 05:01:20] Production.ERROR: pbx CDR StartTime 2024-12-17 02:01:05 - End Time 2024-12-17 05:01:05 [2024-12-17 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038533', 'tblTempUsageDetail_20' ) start [2024-12-17 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038533', 'tblTempUsageDetail_20' ) end [2024-12-17 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038533', 'tblTempVendorCDR_20' ) start [2024-12-17 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038533', 'tblTempVendorCDR_20' ) end [2024-12-17 05:01:20] Production.INFO: ProcessCDR(1,14038533,1,1,2) [2024-12-17 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038533', 'tblTempUsageDetail_20' ) start [2024-12-17 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038533', 'tblTempUsageDetail_20' ) end [2024-12-17 05:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:01:23] Production.INFO: ==22048== Releasing lock... [2024-12-17 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:01:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 05:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:02:04 [end_date_ymd] => 2024-12-17 05:02:04 [RateCDR] => 1 ) [2024-12-17 05: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 02:02:04' and `end` < '2024-12-17 05: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-17 05:02:20] Production.INFO: count ==98 [2024-12-17 05:02:20] Production.ERROR: pbx CDR StartTime 2024-12-17 02:02:04 - End Time 2024-12-17 05:02:04 [2024-12-17 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038538', 'tblTempUsageDetail_20' ) start [2024-12-17 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038538', 'tblTempUsageDetail_20' ) end [2024-12-17 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038538', 'tblTempVendorCDR_20' ) start [2024-12-17 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038538', 'tblTempVendorCDR_20' ) end [2024-12-17 05:02:20] Production.INFO: ProcessCDR(1,14038538,1,1,2) [2024-12-17 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038538', 'tblTempUsageDetail_20' ) start [2024-12-17 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038538', 'tblTempUsageDetail_20' ) end [2024-12-17 05:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:02:23] Production.INFO: ==22121== Releasing lock... [2024-12-17 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:02:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:03:05 [end_date_ymd] => 2024-12-17 05:03:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:03:05' and `end` < '2024-12-17 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-17 05:03:18] Production.INFO: count ==96 [2024-12-17 05:03:18] Production.ERROR: pbx CDR StartTime 2024-12-17 02:03:05 - End Time 2024-12-17 05:03:05 [2024-12-17 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038543', 'tblTempUsageDetail_20' ) start [2024-12-17 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038543', 'tblTempUsageDetail_20' ) end [2024-12-17 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038543', 'tblTempVendorCDR_20' ) start [2024-12-17 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038543', 'tblTempVendorCDR_20' ) end [2024-12-17 05:03:18] Production.INFO: ProcessCDR(1,14038543,1,1,2) [2024-12-17 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038543', 'tblTempUsageDetail_20' ) start [2024-12-17 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038543', 'tblTempUsageDetail_20' ) end [2024-12-17 05:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:03:21] Production.INFO: ==22191== Releasing lock... [2024-12-17 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:03:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:04:05 [end_date_ymd] => 2024-12-17 05:04:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:04:05' and `end` < '2024-12-17 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-17 05:04:17] Production.INFO: count ==96 [2024-12-17 05:04:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:04:05 - End Time 2024-12-17 05:04:05 [2024-12-17 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038548', 'tblTempUsageDetail_20' ) start [2024-12-17 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038548', 'tblTempUsageDetail_20' ) end [2024-12-17 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038548', 'tblTempVendorCDR_20' ) start [2024-12-17 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038548', 'tblTempVendorCDR_20' ) end [2024-12-17 05:04:17] Production.INFO: ProcessCDR(1,14038548,1,1,2) [2024-12-17 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038548', 'tblTempUsageDetail_20' ) start [2024-12-17 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038548', 'tblTempUsageDetail_20' ) end [2024-12-17 05:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:04:20] Production.INFO: ==22261== Releasing lock... [2024-12-17 05:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:04:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:05:04 [end_date_ymd] => 2024-12-17 05:05:04 [RateCDR] => 1 ) [2024-12-17 05: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 02:05:04' and `end` < '2024-12-17 05: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-17 05:05:16] Production.INFO: count ==95 [2024-12-17 05:05:16] Production.ERROR: pbx CDR StartTime 2024-12-17 02:05:04 - End Time 2024-12-17 05:05:04 [2024-12-17 05:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038553', 'tblTempUsageDetail_20' ) start [2024-12-17 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038553', 'tblTempUsageDetail_20' ) end [2024-12-17 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038553', 'tblTempVendorCDR_20' ) start [2024-12-17 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038553', 'tblTempVendorCDR_20' ) end [2024-12-17 05:05:16] Production.INFO: ProcessCDR(1,14038553,1,1,2) [2024-12-17 05:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038553', 'tblTempUsageDetail_20' ) start [2024-12-17 05:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038553', 'tblTempUsageDetail_20' ) end [2024-12-17 05:05:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:05:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:05:19] Production.INFO: ==22335== Releasing lock... [2024-12-17 05:05:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:05:19] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:06:05 [end_date_ymd] => 2024-12-17 05:06:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:06:05' and `end` < '2024-12-17 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-17 05:06:18] Production.INFO: count ==95 [2024-12-17 05:06:18] Production.ERROR: pbx CDR StartTime 2024-12-17 02:06:05 - End Time 2024-12-17 05:06:05 [2024-12-17 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038558', 'tblTempUsageDetail_20' ) start [2024-12-17 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038558', 'tblTempUsageDetail_20' ) end [2024-12-17 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038558', 'tblTempVendorCDR_20' ) start [2024-12-17 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038558', 'tblTempVendorCDR_20' ) end [2024-12-17 05:06:18] Production.INFO: ProcessCDR(1,14038558,1,1,2) [2024-12-17 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038558', 'tblTempUsageDetail_20' ) start [2024-12-17 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038558', 'tblTempUsageDetail_20' ) end [2024-12-17 05:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:06:21] Production.INFO: ==22406== Releasing lock... [2024-12-17 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:06:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:07:05 [end_date_ymd] => 2024-12-17 05:07:05 [RateCDR] => 1 ) [2024-12-17 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 02:07:05' and `end` < '2024-12-17 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 05:07:18] Production.INFO: count ==95 [2024-12-17 05:07:18] Production.ERROR: pbx CDR StartTime 2024-12-17 02:07:05 - End Time 2024-12-17 05:07:05 [2024-12-17 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038563', 'tblTempUsageDetail_20' ) start [2024-12-17 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038563', 'tblTempUsageDetail_20' ) end [2024-12-17 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038563', 'tblTempVendorCDR_20' ) start [2024-12-17 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038563', 'tblTempVendorCDR_20' ) end [2024-12-17 05:07:18] Production.INFO: ProcessCDR(1,14038563,1,1,2) [2024-12-17 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038563', 'tblTempUsageDetail_20' ) start [2024-12-17 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038563', 'tblTempUsageDetail_20' ) end [2024-12-17 05:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:07:21] Production.INFO: ==22477== Releasing lock... [2024-12-17 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:07:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:08:04 [end_date_ymd] => 2024-12-17 05:08:04 [RateCDR] => 1 ) [2024-12-17 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-17 02:08:04' and `end` < '2024-12-17 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-17 05:08:16] Production.INFO: count ==95 [2024-12-17 05:08:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:08:04 - End Time 2024-12-17 05:08:04 [2024-12-17 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038568', 'tblTempUsageDetail_20' ) start [2024-12-17 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038568', 'tblTempUsageDetail_20' ) end [2024-12-17 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038568', 'tblTempVendorCDR_20' ) start [2024-12-17 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038568', 'tblTempVendorCDR_20' ) end [2024-12-17 05:08:17] Production.INFO: ProcessCDR(1,14038568,1,1,2) [2024-12-17 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038568', 'tblTempUsageDetail_20' ) start [2024-12-17 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038568', 'tblTempUsageDetail_20' ) end [2024-12-17 05:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:08:20] Production.INFO: ==22587== Releasing lock... [2024-12-17 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:08:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:09:05 [end_date_ymd] => 2024-12-17 05:09:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:09:05' and `end` < '2024-12-17 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-17 05:09:17] Production.INFO: count ==95 [2024-12-17 05:09:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:09:05 - End Time 2024-12-17 05:09:05 [2024-12-17 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038573', 'tblTempUsageDetail_20' ) start [2024-12-17 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038573', 'tblTempUsageDetail_20' ) end [2024-12-17 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038573', 'tblTempVendorCDR_20' ) start [2024-12-17 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038573', 'tblTempVendorCDR_20' ) end [2024-12-17 05:09:17] Production.INFO: ProcessCDR(1,14038573,1,1,2) [2024-12-17 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038573', 'tblTempUsageDetail_20' ) start [2024-12-17 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038573', 'tblTempUsageDetail_20' ) end [2024-12-17 05:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:09:20] Production.INFO: ==22657== Releasing lock... [2024-12-17 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:09:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:10:05 [end_date_ymd] => 2024-12-17 05:10:05 [RateCDR] => 1 ) [2024-12-17 05: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 02:10:05' and `end` < '2024-12-17 05: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-17 05:10:17] Production.INFO: count ==93 [2024-12-17 05:10:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:10:05 - End Time 2024-12-17 05:10:05 [2024-12-17 05:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038577', 'tblTempUsageDetail_20' ) start [2024-12-17 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038577', 'tblTempUsageDetail_20' ) end [2024-12-17 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038577', 'tblTempVendorCDR_20' ) start [2024-12-17 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038577', 'tblTempVendorCDR_20' ) end [2024-12-17 05:10:17] Production.INFO: ProcessCDR(1,14038577,1,1,2) [2024-12-17 05:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038577', 'tblTempUsageDetail_20' ) start [2024-12-17 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038577', 'tblTempUsageDetail_20' ) end [2024-12-17 05:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:10:20] Production.INFO: ==22735== Releasing lock... [2024-12-17 05:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:10:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:11:04 [end_date_ymd] => 2024-12-17 05:11:04 [RateCDR] => 1 ) [2024-12-17 05: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 02:11:04' and `end` < '2024-12-17 05: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-17 05:11:18] Production.INFO: count ==98 [2024-12-17 05:11:18] Production.ERROR: pbx CDR StartTime 2024-12-17 02:11:04 - End Time 2024-12-17 05:11:04 [2024-12-17 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038584', 'tblTempUsageDetail_20' ) start [2024-12-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038584', 'tblTempUsageDetail_20' ) end [2024-12-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038584', 'tblTempVendorCDR_20' ) start [2024-12-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038584', 'tblTempVendorCDR_20' ) end [2024-12-17 05:11:18] Production.INFO: ProcessCDR(1,14038584,1,1,2) [2024-12-17 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038584', 'tblTempUsageDetail_20' ) start [2024-12-17 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038584', 'tblTempUsageDetail_20' ) end [2024-12-17 05:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:11:21] Production.INFO: ==22807== Releasing lock... [2024-12-17 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:11:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:12:05 [end_date_ymd] => 2024-12-17 05:12:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:12:05' and `end` < '2024-12-17 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-17 05:12:18] Production.INFO: count ==98 [2024-12-17 05:12:18] Production.ERROR: pbx CDR StartTime 2024-12-17 02:12:05 - End Time 2024-12-17 05:12:05 [2024-12-17 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038589', 'tblTempUsageDetail_20' ) start [2024-12-17 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038589', 'tblTempUsageDetail_20' ) end [2024-12-17 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038589', 'tblTempVendorCDR_20' ) start [2024-12-17 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038589', 'tblTempVendorCDR_20' ) end [2024-12-17 05:12:18] Production.INFO: ProcessCDR(1,14038589,1,1,2) [2024-12-17 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038589', 'tblTempUsageDetail_20' ) start [2024-12-17 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038589', 'tblTempUsageDetail_20' ) end [2024-12-17 05:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:12:21] Production.INFO: ==22877== Releasing lock... [2024-12-17 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:12:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:13:04 [end_date_ymd] => 2024-12-17 05:13:04 [RateCDR] => 1 ) [2024-12-17 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-17 02:13:04' and `end` < '2024-12-17 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-17 05:13:17] Production.INFO: count ==98 [2024-12-17 05:13:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:13:04 - End Time 2024-12-17 05:13:04 [2024-12-17 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038594', 'tblTempUsageDetail_20' ) start [2024-12-17 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038594', 'tblTempUsageDetail_20' ) end [2024-12-17 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038594', 'tblTempVendorCDR_20' ) start [2024-12-17 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038594', 'tblTempVendorCDR_20' ) end [2024-12-17 05:13:17] Production.INFO: ProcessCDR(1,14038594,1,1,2) [2024-12-17 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038594', 'tblTempUsageDetail_20' ) start [2024-12-17 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038594', 'tblTempUsageDetail_20' ) end [2024-12-17 05:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:13:20] Production.INFO: ==22949== Releasing lock... [2024-12-17 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:13:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:14:04 [end_date_ymd] => 2024-12-17 05:14:04 [RateCDR] => 1 ) [2024-12-17 05: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 02:14:04' and `end` < '2024-12-17 05: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-17 05:14:17] Production.INFO: count ==98 [2024-12-17 05:14:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:14:04 - End Time 2024-12-17 05:14:04 [2024-12-17 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038599', 'tblTempUsageDetail_20' ) start [2024-12-17 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038599', 'tblTempUsageDetail_20' ) end [2024-12-17 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038599', 'tblTempVendorCDR_20' ) start [2024-12-17 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038599', 'tblTempVendorCDR_20' ) end [2024-12-17 05:14:17] Production.INFO: ProcessCDR(1,14038599,1,1,2) [2024-12-17 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038599', 'tblTempUsageDetail_20' ) start [2024-12-17 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038599', 'tblTempUsageDetail_20' ) end [2024-12-17 05:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:14:20] Production.INFO: ==23033== Releasing lock... [2024-12-17 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:14:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:15:05 [end_date_ymd] => 2024-12-17 05:15:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:15:05' and `end` < '2024-12-17 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-17 05:15:17] Production.INFO: count ==98 [2024-12-17 05:15:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:15:05 - End Time 2024-12-17 05:15:05 [2024-12-17 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038604', 'tblTempUsageDetail_20' ) start [2024-12-17 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038604', 'tblTempUsageDetail_20' ) end [2024-12-17 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038604', 'tblTempVendorCDR_20' ) start [2024-12-17 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038604', 'tblTempVendorCDR_20' ) end [2024-12-17 05:15:17] Production.INFO: ProcessCDR(1,14038604,1,1,2) [2024-12-17 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038604', 'tblTempUsageDetail_20' ) start [2024-12-17 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038604', 'tblTempUsageDetail_20' ) end [2024-12-17 05:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:15:20] Production.INFO: ==23114== Releasing lock... [2024-12-17 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:15:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:16:05 [end_date_ymd] => 2024-12-17 05:16:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:16:05' and `end` < '2024-12-17 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-17 05:16:17] Production.INFO: count ==98 [2024-12-17 05:16:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:16:05 - End Time 2024-12-17 05:16:05 [2024-12-17 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038609', 'tblTempUsageDetail_20' ) start [2024-12-17 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038609', 'tblTempUsageDetail_20' ) end [2024-12-17 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038609', 'tblTempVendorCDR_20' ) start [2024-12-17 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038609', 'tblTempVendorCDR_20' ) end [2024-12-17 05:16:17] Production.INFO: ProcessCDR(1,14038609,1,1,2) [2024-12-17 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038609', 'tblTempUsageDetail_20' ) start [2024-12-17 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038609', 'tblTempUsageDetail_20' ) end [2024-12-17 05:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:16:20] Production.INFO: ==23196== Releasing lock... [2024-12-17 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:16:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:17:04 [end_date_ymd] => 2024-12-17 05:17:04 [RateCDR] => 1 ) [2024-12-17 05: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 02:17:04' and `end` < '2024-12-17 05: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-17 05:17:17] Production.INFO: count ==97 [2024-12-17 05:17:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:17:04 - End Time 2024-12-17 05:17:04 [2024-12-17 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038614', 'tblTempUsageDetail_20' ) start [2024-12-17 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038614', 'tblTempUsageDetail_20' ) end [2024-12-17 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038614', 'tblTempVendorCDR_20' ) start [2024-12-17 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038614', 'tblTempVendorCDR_20' ) end [2024-12-17 05:17:17] Production.INFO: ProcessCDR(1,14038614,1,1,2) [2024-12-17 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038614', 'tblTempUsageDetail_20' ) start [2024-12-17 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038614', 'tblTempUsageDetail_20' ) end [2024-12-17 05:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:17:20] Production.INFO: ==23281== Releasing lock... [2024-12-17 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:17:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:18:05 [end_date_ymd] => 2024-12-17 05:18:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:18:05' and `end` < '2024-12-17 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-17 05:18:17] Production.INFO: count ==97 [2024-12-17 05:18:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:18:05 - End Time 2024-12-17 05:18:05 [2024-12-17 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038619', 'tblTempUsageDetail_20' ) start [2024-12-17 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038619', 'tblTempUsageDetail_20' ) end [2024-12-17 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038619', 'tblTempVendorCDR_20' ) start [2024-12-17 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038619', 'tblTempVendorCDR_20' ) end [2024-12-17 05:18:17] Production.INFO: ProcessCDR(1,14038619,1,1,2) [2024-12-17 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038619', 'tblTempUsageDetail_20' ) start [2024-12-17 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038619', 'tblTempUsageDetail_20' ) end [2024-12-17 05:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:18:20] Production.INFO: ==23364== Releasing lock... [2024-12-17 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:18:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:19:04 [end_date_ymd] => 2024-12-17 05:19:04 [RateCDR] => 1 ) [2024-12-17 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-17 02:19:04' and `end` < '2024-12-17 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-17 05:19:17] Production.INFO: count ==97 [2024-12-17 05:19:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:19:04 - End Time 2024-12-17 05:19:04 [2024-12-17 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038624', 'tblTempUsageDetail_20' ) start [2024-12-17 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038624', 'tblTempUsageDetail_20' ) end [2024-12-17 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038624', 'tblTempVendorCDR_20' ) start [2024-12-17 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038624', 'tblTempVendorCDR_20' ) end [2024-12-17 05:19:17] Production.INFO: ProcessCDR(1,14038624,1,1,2) [2024-12-17 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038624', 'tblTempUsageDetail_20' ) start [2024-12-17 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038624', 'tblTempUsageDetail_20' ) end [2024-12-17 05:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:19:20] Production.INFO: ==23445== Releasing lock... [2024-12-17 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:19:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:20:05 [end_date_ymd] => 2024-12-17 05:20:05 [RateCDR] => 1 ) [2024-12-17 05: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 02:20:05' and `end` < '2024-12-17 05: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-17 05:20:17] Production.INFO: count ==93 [2024-12-17 05:20:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:20:05 - End Time 2024-12-17 05:20:05 [2024-12-17 05:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038630', 'tblTempUsageDetail_20' ) start [2024-12-17 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038630', 'tblTempUsageDetail_20' ) end [2024-12-17 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038630', 'tblTempVendorCDR_20' ) start [2024-12-17 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038630', 'tblTempVendorCDR_20' ) end [2024-12-17 05:20:17] Production.INFO: ProcessCDR(1,14038630,1,1,2) [2024-12-17 05:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038630', 'tblTempUsageDetail_20' ) start [2024-12-17 05:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038630', 'tblTempUsageDetail_20' ) end [2024-12-17 05:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:20:20] Production.INFO: ==23530== Releasing lock... [2024-12-17 05:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:20:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:21:04 [end_date_ymd] => 2024-12-17 05:21:04 [RateCDR] => 1 ) [2024-12-17 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-17 02:21:04' and `end` < '2024-12-17 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-17 05:21:16] Production.INFO: count ==89 [2024-12-17 05:21:16] Production.ERROR: pbx CDR StartTime 2024-12-17 02:21:04 - End Time 2024-12-17 05:21:04 [2024-12-17 05:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038635', 'tblTempUsageDetail_20' ) start [2024-12-17 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038635', 'tblTempUsageDetail_20' ) end [2024-12-17 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038635', 'tblTempVendorCDR_20' ) start [2024-12-17 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038635', 'tblTempVendorCDR_20' ) end [2024-12-17 05:21:16] Production.INFO: ProcessCDR(1,14038635,1,1,2) [2024-12-17 05:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038635', 'tblTempUsageDetail_20' ) start [2024-12-17 05:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038635', 'tblTempUsageDetail_20' ) end [2024-12-17 05:21:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:21:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:21:19] Production.INFO: ==23611== Releasing lock... [2024-12-17 05:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:21:19] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:22:05 [end_date_ymd] => 2024-12-17 05:22:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:22:05' and `end` < '2024-12-17 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-17 05:22:18] Production.INFO: count ==89 [2024-12-17 05:22:18] Production.ERROR: pbx CDR StartTime 2024-12-17 02:22:05 - End Time 2024-12-17 05:22:05 [2024-12-17 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038640', 'tblTempUsageDetail_20' ) start [2024-12-17 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038640', 'tblTempUsageDetail_20' ) end [2024-12-17 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038640', 'tblTempVendorCDR_20' ) start [2024-12-17 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038640', 'tblTempVendorCDR_20' ) end [2024-12-17 05:22:18] Production.INFO: ProcessCDR(1,14038640,1,1,2) [2024-12-17 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038640', 'tblTempUsageDetail_20' ) start [2024-12-17 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038640', 'tblTempUsageDetail_20' ) end [2024-12-17 05:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:22:21] Production.INFO: ==23689== Releasing lock... [2024-12-17 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:22:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:23:04 [end_date_ymd] => 2024-12-17 05:23:04 [RateCDR] => 1 ) [2024-12-17 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-17 02:23:04' and `end` < '2024-12-17 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-17 05:23:16] Production.INFO: count ==89 [2024-12-17 05:23:16] Production.ERROR: pbx CDR StartTime 2024-12-17 02:23:04 - End Time 2024-12-17 05:23:04 [2024-12-17 05:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038645', 'tblTempUsageDetail_20' ) start [2024-12-17 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038645', 'tblTempUsageDetail_20' ) end [2024-12-17 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038645', 'tblTempVendorCDR_20' ) start [2024-12-17 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038645', 'tblTempVendorCDR_20' ) end [2024-12-17 05:23:16] Production.INFO: ProcessCDR(1,14038645,1,1,2) [2024-12-17 05:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038645', 'tblTempUsageDetail_20' ) start [2024-12-17 05:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038645', 'tblTempUsageDetail_20' ) end [2024-12-17 05:23:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:23:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:23:19] Production.INFO: ==23811== Releasing lock... [2024-12-17 05:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:23:19] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:24:04 [end_date_ymd] => 2024-12-17 05:24:04 [RateCDR] => 1 ) [2024-12-17 05: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-17 02:24:04' and `end` < '2024-12-17 05: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-17 05:24:17] Production.INFO: count ==89 [2024-12-17 05:24:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:24:04 - End Time 2024-12-17 05:24:04 [2024-12-17 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038650', 'tblTempUsageDetail_20' ) start [2024-12-17 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038650', 'tblTempUsageDetail_20' ) end [2024-12-17 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038650', 'tblTempVendorCDR_20' ) start [2024-12-17 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038650', 'tblTempVendorCDR_20' ) end [2024-12-17 05:24:17] Production.INFO: ProcessCDR(1,14038650,1,1,2) [2024-12-17 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038650', 'tblTempUsageDetail_20' ) start [2024-12-17 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038650', 'tblTempUsageDetail_20' ) end [2024-12-17 05:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:24:20] Production.INFO: ==23890== Releasing lock... [2024-12-17 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:24:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:25:05 [end_date_ymd] => 2024-12-17 05:25:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:25:05' and `end` < '2024-12-17 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-17 05:25:17] Production.INFO: count ==89 [2024-12-17 05:25:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:25:05 - End Time 2024-12-17 05:25:05 [2024-12-17 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038655', 'tblTempUsageDetail_20' ) start [2024-12-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038655', 'tblTempUsageDetail_20' ) end [2024-12-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038655', 'tblTempVendorCDR_20' ) start [2024-12-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038655', 'tblTempVendorCDR_20' ) end [2024-12-17 05:25:17] Production.INFO: ProcessCDR(1,14038655,1,1,2) [2024-12-17 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038655', 'tblTempUsageDetail_20' ) start [2024-12-17 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038655', 'tblTempUsageDetail_20' ) end [2024-12-17 05:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:25:21] Production.INFO: ==23961== Releasing lock... [2024-12-17 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:25:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:26:04 [end_date_ymd] => 2024-12-17 05:26:04 [RateCDR] => 1 ) [2024-12-17 05:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 02:26:04' and `end` < '2024-12-17 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-17 05:26:17] Production.INFO: count ==89 [2024-12-17 05:26:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:26:04 - End Time 2024-12-17 05:26:04 [2024-12-17 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038660', 'tblTempUsageDetail_20' ) start [2024-12-17 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038660', 'tblTempUsageDetail_20' ) end [2024-12-17 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038660', 'tblTempVendorCDR_20' ) start [2024-12-17 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038660', 'tblTempVendorCDR_20' ) end [2024-12-17 05:26:17] Production.INFO: ProcessCDR(1,14038660,1,1,2) [2024-12-17 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038660', 'tblTempUsageDetail_20' ) start [2024-12-17 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038660', 'tblTempUsageDetail_20' ) end [2024-12-17 05:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:26:20] Production.INFO: ==24037== Releasing lock... [2024-12-17 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:26:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:27:05 [end_date_ymd] => 2024-12-17 05:27:05 [RateCDR] => 1 ) [2024-12-17 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 02:27:05' and `end` < '2024-12-17 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 05:27:17] Production.INFO: count ==89 [2024-12-17 05:27:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:27:05 - End Time 2024-12-17 05:27:05 [2024-12-17 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038665', 'tblTempUsageDetail_20' ) start [2024-12-17 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038665', 'tblTempUsageDetail_20' ) end [2024-12-17 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038665', 'tblTempVendorCDR_20' ) start [2024-12-17 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038665', 'tblTempVendorCDR_20' ) end [2024-12-17 05:27:17] Production.INFO: ProcessCDR(1,14038665,1,1,2) [2024-12-17 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038665', 'tblTempUsageDetail_20' ) start [2024-12-17 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038665', 'tblTempUsageDetail_20' ) end [2024-12-17 05:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:27:20] Production.INFO: ==24110== Releasing lock... [2024-12-17 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:27:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:28:04 [end_date_ymd] => 2024-12-17 05:28:04 [RateCDR] => 1 ) [2024-12-17 05: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 02:28:04' and `end` < '2024-12-17 05: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-17 05:28:17] Production.INFO: count ==89 [2024-12-17 05:28:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:28:04 - End Time 2024-12-17 05:28:04 [2024-12-17 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038670', 'tblTempUsageDetail_20' ) start [2024-12-17 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038670', 'tblTempUsageDetail_20' ) end [2024-12-17 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038670', 'tblTempVendorCDR_20' ) start [2024-12-17 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038670', 'tblTempVendorCDR_20' ) end [2024-12-17 05:28:17] Production.INFO: ProcessCDR(1,14038670,1,1,2) [2024-12-17 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038670', 'tblTempUsageDetail_20' ) start [2024-12-17 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038670', 'tblTempUsageDetail_20' ) end [2024-12-17 05:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:28:20] Production.INFO: ==24188== Releasing lock... [2024-12-17 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:28:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:29:05 [end_date_ymd] => 2024-12-17 05:29:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:29:05' and `end` < '2024-12-17 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-17 05:29:17] Production.INFO: count ==89 [2024-12-17 05:29:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:29:05 - End Time 2024-12-17 05:29:05 [2024-12-17 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038675', 'tblTempUsageDetail_20' ) start [2024-12-17 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038675', 'tblTempUsageDetail_20' ) end [2024-12-17 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038675', 'tblTempVendorCDR_20' ) start [2024-12-17 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038675', 'tblTempVendorCDR_20' ) end [2024-12-17 05:29:17] Production.INFO: ProcessCDR(1,14038675,1,1,2) [2024-12-17 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038675', 'tblTempUsageDetail_20' ) start [2024-12-17 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038675', 'tblTempUsageDetail_20' ) end [2024-12-17 05:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:29:20] Production.INFO: ==24264== Releasing lock... [2024-12-17 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:29:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:30:05 [end_date_ymd] => 2024-12-17 05:30:05 [RateCDR] => 1 ) [2024-12-17 05: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 02:30:05' and `end` < '2024-12-17 05: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-17 05:30:17] Production.INFO: count ==84 [2024-12-17 05:30:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:30:05 - End Time 2024-12-17 05:30:05 [2024-12-17 05:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038681', 'tblTempUsageDetail_20' ) start [2024-12-17 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038681', 'tblTempUsageDetail_20' ) end [2024-12-17 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038681', 'tblTempVendorCDR_20' ) start [2024-12-17 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038681', 'tblTempVendorCDR_20' ) end [2024-12-17 05:30:17] Production.INFO: ProcessCDR(1,14038681,1,1,2) [2024-12-17 05:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038681', 'tblTempUsageDetail_20' ) start [2024-12-17 05:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038681', 'tblTempUsageDetail_20' ) end [2024-12-17 05:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:30:20] Production.INFO: ==24343== Releasing lock... [2024-12-17 05:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:30:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:31:05 [end_date_ymd] => 2024-12-17 05:31:05 [RateCDR] => 1 ) [2024-12-17 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 02:31:05' and `end` < '2024-12-17 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 05:31:17] Production.INFO: count ==78 [2024-12-17 05:31:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:31:05 - End Time 2024-12-17 05:31:05 [2024-12-17 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038686', 'tblTempUsageDetail_20' ) start [2024-12-17 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038686', 'tblTempUsageDetail_20' ) end [2024-12-17 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038686', 'tblTempVendorCDR_20' ) start [2024-12-17 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038686', 'tblTempVendorCDR_20' ) end [2024-12-17 05:31:17] Production.INFO: ProcessCDR(1,14038686,1,1,2) [2024-12-17 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038686', 'tblTempUsageDetail_20' ) start [2024-12-17 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038686', 'tblTempUsageDetail_20' ) end [2024-12-17 05:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:31:20] Production.INFO: ==24420== Releasing lock... [2024-12-17 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:31:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:32:05 [end_date_ymd] => 2024-12-17 05:32:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:32:05' and `end` < '2024-12-17 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-17 05:32:17] Production.INFO: count ==78 [2024-12-17 05:32:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:32:05 - End Time 2024-12-17 05:32:05 [2024-12-17 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038691', 'tblTempUsageDetail_20' ) start [2024-12-17 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038691', 'tblTempUsageDetail_20' ) end [2024-12-17 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038691', 'tblTempVendorCDR_20' ) start [2024-12-17 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038691', 'tblTempVendorCDR_20' ) end [2024-12-17 05:32:17] Production.INFO: ProcessCDR(1,14038691,1,1,2) [2024-12-17 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038691', 'tblTempUsageDetail_20' ) start [2024-12-17 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038691', 'tblTempUsageDetail_20' ) end [2024-12-17 05:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:32:20] Production.INFO: ==24504== Releasing lock... [2024-12-17 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:32:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:33:04 [end_date_ymd] => 2024-12-17 05:33:04 [RateCDR] => 1 ) [2024-12-17 05: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 02:33:04' and `end` < '2024-12-17 05: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-17 05:33:17] Production.INFO: count ==78 [2024-12-17 05:33:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:33:04 - End Time 2024-12-17 05:33:04 [2024-12-17 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038696', 'tblTempUsageDetail_20' ) start [2024-12-17 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038696', 'tblTempUsageDetail_20' ) end [2024-12-17 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038696', 'tblTempVendorCDR_20' ) start [2024-12-17 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038696', 'tblTempVendorCDR_20' ) end [2024-12-17 05:33:17] Production.INFO: ProcessCDR(1,14038696,1,1,2) [2024-12-17 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038696', 'tblTempUsageDetail_20' ) start [2024-12-17 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038696', 'tblTempUsageDetail_20' ) end [2024-12-17 05:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:33:20] Production.INFO: ==24582== Releasing lock... [2024-12-17 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:33:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:34:05 [end_date_ymd] => 2024-12-17 05:34:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:34:05' and `end` < '2024-12-17 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-17 05:34:17] Production.INFO: count ==78 [2024-12-17 05:34:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:34:05 - End Time 2024-12-17 05:34:05 [2024-12-17 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038701', 'tblTempUsageDetail_20' ) start [2024-12-17 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038701', 'tblTempUsageDetail_20' ) end [2024-12-17 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038701', 'tblTempVendorCDR_20' ) start [2024-12-17 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038701', 'tblTempVendorCDR_20' ) end [2024-12-17 05:34:17] Production.INFO: ProcessCDR(1,14038701,1,1,2) [2024-12-17 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038701', 'tblTempUsageDetail_20' ) start [2024-12-17 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038701', 'tblTempUsageDetail_20' ) end [2024-12-17 05:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:34:20] Production.INFO: ==24660== Releasing lock... [2024-12-17 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:34:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:35:05 [end_date_ymd] => 2024-12-17 05:35:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:35:05' and `end` < '2024-12-17 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-17 05:35:17] Production.INFO: count ==78 [2024-12-17 05:35:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:35:05 - End Time 2024-12-17 05:35:05 [2024-12-17 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038706', 'tblTempUsageDetail_20' ) start [2024-12-17 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038706', 'tblTempUsageDetail_20' ) end [2024-12-17 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038706', 'tblTempVendorCDR_20' ) start [2024-12-17 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038706', 'tblTempVendorCDR_20' ) end [2024-12-17 05:35:17] Production.INFO: ProcessCDR(1,14038706,1,1,2) [2024-12-17 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038706', 'tblTempUsageDetail_20' ) start [2024-12-17 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038706', 'tblTempUsageDetail_20' ) end [2024-12-17 05:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:35:20] Production.INFO: ==24737== Releasing lock... [2024-12-17 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:35:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:36:05 [end_date_ymd] => 2024-12-17 05:36:05 [RateCDR] => 1 ) [2024-12-17 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 02:36:05' and `end` < '2024-12-17 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 05:36:18] Production.INFO: count ==77 [2024-12-17 05:36:18] Production.ERROR: pbx CDR StartTime 2024-12-17 02:36:05 - End Time 2024-12-17 05:36:05 [2024-12-17 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038711', 'tblTempUsageDetail_20' ) start [2024-12-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038711', 'tblTempUsageDetail_20' ) end [2024-12-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038711', 'tblTempVendorCDR_20' ) start [2024-12-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038711', 'tblTempVendorCDR_20' ) end [2024-12-17 05:36:18] Production.INFO: ProcessCDR(1,14038711,1,1,2) [2024-12-17 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038711', 'tblTempUsageDetail_20' ) start [2024-12-17 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038711', 'tblTempUsageDetail_20' ) end [2024-12-17 05:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:36:21] Production.INFO: ==24816== Releasing lock... [2024-12-17 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:36:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:37:04 [end_date_ymd] => 2024-12-17 05:37:04 [RateCDR] => 1 ) [2024-12-17 05: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 02:37:04' and `end` < '2024-12-17 05: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-17 05:37:17] Production.INFO: count ==76 [2024-12-17 05:37:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:37:04 - End Time 2024-12-17 05:37:04 [2024-12-17 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038716', 'tblTempUsageDetail_20' ) start [2024-12-17 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038716', 'tblTempUsageDetail_20' ) end [2024-12-17 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038716', 'tblTempVendorCDR_20' ) start [2024-12-17 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038716', 'tblTempVendorCDR_20' ) end [2024-12-17 05:37:17] Production.INFO: ProcessCDR(1,14038716,1,1,2) [2024-12-17 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038716', 'tblTempUsageDetail_20' ) start [2024-12-17 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038716', 'tblTempUsageDetail_20' ) end [2024-12-17 05:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:37:20] Production.INFO: ==24902== Releasing lock... [2024-12-17 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:37:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:38:05 [end_date_ymd] => 2024-12-17 05:38:05 [RateCDR] => 1 ) [2024-12-17 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 02:38:05' and `end` < '2024-12-17 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 05:38:18] Production.INFO: count ==76 [2024-12-17 05:38:18] Production.ERROR: pbx CDR StartTime 2024-12-17 02:38:05 - End Time 2024-12-17 05:38:05 [2024-12-17 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038721', 'tblTempUsageDetail_20' ) start [2024-12-17 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038721', 'tblTempUsageDetail_20' ) end [2024-12-17 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038721', 'tblTempVendorCDR_20' ) start [2024-12-17 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038721', 'tblTempVendorCDR_20' ) end [2024-12-17 05:38:18] Production.INFO: ProcessCDR(1,14038721,1,1,2) [2024-12-17 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038721', 'tblTempUsageDetail_20' ) start [2024-12-17 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038721', 'tblTempUsageDetail_20' ) end [2024-12-17 05:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:38:21] Production.INFO: ==24986== Releasing lock... [2024-12-17 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:38:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:39:04 [end_date_ymd] => 2024-12-17 05:39:04 [RateCDR] => 1 ) [2024-12-17 05: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-17 02:39:04' and `end` < '2024-12-17 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-17 05:39:16] Production.INFO: count ==76 [2024-12-17 05:39:16] Production.ERROR: pbx CDR StartTime 2024-12-17 02:39:04 - End Time 2024-12-17 05:39:04 [2024-12-17 05:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038726', 'tblTempUsageDetail_20' ) start [2024-12-17 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038726', 'tblTempUsageDetail_20' ) end [2024-12-17 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038726', 'tblTempVendorCDR_20' ) start [2024-12-17 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038726', 'tblTempVendorCDR_20' ) end [2024-12-17 05:39:16] Production.INFO: ProcessCDR(1,14038726,1,1,2) [2024-12-17 05:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038726', 'tblTempUsageDetail_20' ) start [2024-12-17 05:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038726', 'tblTempUsageDetail_20' ) end [2024-12-17 05:39:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:39:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:39:19] Production.INFO: ==25097== Releasing lock... [2024-12-17 05:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:39:19] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:40:05 [end_date_ymd] => 2024-12-17 05:40:05 [RateCDR] => 1 ) [2024-12-17 05:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 02:40:05' and `end` < '2024-12-17 05:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 05:40:18] Production.INFO: count ==79 [2024-12-17 05:40:18] Production.ERROR: pbx CDR StartTime 2024-12-17 02:40:05 - End Time 2024-12-17 05:40:05 [2024-12-17 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038731', 'tblTempUsageDetail_20' ) start [2024-12-17 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038731', 'tblTempUsageDetail_20' ) end [2024-12-17 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038731', 'tblTempVendorCDR_20' ) start [2024-12-17 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038731', 'tblTempVendorCDR_20' ) end [2024-12-17 05:40:18] Production.INFO: ProcessCDR(1,14038731,1,1,2) [2024-12-17 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038731', 'tblTempUsageDetail_20' ) start [2024-12-17 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038731', 'tblTempUsageDetail_20' ) end [2024-12-17 05:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:40:21] Production.INFO: ==25179== Releasing lock... [2024-12-17 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:40:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:41:04 [end_date_ymd] => 2024-12-17 05:41:04 [RateCDR] => 1 ) [2024-12-17 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-17 02:41:04' and `end` < '2024-12-17 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-17 05:41:17] Production.INFO: count ==80 [2024-12-17 05:41:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:41:04 - End Time 2024-12-17 05:41:04 [2024-12-17 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038737', 'tblTempUsageDetail_20' ) start [2024-12-17 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038737', 'tblTempUsageDetail_20' ) end [2024-12-17 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038737', 'tblTempVendorCDR_20' ) start [2024-12-17 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038737', 'tblTempVendorCDR_20' ) end [2024-12-17 05:41:17] Production.INFO: ProcessCDR(1,14038737,1,1,2) [2024-12-17 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038737', 'tblTempUsageDetail_20' ) start [2024-12-17 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038737', 'tblTempUsageDetail_20' ) end [2024-12-17 05:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:41:22] Production.INFO: ==25269== Releasing lock... [2024-12-17 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:41:22] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:42:05 [end_date_ymd] => 2024-12-17 05:42:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:42:05' and `end` < '2024-12-17 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-17 05:42:17] Production.INFO: count ==80 [2024-12-17 05:42:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:42:05 - End Time 2024-12-17 05:42:05 [2024-12-17 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038742', 'tblTempUsageDetail_20' ) start [2024-12-17 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038742', 'tblTempUsageDetail_20' ) end [2024-12-17 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038742', 'tblTempVendorCDR_20' ) start [2024-12-17 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038742', 'tblTempVendorCDR_20' ) end [2024-12-17 05:42:17] Production.INFO: ProcessCDR(1,14038742,1,1,2) [2024-12-17 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038742', 'tblTempUsageDetail_20' ) start [2024-12-17 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038742', 'tblTempUsageDetail_20' ) end [2024-12-17 05:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:42:20] Production.INFO: ==25359== Releasing lock... [2024-12-17 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:42:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:43:05 [end_date_ymd] => 2024-12-17 05:43:05 [RateCDR] => 1 ) [2024-12-17 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 02:43:05' and `end` < '2024-12-17 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 05:43:17] Production.INFO: count ==80 [2024-12-17 05:43:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:43:05 - End Time 2024-12-17 05:43:05 [2024-12-17 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038747', 'tblTempUsageDetail_20' ) start [2024-12-17 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038747', 'tblTempUsageDetail_20' ) end [2024-12-17 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038747', 'tblTempVendorCDR_20' ) start [2024-12-17 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038747', 'tblTempVendorCDR_20' ) end [2024-12-17 05:43:17] Production.INFO: ProcessCDR(1,14038747,1,1,2) [2024-12-17 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038747', 'tblTempUsageDetail_20' ) start [2024-12-17 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038747', 'tblTempUsageDetail_20' ) end [2024-12-17 05:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:43:20] Production.INFO: ==25448== Releasing lock... [2024-12-17 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:43:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:44:04 [end_date_ymd] => 2024-12-17 05:44:04 [RateCDR] => 1 ) [2024-12-17 05: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 02:44:04' and `end` < '2024-12-17 05: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-17 05:44:17] Production.INFO: count ==80 [2024-12-17 05:44:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:44:04 - End Time 2024-12-17 05:44:04 [2024-12-17 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038752', 'tblTempUsageDetail_20' ) start [2024-12-17 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038752', 'tblTempUsageDetail_20' ) end [2024-12-17 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038752', 'tblTempVendorCDR_20' ) start [2024-12-17 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038752', 'tblTempVendorCDR_20' ) end [2024-12-17 05:44:17] Production.INFO: ProcessCDR(1,14038752,1,1,2) [2024-12-17 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038752', 'tblTempUsageDetail_20' ) start [2024-12-17 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038752', 'tblTempUsageDetail_20' ) end [2024-12-17 05:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:44:20] Production.INFO: ==25529== Releasing lock... [2024-12-17 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:44:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:45:05 [end_date_ymd] => 2024-12-17 05:45:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:45:05' and `end` < '2024-12-17 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-17 05:45:17] Production.INFO: count ==80 [2024-12-17 05:45:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:45:05 - End Time 2024-12-17 05:45:05 [2024-12-17 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038757', 'tblTempUsageDetail_20' ) start [2024-12-17 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038757', 'tblTempUsageDetail_20' ) end [2024-12-17 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038757', 'tblTempVendorCDR_20' ) start [2024-12-17 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038757', 'tblTempVendorCDR_20' ) end [2024-12-17 05:45:17] Production.INFO: ProcessCDR(1,14038757,1,1,2) [2024-12-17 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038757', 'tblTempUsageDetail_20' ) start [2024-12-17 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038757', 'tblTempUsageDetail_20' ) end [2024-12-17 05:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:45:20] Production.INFO: ==25617== Releasing lock... [2024-12-17 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:45:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:46:05 [end_date_ymd] => 2024-12-17 05:46:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:46:05' and `end` < '2024-12-17 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-17 05:46:17] Production.INFO: count ==80 [2024-12-17 05:46:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:46:05 - End Time 2024-12-17 05:46:05 [2024-12-17 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038762', 'tblTempUsageDetail_20' ) start [2024-12-17 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038762', 'tblTempUsageDetail_20' ) end [2024-12-17 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038762', 'tblTempVendorCDR_20' ) start [2024-12-17 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038762', 'tblTempVendorCDR_20' ) end [2024-12-17 05:46:17] Production.INFO: ProcessCDR(1,14038762,1,1,2) [2024-12-17 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038762', 'tblTempUsageDetail_20' ) start [2024-12-17 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038762', 'tblTempUsageDetail_20' ) end [2024-12-17 05:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:46:21] Production.INFO: ==25733== Releasing lock... [2024-12-17 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:46:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:47:05 [end_date_ymd] => 2024-12-17 05:47:05 [RateCDR] => 1 ) [2024-12-17 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 02:47:05' and `end` < '2024-12-17 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 05:47:17] Production.INFO: count ==80 [2024-12-17 05:47:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:47:05 - End Time 2024-12-17 05:47:05 [2024-12-17 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038767', 'tblTempUsageDetail_20' ) start [2024-12-17 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038767', 'tblTempUsageDetail_20' ) end [2024-12-17 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038767', 'tblTempVendorCDR_20' ) start [2024-12-17 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038767', 'tblTempVendorCDR_20' ) end [2024-12-17 05:47:17] Production.INFO: ProcessCDR(1,14038767,1,1,2) [2024-12-17 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038767', 'tblTempUsageDetail_20' ) start [2024-12-17 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038767', 'tblTempUsageDetail_20' ) end [2024-12-17 05:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:47:20] Production.INFO: ==25845== Releasing lock... [2024-12-17 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:47:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:48:04 [end_date_ymd] => 2024-12-17 05:48:04 [RateCDR] => 1 ) [2024-12-17 05: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-17 02:48:04' and `end` < '2024-12-17 05: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-17 05:48:17] Production.INFO: count ==80 [2024-12-17 05:48:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:48:04 - End Time 2024-12-17 05:48:04 [2024-12-17 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038772', 'tblTempUsageDetail_20' ) start [2024-12-17 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038772', 'tblTempUsageDetail_20' ) end [2024-12-17 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038772', 'tblTempVendorCDR_20' ) start [2024-12-17 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038772', 'tblTempVendorCDR_20' ) end [2024-12-17 05:48:17] Production.INFO: ProcessCDR(1,14038772,1,1,2) [2024-12-17 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038772', 'tblTempUsageDetail_20' ) start [2024-12-17 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038772', 'tblTempUsageDetail_20' ) end [2024-12-17 05:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:48:20] Production.INFO: ==25954== Releasing lock... [2024-12-17 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:48:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:49:04 [end_date_ymd] => 2024-12-17 05:49:04 [RateCDR] => 1 ) [2024-12-17 05: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 02:49:04' and `end` < '2024-12-17 05: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-17 05:49:17] Production.INFO: count ==80 [2024-12-17 05:49:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:49:04 - End Time 2024-12-17 05:49:04 [2024-12-17 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038774', 'tblTempUsageDetail_20' ) start [2024-12-17 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038774', 'tblTempUsageDetail_20' ) end [2024-12-17 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038774', 'tblTempVendorCDR_20' ) start [2024-12-17 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038774', 'tblTempVendorCDR_20' ) end [2024-12-17 05:49:17] Production.INFO: ProcessCDR(1,14038774,1,1,2) [2024-12-17 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038774', 'tblTempUsageDetail_20' ) start [2024-12-17 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038774', 'tblTempUsageDetail_20' ) end [2024-12-17 05:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:49:20] Production.INFO: ==26064== Releasing lock... [2024-12-17 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:49:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:50:05 [end_date_ymd] => 2024-12-17 05:50:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:50:05' and `end` < '2024-12-17 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-17 05:50:17] Production.INFO: count ==76 [2024-12-17 05:50:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:50:05 - End Time 2024-12-17 05:50:05 [2024-12-17 05:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038782', 'tblTempUsageDetail_20' ) start [2024-12-17 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038782', 'tblTempUsageDetail_20' ) end [2024-12-17 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038782', 'tblTempVendorCDR_20' ) start [2024-12-17 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038782', 'tblTempVendorCDR_20' ) end [2024-12-17 05:50:17] Production.INFO: ProcessCDR(1,14038782,1,1,2) [2024-12-17 05:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038782', 'tblTempUsageDetail_20' ) start [2024-12-17 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038782', 'tblTempUsageDetail_20' ) end [2024-12-17 05:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:50:20] Production.INFO: ==26184== Releasing lock... [2024-12-17 05:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:50:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:51:05 [end_date_ymd] => 2024-12-17 05:51:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:51:05' and `end` < '2024-12-17 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-17 05:51:17] Production.INFO: count ==72 [2024-12-17 05:51:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:51:05 - End Time 2024-12-17 05:51:05 [2024-12-17 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038788', 'tblTempUsageDetail_20' ) start [2024-12-17 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038788', 'tblTempUsageDetail_20' ) end [2024-12-17 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038788', 'tblTempVendorCDR_20' ) start [2024-12-17 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038788', 'tblTempVendorCDR_20' ) end [2024-12-17 05:51:17] Production.INFO: ProcessCDR(1,14038788,1,1,2) [2024-12-17 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038788', 'tblTempUsageDetail_20' ) start [2024-12-17 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038788', 'tblTempUsageDetail_20' ) end [2024-12-17 05:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:51:20] Production.INFO: ==26300== Releasing lock... [2024-12-17 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:51:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:52:05 [end_date_ymd] => 2024-12-17 05:52:05 [RateCDR] => 1 ) [2024-12-17 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 02:52:05' and `end` < '2024-12-17 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 05:52:17] Production.INFO: count ==72 [2024-12-17 05:52:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:52:05 - End Time 2024-12-17 05:52:05 [2024-12-17 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038793', 'tblTempUsageDetail_20' ) start [2024-12-17 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038793', 'tblTempUsageDetail_20' ) end [2024-12-17 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038793', 'tblTempVendorCDR_20' ) start [2024-12-17 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038793', 'tblTempVendorCDR_20' ) end [2024-12-17 05:52:17] Production.INFO: ProcessCDR(1,14038793,1,1,2) [2024-12-17 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038793', 'tblTempUsageDetail_20' ) start [2024-12-17 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038793', 'tblTempUsageDetail_20' ) end [2024-12-17 05:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:52:21] Production.INFO: ==26412== Releasing lock... [2024-12-17 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:52:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:53:05 [end_date_ymd] => 2024-12-17 05:53:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:53:05' and `end` < '2024-12-17 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-17 05:53:17] Production.INFO: count ==72 [2024-12-17 05:53:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:53:05 - End Time 2024-12-17 05:53:05 [2024-12-17 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038798', 'tblTempUsageDetail_20' ) start [2024-12-17 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038798', 'tblTempUsageDetail_20' ) end [2024-12-17 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038798', 'tblTempVendorCDR_20' ) start [2024-12-17 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038798', 'tblTempVendorCDR_20' ) end [2024-12-17 05:53:17] Production.INFO: ProcessCDR(1,14038798,1,1,2) [2024-12-17 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038798', 'tblTempUsageDetail_20' ) start [2024-12-17 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038798', 'tblTempUsageDetail_20' ) end [2024-12-17 05:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:53:20] Production.INFO: ==26513== Releasing lock... [2024-12-17 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:53:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:54:05 [end_date_ymd] => 2024-12-17 05:54:05 [RateCDR] => 1 ) [2024-12-17 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 02:54:05' and `end` < '2024-12-17 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 05:54:18] Production.INFO: count ==72 [2024-12-17 05:54:18] Production.ERROR: pbx CDR StartTime 2024-12-17 02:54:05 - End Time 2024-12-17 05:54:05 [2024-12-17 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038803', 'tblTempUsageDetail_20' ) start [2024-12-17 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038803', 'tblTempUsageDetail_20' ) end [2024-12-17 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038803', 'tblTempVendorCDR_20' ) start [2024-12-17 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038803', 'tblTempVendorCDR_20' ) end [2024-12-17 05:54:18] Production.INFO: ProcessCDR(1,14038803,1,1,2) [2024-12-17 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038803', 'tblTempUsageDetail_20' ) start [2024-12-17 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038803', 'tblTempUsageDetail_20' ) end [2024-12-17 05:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:54:21] Production.INFO: ==26621== Releasing lock... [2024-12-17 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:54:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:55:04 [end_date_ymd] => 2024-12-17 05:55:04 [RateCDR] => 1 ) [2024-12-17 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-17 02:55:04' and `end` < '2024-12-17 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-17 05:55:16] Production.INFO: count ==72 [2024-12-17 05:55:16] Production.ERROR: pbx CDR StartTime 2024-12-17 02:55:04 - End Time 2024-12-17 05:55:04 [2024-12-17 05:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038808', 'tblTempUsageDetail_20' ) start [2024-12-17 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038808', 'tblTempUsageDetail_20' ) end [2024-12-17 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038808', 'tblTempVendorCDR_20' ) start [2024-12-17 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038808', 'tblTempVendorCDR_20' ) end [2024-12-17 05:55:16] Production.INFO: ProcessCDR(1,14038808,1,1,2) [2024-12-17 05:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038808', 'tblTempUsageDetail_20' ) start [2024-12-17 05:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038808', 'tblTempUsageDetail_20' ) end [2024-12-17 05:55:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:55:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:55:19] Production.INFO: ==26770== Releasing lock... [2024-12-17 05:55:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:55:19] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:56:05 [end_date_ymd] => 2024-12-17 05:56:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:56:05' and `end` < '2024-12-17 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-17 05:56:17] Production.INFO: count ==72 [2024-12-17 05:56:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:56:05 - End Time 2024-12-17 05:56:05 [2024-12-17 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038813', 'tblTempUsageDetail_20' ) start [2024-12-17 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038813', 'tblTempUsageDetail_20' ) end [2024-12-17 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038813', 'tblTempVendorCDR_20' ) start [2024-12-17 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038813', 'tblTempVendorCDR_20' ) end [2024-12-17 05:56:17] Production.INFO: ProcessCDR(1,14038813,1,1,2) [2024-12-17 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038813', 'tblTempUsageDetail_20' ) start [2024-12-17 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038813', 'tblTempUsageDetail_20' ) end [2024-12-17 05:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:56:20] Production.INFO: ==26879== Releasing lock... [2024-12-17 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:56:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:57:04 [end_date_ymd] => 2024-12-17 05:57:04 [RateCDR] => 1 ) [2024-12-17 05: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 02:57:04' and `end` < '2024-12-17 05: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-17 05:57:17] Production.INFO: count ==72 [2024-12-17 05:57:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:57:04 - End Time 2024-12-17 05:57:04 [2024-12-17 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038818', 'tblTempUsageDetail_20' ) start [2024-12-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038818', 'tblTempUsageDetail_20' ) end [2024-12-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038818', 'tblTempVendorCDR_20' ) start [2024-12-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038818', 'tblTempVendorCDR_20' ) end [2024-12-17 05:57:17] Production.INFO: ProcessCDR(1,14038818,1,1,2) [2024-12-17 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038818', 'tblTempUsageDetail_20' ) start [2024-12-17 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038818', 'tblTempUsageDetail_20' ) end [2024-12-17 05:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:57:20] Production.INFO: ==26988== Releasing lock... [2024-12-17 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:57:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:58:05 [end_date_ymd] => 2024-12-17 05:58:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:58:05' and `end` < '2024-12-17 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-17 05:58:17] Production.INFO: count ==72 [2024-12-17 05:58:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:58:05 - End Time 2024-12-17 05:58:05 [2024-12-17 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038823', 'tblTempUsageDetail_20' ) start [2024-12-17 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038823', 'tblTempUsageDetail_20' ) end [2024-12-17 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038823', 'tblTempVendorCDR_20' ) start [2024-12-17 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038823', 'tblTempVendorCDR_20' ) end [2024-12-17 05:58:17] Production.INFO: ProcessCDR(1,14038823,1,1,2) [2024-12-17 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038823', 'tblTempUsageDetail_20' ) start [2024-12-17 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038823', 'tblTempUsageDetail_20' ) end [2024-12-17 05:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:58:20] Production.INFO: ==27097== Releasing lock... [2024-12-17 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:58:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 02:59:05 [end_date_ymd] => 2024-12-17 05:59:05 [RateCDR] => 1 ) [2024-12-17 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-17 02:59:05' and `end` < '2024-12-17 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-17 05:59:17] Production.INFO: count ==72 [2024-12-17 05:59:17] Production.ERROR: pbx CDR StartTime 2024-12-17 02:59:05 - End Time 2024-12-17 05:59:05 [2024-12-17 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038828', 'tblTempUsageDetail_20' ) start [2024-12-17 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038828', 'tblTempUsageDetail_20' ) end [2024-12-17 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038828', 'tblTempVendorCDR_20' ) start [2024-12-17 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038828', 'tblTempVendorCDR_20' ) end [2024-12-17 05:59:17] Production.INFO: ProcessCDR(1,14038828,1,1,2) [2024-12-17 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038828', 'tblTempUsageDetail_20' ) start [2024-12-17 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038828', 'tblTempUsageDetail_20' ) end [2024-12-17 05:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 05:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 05:59:20] Production.INFO: ==27205== Releasing lock... [2024-12-17 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 05:59:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:00:05 [end_date_ymd] => 2024-12-17 06:00:05 [RateCDR] => 1 ) [2024-12-17 06:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:00:05' and `end` < '2024-12-17 06:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:00:17] Production.INFO: count ==72 [2024-12-17 06:00:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:00:05 - End Time 2024-12-17 06:00:05 [2024-12-17 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038834', 'tblTempUsageDetail_20' ) start [2024-12-17 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038834', 'tblTempUsageDetail_20' ) end [2024-12-17 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038834', 'tblTempVendorCDR_20' ) start [2024-12-17 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038834', 'tblTempVendorCDR_20' ) end [2024-12-17 06:00:17] Production.INFO: ProcessCDR(1,14038834,1,1,2) [2024-12-17 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038834', 'tblTempUsageDetail_20' ) start [2024-12-17 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038834', 'tblTempUsageDetail_20' ) end [2024-12-17 06:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:00:20] Production.INFO: ==27311== Releasing lock... [2024-12-17 06:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:00:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:01:05 [end_date_ymd] => 2024-12-17 06:01:05 [RateCDR] => 1 ) [2024-12-17 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-17 03:01:05' and `end` < '2024-12-17 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-17 06:01:17] Production.INFO: count ==72 [2024-12-17 06:01:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:01:05 - End Time 2024-12-17 06:01:05 [2024-12-17 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038839', 'tblTempUsageDetail_20' ) start [2024-12-17 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038839', 'tblTempUsageDetail_20' ) end [2024-12-17 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038839', 'tblTempVendorCDR_20' ) start [2024-12-17 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038839', 'tblTempVendorCDR_20' ) end [2024-12-17 06:01:17] Production.INFO: ProcessCDR(1,14038839,1,1,2) [2024-12-17 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038839', 'tblTempUsageDetail_20' ) start [2024-12-17 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038839', 'tblTempUsageDetail_20' ) end [2024-12-17 06:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:01:20] Production.INFO: ==27438== Releasing lock... [2024-12-17 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:01:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:02:04 [end_date_ymd] => 2024-12-17 06:02:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:02:04' and `end` < '2024-12-17 06: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-17 06:02:16] Production.INFO: count ==71 [2024-12-17 06:02:16] Production.ERROR: pbx CDR StartTime 2024-12-17 03:02:04 - End Time 2024-12-17 06:02:04 [2024-12-17 06:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038844', 'tblTempUsageDetail_20' ) start [2024-12-17 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038844', 'tblTempUsageDetail_20' ) end [2024-12-17 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038844', 'tblTempVendorCDR_20' ) start [2024-12-17 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038844', 'tblTempVendorCDR_20' ) end [2024-12-17 06:02:16] Production.INFO: ProcessCDR(1,14038844,1,1,2) [2024-12-17 06:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:02:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:02:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:02:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:02:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038844', 'tblTempUsageDetail_20' ) start [2024-12-17 06:02:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038844', 'tblTempUsageDetail_20' ) end [2024-12-17 06:02:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:02:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:02:19] Production.INFO: ==27548== Releasing lock... [2024-12-17 06:02:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:02:19] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:03:05 [end_date_ymd] => 2024-12-17 06:03:05 [RateCDR] => 1 ) [2024-12-17 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:03:05' and `end` < '2024-12-17 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:03:17] Production.INFO: count ==71 [2024-12-17 06:03:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:03:05 - End Time 2024-12-17 06:03:05 [2024-12-17 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038849', 'tblTempUsageDetail_20' ) start [2024-12-17 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038849', 'tblTempUsageDetail_20' ) end [2024-12-17 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038849', 'tblTempVendorCDR_20' ) start [2024-12-17 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038849', 'tblTempVendorCDR_20' ) end [2024-12-17 06:03:17] Production.INFO: ProcessCDR(1,14038849,1,1,2) [2024-12-17 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038849', 'tblTempUsageDetail_20' ) start [2024-12-17 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038849', 'tblTempUsageDetail_20' ) end [2024-12-17 06:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:03:21] Production.INFO: ==27654== Releasing lock... [2024-12-17 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:03:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:04:04 [end_date_ymd] => 2024-12-17 06:04:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:04:04' and `end` < '2024-12-17 06: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-17 06:04:16] Production.INFO: count ==71 [2024-12-17 06:04:16] Production.ERROR: pbx CDR StartTime 2024-12-17 03:04:04 - End Time 2024-12-17 06:04:04 [2024-12-17 06:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038854', 'tblTempUsageDetail_20' ) start [2024-12-17 06:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038854', 'tblTempUsageDetail_20' ) end [2024-12-17 06:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038854', 'tblTempVendorCDR_20' ) start [2024-12-17 06:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038854', 'tblTempVendorCDR_20' ) end [2024-12-17 06:04:16] Production.INFO: ProcessCDR(1,14038854,1,1,2) [2024-12-17 06:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:04:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:04:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:04:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038854', 'tblTempUsageDetail_20' ) start [2024-12-17 06:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038854', 'tblTempUsageDetail_20' ) end [2024-12-17 06:04:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:04:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:04:19] Production.INFO: ==27762== Releasing lock... [2024-12-17 06:04:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:04:19] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:05:05 [end_date_ymd] => 2024-12-17 06:05:05 [RateCDR] => 1 ) [2024-12-17 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:05:05' and `end` < '2024-12-17 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:05:17] Production.INFO: count ==71 [2024-12-17 06:05:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:05:05 - End Time 2024-12-17 06:05:05 [2024-12-17 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038859', 'tblTempUsageDetail_20' ) start [2024-12-17 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038859', 'tblTempUsageDetail_20' ) end [2024-12-17 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038859', 'tblTempVendorCDR_20' ) start [2024-12-17 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038859', 'tblTempVendorCDR_20' ) end [2024-12-17 06:05:17] Production.INFO: ProcessCDR(1,14038859,1,1,2) [2024-12-17 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038859', 'tblTempUsageDetail_20' ) start [2024-12-17 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038859', 'tblTempUsageDetail_20' ) end [2024-12-17 06:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:05:20] Production.INFO: ==27866== Releasing lock... [2024-12-17 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:05:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:06:05 [end_date_ymd] => 2024-12-17 06:06:05 [RateCDR] => 1 ) [2024-12-17 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-17 03:06:05' and `end` < '2024-12-17 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-17 06:06:18] Production.INFO: count ==71 [2024-12-17 06:06:18] Production.ERROR: pbx CDR StartTime 2024-12-17 03:06:05 - End Time 2024-12-17 06:06:05 [2024-12-17 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038864', 'tblTempUsageDetail_20' ) start [2024-12-17 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038864', 'tblTempUsageDetail_20' ) end [2024-12-17 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038864', 'tblTempVendorCDR_20' ) start [2024-12-17 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038864', 'tblTempVendorCDR_20' ) end [2024-12-17 06:06:18] Production.INFO: ProcessCDR(1,14038864,1,1,2) [2024-12-17 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038864', 'tblTempUsageDetail_20' ) start [2024-12-17 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038864', 'tblTempUsageDetail_20' ) end [2024-12-17 06:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:06:21] Production.INFO: ==27971== Releasing lock... [2024-12-17 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:06:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:07:05 [end_date_ymd] => 2024-12-17 06:07:05 [RateCDR] => 1 ) [2024-12-17 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:07:05' and `end` < '2024-12-17 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:07:18] Production.INFO: count ==71 [2024-12-17 06:07:18] Production.ERROR: pbx CDR StartTime 2024-12-17 03:07:05 - End Time 2024-12-17 06:07:05 [2024-12-17 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038869', 'tblTempUsageDetail_20' ) start [2024-12-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038869', 'tblTempUsageDetail_20' ) end [2024-12-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038869', 'tblTempVendorCDR_20' ) start [2024-12-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038869', 'tblTempVendorCDR_20' ) end [2024-12-17 06:07:18] Production.INFO: ProcessCDR(1,14038869,1,1,2) [2024-12-17 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038869', 'tblTempUsageDetail_20' ) start [2024-12-17 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038869', 'tblTempUsageDetail_20' ) end [2024-12-17 06:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:07:21] Production.INFO: ==28069== Releasing lock... [2024-12-17 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:07:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:08:05 [end_date_ymd] => 2024-12-17 06:08:05 [RateCDR] => 1 ) [2024-12-17 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-17 03:08:05' and `end` < '2024-12-17 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-17 06:08:18] Production.INFO: count ==71 [2024-12-17 06:08:18] Production.ERROR: pbx CDR StartTime 2024-12-17 03:08:05 - End Time 2024-12-17 06:08:05 [2024-12-17 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038874', 'tblTempUsageDetail_20' ) start [2024-12-17 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038874', 'tblTempUsageDetail_20' ) end [2024-12-17 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038874', 'tblTempVendorCDR_20' ) start [2024-12-17 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038874', 'tblTempVendorCDR_20' ) end [2024-12-17 06:08:18] Production.INFO: ProcessCDR(1,14038874,1,1,2) [2024-12-17 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038874', 'tblTempUsageDetail_20' ) start [2024-12-17 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038874', 'tblTempUsageDetail_20' ) end [2024-12-17 06:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:08:21] Production.INFO: ==28169== Releasing lock... [2024-12-17 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:08:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:09:04 [end_date_ymd] => 2024-12-17 06:09:04 [RateCDR] => 1 ) [2024-12-17 06:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:09:04' and `end` < '2024-12-17 06:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:09:17] Production.INFO: count ==71 [2024-12-17 06:09:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:09:04 - End Time 2024-12-17 06:09:04 [2024-12-17 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038879', 'tblTempUsageDetail_20' ) start [2024-12-17 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038879', 'tblTempUsageDetail_20' ) end [2024-12-17 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038879', 'tblTempVendorCDR_20' ) start [2024-12-17 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038879', 'tblTempVendorCDR_20' ) end [2024-12-17 06:09:17] Production.INFO: ProcessCDR(1,14038879,1,1,2) [2024-12-17 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038879', 'tblTempUsageDetail_20' ) start [2024-12-17 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038879', 'tblTempUsageDetail_20' ) end [2024-12-17 06:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:09:20] Production.INFO: ==28264== Releasing lock... [2024-12-17 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:09:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:10:06 [end_date_ymd] => 2024-12-17 06:10:06 [RateCDR] => 1 ) [2024-12-17 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-17 03:10:06' and `end` < '2024-12-17 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-17 06:10:18] Production.INFO: count ==69 [2024-12-17 06:10:18] Production.ERROR: pbx CDR StartTime 2024-12-17 03:10:06 - End Time 2024-12-17 06:10:06 [2024-12-17 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038885', 'tblTempUsageDetail_20' ) start [2024-12-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038885', 'tblTempUsageDetail_20' ) end [2024-12-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038885', 'tblTempVendorCDR_20' ) start [2024-12-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038885', 'tblTempVendorCDR_20' ) end [2024-12-17 06:10:18] Production.INFO: ProcessCDR(1,14038885,1,1,2) [2024-12-17 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038885', 'tblTempUsageDetail_20' ) start [2024-12-17 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038885', 'tblTempUsageDetail_20' ) end [2024-12-17 06:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:10:21] Production.INFO: ==28367== Releasing lock... [2024-12-17 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:10:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:11:04 [end_date_ymd] => 2024-12-17 06:11:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:11:04' and `end` < '2024-12-17 06: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-17 06:11:17] Production.INFO: count ==69 [2024-12-17 06:11:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:11:04 - End Time 2024-12-17 06:11:04 [2024-12-17 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038890', 'tblTempUsageDetail_20' ) start [2024-12-17 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038890', 'tblTempUsageDetail_20' ) end [2024-12-17 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038890', 'tblTempVendorCDR_20' ) start [2024-12-17 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038890', 'tblTempVendorCDR_20' ) end [2024-12-17 06:11:17] Production.INFO: ProcessCDR(1,14038890,1,1,2) [2024-12-17 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038890', 'tblTempUsageDetail_20' ) start [2024-12-17 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038890', 'tblTempUsageDetail_20' ) end [2024-12-17 06:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:11:20] Production.INFO: ==28507== Releasing lock... [2024-12-17 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:11:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:12:05 [end_date_ymd] => 2024-12-17 06:12:05 [RateCDR] => 1 ) [2024-12-17 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:12:05' and `end` < '2024-12-17 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:12:17] Production.INFO: count ==69 [2024-12-17 06:12:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:12:05 - End Time 2024-12-17 06:12:05 [2024-12-17 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038895', 'tblTempUsageDetail_20' ) start [2024-12-17 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038895', 'tblTempUsageDetail_20' ) end [2024-12-17 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038895', 'tblTempVendorCDR_20' ) start [2024-12-17 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038895', 'tblTempVendorCDR_20' ) end [2024-12-17 06:12:17] Production.INFO: ProcessCDR(1,14038895,1,1,2) [2024-12-17 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038895', 'tblTempUsageDetail_20' ) start [2024-12-17 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038895', 'tblTempUsageDetail_20' ) end [2024-12-17 06:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:12:20] Production.INFO: ==28603== Releasing lock... [2024-12-17 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:12:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:13:05 [end_date_ymd] => 2024-12-17 06:13:05 [RateCDR] => 1 ) [2024-12-17 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-17 03:13:05' and `end` < '2024-12-17 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-17 06:13:17] Production.INFO: count ==69 [2024-12-17 06:13:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:13:05 - End Time 2024-12-17 06:13:05 [2024-12-17 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038900', 'tblTempUsageDetail_20' ) start [2024-12-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038900', 'tblTempUsageDetail_20' ) end [2024-12-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038900', 'tblTempVendorCDR_20' ) start [2024-12-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038900', 'tblTempVendorCDR_20' ) end [2024-12-17 06:13:17] Production.INFO: ProcessCDR(1,14038900,1,1,2) [2024-12-17 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038900', 'tblTempUsageDetail_20' ) start [2024-12-17 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038900', 'tblTempUsageDetail_20' ) end [2024-12-17 06:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:13:20] Production.INFO: ==28702== Releasing lock... [2024-12-17 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:13:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:14:05 [end_date_ymd] => 2024-12-17 06:14:05 [RateCDR] => 1 ) [2024-12-17 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:14:05' and `end` < '2024-12-17 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:14:17] Production.INFO: count ==69 [2024-12-17 06:14:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:14:05 - End Time 2024-12-17 06:14:05 [2024-12-17 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038905', 'tblTempUsageDetail_20' ) start [2024-12-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038905', 'tblTempUsageDetail_20' ) end [2024-12-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038905', 'tblTempVendorCDR_20' ) start [2024-12-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038905', 'tblTempVendorCDR_20' ) end [2024-12-17 06:14:17] Production.INFO: ProcessCDR(1,14038905,1,1,2) [2024-12-17 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038905', 'tblTempUsageDetail_20' ) start [2024-12-17 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038905', 'tblTempUsageDetail_20' ) end [2024-12-17 06:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:14:20] Production.INFO: ==28800== Releasing lock... [2024-12-17 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:14:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:15:05 [end_date_ymd] => 2024-12-17 06:15:05 [RateCDR] => 1 ) [2024-12-17 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:15:05' and `end` < '2024-12-17 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:15:17] Production.INFO: count ==69 [2024-12-17 06:15:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:15:05 - End Time 2024-12-17 06:15:05 [2024-12-17 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038910', 'tblTempUsageDetail_20' ) start [2024-12-17 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038910', 'tblTempUsageDetail_20' ) end [2024-12-17 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038910', 'tblTempVendorCDR_20' ) start [2024-12-17 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038910', 'tblTempVendorCDR_20' ) end [2024-12-17 06:15:17] Production.INFO: ProcessCDR(1,14038910,1,1,2) [2024-12-17 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038910', 'tblTempUsageDetail_20' ) start [2024-12-17 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038910', 'tblTempUsageDetail_20' ) end [2024-12-17 06:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:15:20] Production.INFO: ==28903== Releasing lock... [2024-12-17 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:15:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:16:05 [end_date_ymd] => 2024-12-17 06:16:05 [RateCDR] => 1 ) [2024-12-17 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-17 03:16:05' and `end` < '2024-12-17 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-17 06:16:17] Production.INFO: count ==69 [2024-12-17 06:16:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:16:05 - End Time 2024-12-17 06:16:05 [2024-12-17 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038915', 'tblTempUsageDetail_20' ) start [2024-12-17 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038915', 'tblTempUsageDetail_20' ) end [2024-12-17 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038915', 'tblTempVendorCDR_20' ) start [2024-12-17 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038915', 'tblTempVendorCDR_20' ) end [2024-12-17 06:16:17] Production.INFO: ProcessCDR(1,14038915,1,1,2) [2024-12-17 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038915', 'tblTempUsageDetail_20' ) start [2024-12-17 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038915', 'tblTempUsageDetail_20' ) end [2024-12-17 06:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:16:21] Production.INFO: ==29004== Releasing lock... [2024-12-17 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:16:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:17:05 [end_date_ymd] => 2024-12-17 06:17:05 [RateCDR] => 1 ) [2024-12-17 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-17 03:17:05' and `end` < '2024-12-17 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-17 06:17:17] Production.INFO: count ==69 [2024-12-17 06:17:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:17:05 - End Time 2024-12-17 06:17:05 [2024-12-17 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038920', 'tblTempUsageDetail_20' ) start [2024-12-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038920', 'tblTempUsageDetail_20' ) end [2024-12-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038920', 'tblTempVendorCDR_20' ) start [2024-12-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038920', 'tblTempVendorCDR_20' ) end [2024-12-17 06:17:17] Production.INFO: ProcessCDR(1,14038920,1,1,2) [2024-12-17 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038920', 'tblTempUsageDetail_20' ) start [2024-12-17 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038920', 'tblTempUsageDetail_20' ) end [2024-12-17 06:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:17:20] Production.INFO: ==29101== Releasing lock... [2024-12-17 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:17:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:18:04 [end_date_ymd] => 2024-12-17 06:18:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:18:04' and `end` < '2024-12-17 06: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-17 06:18:16] Production.INFO: count ==69 [2024-12-17 06:18:16] Production.ERROR: pbx CDR StartTime 2024-12-17 03:18:04 - End Time 2024-12-17 06:18:04 [2024-12-17 06:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038925', 'tblTempUsageDetail_20' ) start [2024-12-17 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038925', 'tblTempUsageDetail_20' ) end [2024-12-17 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038925', 'tblTempVendorCDR_20' ) start [2024-12-17 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038925', 'tblTempVendorCDR_20' ) end [2024-12-17 06:18:16] Production.INFO: ProcessCDR(1,14038925,1,1,2) [2024-12-17 06:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:18:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038925', 'tblTempUsageDetail_20' ) start [2024-12-17 06:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038925', 'tblTempUsageDetail_20' ) end [2024-12-17 06:18:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:18:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:18:19] Production.INFO: ==29200== Releasing lock... [2024-12-17 06:18:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:18:19] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:19:04 [end_date_ymd] => 2024-12-17 06:19:04 [RateCDR] => 1 ) [2024-12-17 06:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:19:04' and `end` < '2024-12-17 06:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:19:16] Production.INFO: count ==69 [2024-12-17 06:19:16] Production.ERROR: pbx CDR StartTime 2024-12-17 03:19:04 - End Time 2024-12-17 06:19:04 [2024-12-17 06:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038930', 'tblTempUsageDetail_20' ) start [2024-12-17 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038930', 'tblTempUsageDetail_20' ) end [2024-12-17 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038930', 'tblTempVendorCDR_20' ) start [2024-12-17 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038930', 'tblTempVendorCDR_20' ) end [2024-12-17 06:19:16] Production.INFO: ProcessCDR(1,14038930,1,1,2) [2024-12-17 06:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:19:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038930', 'tblTempUsageDetail_20' ) start [2024-12-17 06:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038930', 'tblTempUsageDetail_20' ) end [2024-12-17 06:19:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:19:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:19:19] Production.INFO: ==29301== Releasing lock... [2024-12-17 06:19:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:19:19] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:20:05 [end_date_ymd] => 2024-12-17 06:20:05 [RateCDR] => 1 ) [2024-12-17 06: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 03:20:05' and `end` < '2024-12-17 06: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-17 06:20:18] Production.INFO: count ==63 [2024-12-17 06:20:18] Production.ERROR: pbx CDR StartTime 2024-12-17 03:20:05 - End Time 2024-12-17 06:20:05 [2024-12-17 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038936', 'tblTempUsageDetail_20' ) start [2024-12-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038936', 'tblTempUsageDetail_20' ) end [2024-12-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038936', 'tblTempVendorCDR_20' ) start [2024-12-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038936', 'tblTempVendorCDR_20' ) end [2024-12-17 06:20:18] Production.INFO: ProcessCDR(1,14038936,1,1,2) [2024-12-17 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038936', 'tblTempUsageDetail_20' ) start [2024-12-17 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038936', 'tblTempUsageDetail_20' ) end [2024-12-17 06:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:20:21] Production.INFO: ==29400== Releasing lock... [2024-12-17 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:20:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:21:04 [end_date_ymd] => 2024-12-17 06:21:04 [RateCDR] => 1 ) [2024-12-17 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-17 03:21:04' and `end` < '2024-12-17 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-17 06:21:16] Production.INFO: count ==61 [2024-12-17 06:21:16] Production.ERROR: pbx CDR StartTime 2024-12-17 03:21:04 - End Time 2024-12-17 06:21:04 [2024-12-17 06:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038941', 'tblTempUsageDetail_20' ) start [2024-12-17 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038941', 'tblTempUsageDetail_20' ) end [2024-12-17 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038941', 'tblTempVendorCDR_20' ) start [2024-12-17 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038941', 'tblTempVendorCDR_20' ) end [2024-12-17 06:21:16] Production.INFO: ProcessCDR(1,14038941,1,1,2) [2024-12-17 06:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038941', 'tblTempUsageDetail_20' ) start [2024-12-17 06:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038941', 'tblTempUsageDetail_20' ) end [2024-12-17 06:21:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:21:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:21:19] Production.INFO: ==29501== Releasing lock... [2024-12-17 06:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:21:19] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:22:05 [end_date_ymd] => 2024-12-17 06:22:05 [RateCDR] => 1 ) [2024-12-17 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-17 03:22:05' and `end` < '2024-12-17 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-17 06:22:17] Production.INFO: count ==61 [2024-12-17 06:22:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:22:05 - End Time 2024-12-17 06:22:05 [2024-12-17 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038946', 'tblTempUsageDetail_20' ) start [2024-12-17 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038946', 'tblTempUsageDetail_20' ) end [2024-12-17 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038946', 'tblTempVendorCDR_20' ) start [2024-12-17 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038946', 'tblTempVendorCDR_20' ) end [2024-12-17 06:22:17] Production.INFO: ProcessCDR(1,14038946,1,1,2) [2024-12-17 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038946', 'tblTempUsageDetail_20' ) start [2024-12-17 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038946', 'tblTempUsageDetail_20' ) end [2024-12-17 06:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:22:20] Production.INFO: ==29600== Releasing lock... [2024-12-17 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:22:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:23:04 [end_date_ymd] => 2024-12-17 06:23:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:23:04' and `end` < '2024-12-17 06: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-17 06:23:16] Production.INFO: count ==61 [2024-12-17 06:23:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:23:04 - End Time 2024-12-17 06:23:04 [2024-12-17 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038951', 'tblTempUsageDetail_20' ) start [2024-12-17 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038951', 'tblTempUsageDetail_20' ) end [2024-12-17 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038951', 'tblTempVendorCDR_20' ) start [2024-12-17 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038951', 'tblTempVendorCDR_20' ) end [2024-12-17 06:23:17] Production.INFO: ProcessCDR(1,14038951,1,1,2) [2024-12-17 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038951', 'tblTempUsageDetail_20' ) start [2024-12-17 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038951', 'tblTempUsageDetail_20' ) end [2024-12-17 06:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:23:20] Production.INFO: ==29699== Releasing lock... [2024-12-17 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:23:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:24:05 [end_date_ymd] => 2024-12-17 06:24:05 [RateCDR] => 1 ) [2024-12-17 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:24:05' and `end` < '2024-12-17 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:24:17] Production.INFO: count ==61 [2024-12-17 06:24:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:24:05 - End Time 2024-12-17 06:24:05 [2024-12-17 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038956', 'tblTempUsageDetail_20' ) start [2024-12-17 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038956', 'tblTempUsageDetail_20' ) end [2024-12-17 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038956', 'tblTempVendorCDR_20' ) start [2024-12-17 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038956', 'tblTempVendorCDR_20' ) end [2024-12-17 06:24:17] Production.INFO: ProcessCDR(1,14038956,1,1,2) [2024-12-17 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038956', 'tblTempUsageDetail_20' ) start [2024-12-17 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038956', 'tblTempUsageDetail_20' ) end [2024-12-17 06:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:24:20] Production.INFO: ==29796== Releasing lock... [2024-12-17 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:24:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:25:04 [end_date_ymd] => 2024-12-17 06:25:04 [RateCDR] => 1 ) [2024-12-17 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-17 03:25:04' and `end` < '2024-12-17 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-17 06:25:16] Production.INFO: count ==61 [2024-12-17 06:25:16] Production.ERROR: pbx CDR StartTime 2024-12-17 03:25:04 - End Time 2024-12-17 06:25:04 [2024-12-17 06:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038961', 'tblTempUsageDetail_20' ) start [2024-12-17 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038961', 'tblTempUsageDetail_20' ) end [2024-12-17 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038961', 'tblTempVendorCDR_20' ) start [2024-12-17 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038961', 'tblTempVendorCDR_20' ) end [2024-12-17 06:25:16] Production.INFO: ProcessCDR(1,14038961,1,1,2) [2024-12-17 06:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038961', 'tblTempUsageDetail_20' ) start [2024-12-17 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038961', 'tblTempUsageDetail_20' ) end [2024-12-17 06:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:25:20] Production.INFO: ==29895== Releasing lock... [2024-12-17 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:25:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:26:04 [end_date_ymd] => 2024-12-17 06:26:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:26:04' and `end` < '2024-12-17 06: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-17 06:26:17] Production.INFO: count ==61 [2024-12-17 06:26:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:26:04 - End Time 2024-12-17 06:26:04 [2024-12-17 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038966', 'tblTempUsageDetail_20' ) start [2024-12-17 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038966', 'tblTempUsageDetail_20' ) end [2024-12-17 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038966', 'tblTempVendorCDR_20' ) start [2024-12-17 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038966', 'tblTempVendorCDR_20' ) end [2024-12-17 06:26:17] Production.INFO: ProcessCDR(1,14038966,1,1,2) [2024-12-17 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038966', 'tblTempUsageDetail_20' ) start [2024-12-17 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038966', 'tblTempUsageDetail_20' ) end [2024-12-17 06:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:26:20] Production.INFO: ==30033== Releasing lock... [2024-12-17 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:26:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:27:05 [end_date_ymd] => 2024-12-17 06:27:05 [RateCDR] => 1 ) [2024-12-17 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:27:05' and `end` < '2024-12-17 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:27:17] Production.INFO: count ==61 [2024-12-17 06:27:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:27:05 - End Time 2024-12-17 06:27:05 [2024-12-17 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038971', 'tblTempUsageDetail_20' ) start [2024-12-17 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038971', 'tblTempUsageDetail_20' ) end [2024-12-17 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038971', 'tblTempVendorCDR_20' ) start [2024-12-17 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038971', 'tblTempVendorCDR_20' ) end [2024-12-17 06:27:17] Production.INFO: ProcessCDR(1,14038971,1,1,2) [2024-12-17 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038971', 'tblTempUsageDetail_20' ) start [2024-12-17 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038971', 'tblTempUsageDetail_20' ) end [2024-12-17 06:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:27:20] Production.INFO: ==30131== Releasing lock... [2024-12-17 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:27:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:28:05 [end_date_ymd] => 2024-12-17 06:28:05 [RateCDR] => 1 ) [2024-12-17 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-17 03:28:05' and `end` < '2024-12-17 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-17 06:28:17] Production.INFO: count ==61 [2024-12-17 06:28:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:28:05 - End Time 2024-12-17 06:28:05 [2024-12-17 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038976', 'tblTempUsageDetail_20' ) start [2024-12-17 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038976', 'tblTempUsageDetail_20' ) end [2024-12-17 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038976', 'tblTempVendorCDR_20' ) start [2024-12-17 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038976', 'tblTempVendorCDR_20' ) end [2024-12-17 06:28:17] Production.INFO: ProcessCDR(1,14038976,1,1,2) [2024-12-17 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038976', 'tblTempUsageDetail_20' ) start [2024-12-17 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038976', 'tblTempUsageDetail_20' ) end [2024-12-17 06:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:28:20] Production.INFO: ==30229== Releasing lock... [2024-12-17 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:28:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:29:05 [end_date_ymd] => 2024-12-17 06:29:05 [RateCDR] => 1 ) [2024-12-17 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:29:05' and `end` < '2024-12-17 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:29:17] Production.INFO: count ==68 [2024-12-17 06:29:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:29:05 - End Time 2024-12-17 06:29:05 [2024-12-17 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038981', 'tblTempUsageDetail_20' ) start [2024-12-17 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038981', 'tblTempUsageDetail_20' ) end [2024-12-17 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038981', 'tblTempVendorCDR_20' ) start [2024-12-17 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038981', 'tblTempVendorCDR_20' ) end [2024-12-17 06:29:17] Production.INFO: ProcessCDR(1,14038981,1,1,2) [2024-12-17 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038981', 'tblTempUsageDetail_20' ) start [2024-12-17 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038981', 'tblTempUsageDetail_20' ) end [2024-12-17 06:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:29:20] Production.INFO: ==30320== Releasing lock... [2024-12-17 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:29:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:30:05 [end_date_ymd] => 2024-12-17 06:30:05 [RateCDR] => 1 ) [2024-12-17 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-17 03:30:05' and `end` < '2024-12-17 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-17 06:30:17] Production.INFO: count ==68 [2024-12-17 06:30:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:30:05 - End Time 2024-12-17 06:30:05 [2024-12-17 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038987', 'tblTempUsageDetail_20' ) start [2024-12-17 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038987', 'tblTempUsageDetail_20' ) end [2024-12-17 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038987', 'tblTempVendorCDR_20' ) start [2024-12-17 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038987', 'tblTempVendorCDR_20' ) end [2024-12-17 06:30:17] Production.INFO: ProcessCDR(1,14038987,1,1,2) [2024-12-17 06:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038987', 'tblTempUsageDetail_20' ) start [2024-12-17 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038987', 'tblTempUsageDetail_20' ) end [2024-12-17 06:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:30:20] Production.INFO: ==30394== Releasing lock... [2024-12-17 06:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:30:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:31:04 [end_date_ymd] => 2024-12-17 06:31:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:31:04' and `end` < '2024-12-17 06: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-17 06:31:17] Production.INFO: count ==69 [2024-12-17 06:31:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:31:04 - End Time 2024-12-17 06:31:04 [2024-12-17 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038992', 'tblTempUsageDetail_20' ) start [2024-12-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038992', 'tblTempUsageDetail_20' ) end [2024-12-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038992', 'tblTempVendorCDR_20' ) start [2024-12-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038992', 'tblTempVendorCDR_20' ) end [2024-12-17 06:31:17] Production.INFO: ProcessCDR(1,14038992,1,1,2) [2024-12-17 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038992', 'tblTempUsageDetail_20' ) start [2024-12-17 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038992', 'tblTempUsageDetail_20' ) end [2024-12-17 06:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:31:20] Production.INFO: ==30467== Releasing lock... [2024-12-17 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:31:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:32:04 [end_date_ymd] => 2024-12-17 06:32:04 [RateCDR] => 1 ) [2024-12-17 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-17 03:32:04' and `end` < '2024-12-17 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-17 06:32:17] Production.INFO: count ==69 [2024-12-17 06:32:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:32:04 - End Time 2024-12-17 06:32:04 [2024-12-17 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038997', 'tblTempUsageDetail_20' ) start [2024-12-17 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14038997', 'tblTempUsageDetail_20' ) end [2024-12-17 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038997', 'tblTempVendorCDR_20' ) start [2024-12-17 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14038997', 'tblTempVendorCDR_20' ) end [2024-12-17 06:32:17] Production.INFO: ProcessCDR(1,14038997,1,1,2) [2024-12-17 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14038997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14038997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14038997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14038997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038997', 'tblTempUsageDetail_20' ) start [2024-12-17 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14038997', 'tblTempUsageDetail_20' ) end [2024-12-17 06:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:32:20] Production.INFO: ==30537== Releasing lock... [2024-12-17 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:32:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:33:04 [end_date_ymd] => 2024-12-17 06:33:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:33:04' and `end` < '2024-12-17 06: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-17 06:33:17] Production.INFO: count ==69 [2024-12-17 06:33:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:33:04 - End Time 2024-12-17 06:33:04 [2024-12-17 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039002', 'tblTempUsageDetail_20' ) start [2024-12-17 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039002', 'tblTempUsageDetail_20' ) end [2024-12-17 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039002', 'tblTempVendorCDR_20' ) start [2024-12-17 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039002', 'tblTempVendorCDR_20' ) end [2024-12-17 06:33:17] Production.INFO: ProcessCDR(1,14039002,1,1,2) [2024-12-17 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039002', 'tblTempUsageDetail_20' ) start [2024-12-17 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039002', 'tblTempUsageDetail_20' ) end [2024-12-17 06:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:33:20] Production.INFO: ==30609== Releasing lock... [2024-12-17 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:33:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:34:04 [end_date_ymd] => 2024-12-17 06:34:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:34:04' and `end` < '2024-12-17 06: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-17 06:34:16] Production.INFO: count ==70 [2024-12-17 06:34:16] Production.ERROR: pbx CDR StartTime 2024-12-17 03:34:04 - End Time 2024-12-17 06:34:04 [2024-12-17 06:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039007', 'tblTempUsageDetail_20' ) start [2024-12-17 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039007', 'tblTempUsageDetail_20' ) end [2024-12-17 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039007', 'tblTempVendorCDR_20' ) start [2024-12-17 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039007', 'tblTempVendorCDR_20' ) end [2024-12-17 06:34:16] Production.INFO: ProcessCDR(1,14039007,1,1,2) [2024-12-17 06:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:34:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039007', 'tblTempUsageDetail_20' ) start [2024-12-17 06:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039007', 'tblTempUsageDetail_20' ) end [2024-12-17 06:34:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:34:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:34:19] Production.INFO: ==30679== Releasing lock... [2024-12-17 06:34:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:34:19] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:35:04 [end_date_ymd] => 2024-12-17 06:35:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:35:04' and `end` < '2024-12-17 06: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-17 06:35:16] Production.INFO: count ==70 [2024-12-17 06:35:16] Production.ERROR: pbx CDR StartTime 2024-12-17 03:35:04 - End Time 2024-12-17 06:35:04 [2024-12-17 06:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039012', 'tblTempUsageDetail_20' ) start [2024-12-17 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039012', 'tblTempUsageDetail_20' ) end [2024-12-17 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039012', 'tblTempVendorCDR_20' ) start [2024-12-17 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039012', 'tblTempVendorCDR_20' ) end [2024-12-17 06:35:16] Production.INFO: ProcessCDR(1,14039012,1,1,2) [2024-12-17 06:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039012', 'tblTempUsageDetail_20' ) start [2024-12-17 06:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039012', 'tblTempUsageDetail_20' ) end [2024-12-17 06:35:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:35:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:35:19] Production.INFO: ==30751== Releasing lock... [2024-12-17 06:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:35:19] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:36:05 [end_date_ymd] => 2024-12-17 06:36:05 [RateCDR] => 1 ) [2024-12-17 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:36:05' and `end` < '2024-12-17 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:36:17] Production.INFO: count ==70 [2024-12-17 06:36:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:36:05 - End Time 2024-12-17 06:36:05 [2024-12-17 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039017', 'tblTempUsageDetail_20' ) start [2024-12-17 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039017', 'tblTempUsageDetail_20' ) end [2024-12-17 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039017', 'tblTempVendorCDR_20' ) start [2024-12-17 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039017', 'tblTempVendorCDR_20' ) end [2024-12-17 06:36:17] Production.INFO: ProcessCDR(1,14039017,1,1,2) [2024-12-17 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039017', 'tblTempUsageDetail_20' ) start [2024-12-17 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039017', 'tblTempUsageDetail_20' ) end [2024-12-17 06:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:36:20] Production.INFO: ==30822== Releasing lock... [2024-12-17 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:36:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:37:04 [end_date_ymd] => 2024-12-17 06:37:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:37:04' and `end` < '2024-12-17 06: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-17 06:37:17] Production.INFO: count ==70 [2024-12-17 06:37:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:37:04 - End Time 2024-12-17 06:37:04 [2024-12-17 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039022', 'tblTempUsageDetail_20' ) start [2024-12-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039022', 'tblTempUsageDetail_20' ) end [2024-12-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039022', 'tblTempVendorCDR_20' ) start [2024-12-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039022', 'tblTempVendorCDR_20' ) end [2024-12-17 06:37:17] Production.INFO: ProcessCDR(1,14039022,1,1,2) [2024-12-17 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039022', 'tblTempUsageDetail_20' ) start [2024-12-17 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039022', 'tblTempUsageDetail_20' ) end [2024-12-17 06:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:37:20] Production.INFO: ==30892== Releasing lock... [2024-12-17 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:37:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:38:05 [end_date_ymd] => 2024-12-17 06:38:05 [RateCDR] => 1 ) [2024-12-17 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:38:05' and `end` < '2024-12-17 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:38:17] Production.INFO: count ==70 [2024-12-17 06:38:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:38:05 - End Time 2024-12-17 06:38:05 [2024-12-17 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039027', 'tblTempUsageDetail_20' ) start [2024-12-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039027', 'tblTempUsageDetail_20' ) end [2024-12-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039027', 'tblTempVendorCDR_20' ) start [2024-12-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039027', 'tblTempVendorCDR_20' ) end [2024-12-17 06:38:17] Production.INFO: ProcessCDR(1,14039027,1,1,2) [2024-12-17 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039027', 'tblTempUsageDetail_20' ) start [2024-12-17 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039027', 'tblTempUsageDetail_20' ) end [2024-12-17 06:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:38:20] Production.INFO: ==30967== Releasing lock... [2024-12-17 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:38:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:39:04 [end_date_ymd] => 2024-12-17 06:39:04 [RateCDR] => 1 ) [2024-12-17 06: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-17 03:39:04' and `end` < '2024-12-17 06: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-17 06:39:17] Production.INFO: count ==70 [2024-12-17 06:39:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:39:04 - End Time 2024-12-17 06:39:04 [2024-12-17 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039032', 'tblTempUsageDetail_20' ) start [2024-12-17 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039032', 'tblTempUsageDetail_20' ) end [2024-12-17 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039032', 'tblTempVendorCDR_20' ) start [2024-12-17 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039032', 'tblTempVendorCDR_20' ) end [2024-12-17 06:39:17] Production.INFO: ProcessCDR(1,14039032,1,1,2) [2024-12-17 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039032', 'tblTempUsageDetail_20' ) start [2024-12-17 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039032', 'tblTempUsageDetail_20' ) end [2024-12-17 06:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:39:20] Production.INFO: ==31041== Releasing lock... [2024-12-17 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:39:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:40:05 [end_date_ymd] => 2024-12-17 06:40:05 [RateCDR] => 1 ) [2024-12-17 06:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:40:05' and `end` < '2024-12-17 06:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:40:17] Production.INFO: count ==72 [2024-12-17 06:40:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:40:05 - End Time 2024-12-17 06:40:05 [2024-12-17 06:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039038', 'tblTempUsageDetail_20' ) start [2024-12-17 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039038', 'tblTempUsageDetail_20' ) end [2024-12-17 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039038', 'tblTempVendorCDR_20' ) start [2024-12-17 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039038', 'tblTempVendorCDR_20' ) end [2024-12-17 06:40:17] Production.INFO: ProcessCDR(1,14039038,1,1,2) [2024-12-17 06:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039038', 'tblTempUsageDetail_20' ) start [2024-12-17 06:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039038', 'tblTempUsageDetail_20' ) end [2024-12-17 06:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:40:20] Production.INFO: ==31116== Releasing lock... [2024-12-17 06:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:40:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:41:05 [end_date_ymd] => 2024-12-17 06:41:05 [RateCDR] => 1 ) [2024-12-17 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-17 03:41:05' and `end` < '2024-12-17 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-17 06:41:17] Production.INFO: count ==72 [2024-12-17 06:41:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:41:05 - End Time 2024-12-17 06:41:05 [2024-12-17 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039043', 'tblTempUsageDetail_20' ) start [2024-12-17 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039043', 'tblTempUsageDetail_20' ) end [2024-12-17 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039043', 'tblTempVendorCDR_20' ) start [2024-12-17 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039043', 'tblTempVendorCDR_20' ) end [2024-12-17 06:41:17] Production.INFO: ProcessCDR(1,14039043,1,1,2) [2024-12-17 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039043', 'tblTempUsageDetail_20' ) start [2024-12-17 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039043', 'tblTempUsageDetail_20' ) end [2024-12-17 06:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:41:20] Production.INFO: ==31188== Releasing lock... [2024-12-17 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:41:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:42:04 [end_date_ymd] => 2024-12-17 06:42:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:42:04' and `end` < '2024-12-17 06: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-17 06:42:17] Production.INFO: count ==72 [2024-12-17 06:42:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:42:04 - End Time 2024-12-17 06:42:04 [2024-12-17 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039048', 'tblTempUsageDetail_20' ) start [2024-12-17 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039048', 'tblTempUsageDetail_20' ) end [2024-12-17 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039048', 'tblTempVendorCDR_20' ) start [2024-12-17 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039048', 'tblTempVendorCDR_20' ) end [2024-12-17 06:42:17] Production.INFO: ProcessCDR(1,14039048,1,1,2) [2024-12-17 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039048', 'tblTempUsageDetail_20' ) start [2024-12-17 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039048', 'tblTempUsageDetail_20' ) end [2024-12-17 06:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:42:20] Production.INFO: ==31297== Releasing lock... [2024-12-17 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:42:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:43:05 [end_date_ymd] => 2024-12-17 06:43:05 [RateCDR] => 1 ) [2024-12-17 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:43:05' and `end` < '2024-12-17 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:43:17] Production.INFO: count ==72 [2024-12-17 06:43:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:43:05 - End Time 2024-12-17 06:43:05 [2024-12-17 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039053', 'tblTempUsageDetail_20' ) start [2024-12-17 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039053', 'tblTempUsageDetail_20' ) end [2024-12-17 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039053', 'tblTempVendorCDR_20' ) start [2024-12-17 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039053', 'tblTempVendorCDR_20' ) end [2024-12-17 06:43:17] Production.INFO: ProcessCDR(1,14039053,1,1,2) [2024-12-17 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039053', 'tblTempUsageDetail_20' ) start [2024-12-17 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039053', 'tblTempUsageDetail_20' ) end [2024-12-17 06:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:43:20] Production.INFO: ==31366== Releasing lock... [2024-12-17 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:43:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:44:05 [end_date_ymd] => 2024-12-17 06:44:05 [RateCDR] => 1 ) [2024-12-17 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-17 03:44:05' and `end` < '2024-12-17 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-17 06:44:17] Production.INFO: count ==72 [2024-12-17 06:44:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:44:05 - End Time 2024-12-17 06:44:05 [2024-12-17 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039058', 'tblTempUsageDetail_20' ) start [2024-12-17 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039058', 'tblTempUsageDetail_20' ) end [2024-12-17 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039058', 'tblTempVendorCDR_20' ) start [2024-12-17 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039058', 'tblTempVendorCDR_20' ) end [2024-12-17 06:44:17] Production.INFO: ProcessCDR(1,14039058,1,1,2) [2024-12-17 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039058', 'tblTempUsageDetail_20' ) start [2024-12-17 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039058', 'tblTempUsageDetail_20' ) end [2024-12-17 06:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:44:20] Production.INFO: ==31441== Releasing lock... [2024-12-17 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:44:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:45:05 [end_date_ymd] => 2024-12-17 06:45:05 [RateCDR] => 1 ) [2024-12-17 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:45:05' and `end` < '2024-12-17 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:45:17] Production.INFO: count ==72 [2024-12-17 06:45:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:45:05 - End Time 2024-12-17 06:45:05 [2024-12-17 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039063', 'tblTempUsageDetail_20' ) start [2024-12-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039063', 'tblTempUsageDetail_20' ) end [2024-12-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039063', 'tblTempVendorCDR_20' ) start [2024-12-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039063', 'tblTempVendorCDR_20' ) end [2024-12-17 06:45:17] Production.INFO: ProcessCDR(1,14039063,1,1,2) [2024-12-17 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039063', 'tblTempUsageDetail_20' ) start [2024-12-17 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039063', 'tblTempUsageDetail_20' ) end [2024-12-17 06:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:45:20] Production.INFO: ==31511== Releasing lock... [2024-12-17 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:45:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:46:04 [end_date_ymd] => 2024-12-17 06:46:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:46:04' and `end` < '2024-12-17 06: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-17 06:46:16] Production.INFO: count ==72 [2024-12-17 06:46:16] Production.ERROR: pbx CDR StartTime 2024-12-17 03:46:04 - End Time 2024-12-17 06:46:04 [2024-12-17 06:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039068', 'tblTempUsageDetail_20' ) start [2024-12-17 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039068', 'tblTempUsageDetail_20' ) end [2024-12-17 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039068', 'tblTempVendorCDR_20' ) start [2024-12-17 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039068', 'tblTempVendorCDR_20' ) end [2024-12-17 06:46:16] Production.INFO: ProcessCDR(1,14039068,1,1,2) [2024-12-17 06:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:46:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:46:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:46:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039068', 'tblTempUsageDetail_20' ) start [2024-12-17 06:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039068', 'tblTempUsageDetail_20' ) end [2024-12-17 06:46:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:46:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:46:19] Production.INFO: ==31585== Releasing lock... [2024-12-17 06:46:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:46:19] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:47:04 [end_date_ymd] => 2024-12-17 06:47:04 [RateCDR] => 1 ) [2024-12-17 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-17 03:47:04' and `end` < '2024-12-17 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-17 06:47:16] Production.INFO: count ==72 [2024-12-17 06:47:16] Production.ERROR: pbx CDR StartTime 2024-12-17 03:47:04 - End Time 2024-12-17 06:47:04 [2024-12-17 06:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039072', 'tblTempUsageDetail_20' ) start [2024-12-17 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039072', 'tblTempUsageDetail_20' ) end [2024-12-17 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039072', 'tblTempVendorCDR_20' ) start [2024-12-17 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039072', 'tblTempVendorCDR_20' ) end [2024-12-17 06:47:16] Production.INFO: ProcessCDR(1,14039072,1,1,2) [2024-12-17 06:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039072', 'tblTempUsageDetail_20' ) start [2024-12-17 06:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039072', 'tblTempUsageDetail_20' ) end [2024-12-17 06:47:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:47:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:47:19] Production.INFO: ==31656== Releasing lock... [2024-12-17 06:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:47:19] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:48:05 [end_date_ymd] => 2024-12-17 06:48:05 [RateCDR] => 1 ) [2024-12-17 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-17 03:48:05' and `end` < '2024-12-17 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-17 06:48:18] Production.INFO: count ==72 [2024-12-17 06:48:18] Production.ERROR: pbx CDR StartTime 2024-12-17 03:48:05 - End Time 2024-12-17 06:48:05 [2024-12-17 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039078', 'tblTempUsageDetail_20' ) start [2024-12-17 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039078', 'tblTempUsageDetail_20' ) end [2024-12-17 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039078', 'tblTempVendorCDR_20' ) start [2024-12-17 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039078', 'tblTempVendorCDR_20' ) end [2024-12-17 06:48:18] Production.INFO: ProcessCDR(1,14039078,1,1,2) [2024-12-17 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039078', 'tblTempUsageDetail_20' ) start [2024-12-17 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039078', 'tblTempUsageDetail_20' ) end [2024-12-17 06:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:48:21] Production.INFO: ==31727== Releasing lock... [2024-12-17 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:48:21] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:49:04 [end_date_ymd] => 2024-12-17 06:49:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:49:04' and `end` < '2024-12-17 06: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-17 06:49:17] Production.INFO: count ==71 [2024-12-17 06:49:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:49:04 - End Time 2024-12-17 06:49:04 [2024-12-17 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039083', 'tblTempUsageDetail_20' ) start [2024-12-17 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039083', 'tblTempUsageDetail_20' ) end [2024-12-17 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039083', 'tblTempVendorCDR_20' ) start [2024-12-17 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039083', 'tblTempVendorCDR_20' ) end [2024-12-17 06:49:17] Production.INFO: ProcessCDR(1,14039083,1,1,2) [2024-12-17 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039083', 'tblTempUsageDetail_20' ) start [2024-12-17 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039083', 'tblTempUsageDetail_20' ) end [2024-12-17 06:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:49:20] Production.INFO: ==31800== Releasing lock... [2024-12-17 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:49:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:50:05 [end_date_ymd] => 2024-12-17 06:50:05 [RateCDR] => 1 ) [2024-12-17 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-17 03:50:05' and `end` < '2024-12-17 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-17 06:50:17] Production.INFO: count ==75 [2024-12-17 06:50:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:50:05 - End Time 2024-12-17 06:50:05 [2024-12-17 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039089', 'tblTempUsageDetail_20' ) start [2024-12-17 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039089', 'tblTempUsageDetail_20' ) end [2024-12-17 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039089', 'tblTempVendorCDR_20' ) start [2024-12-17 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039089', 'tblTempVendorCDR_20' ) end [2024-12-17 06:50:17] Production.INFO: ProcessCDR(1,14039089,1,1,2) [2024-12-17 06:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039089', 'tblTempUsageDetail_20' ) start [2024-12-17 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039089', 'tblTempUsageDetail_20' ) end [2024-12-17 06:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:50:20] Production.INFO: ==31874== Releasing lock... [2024-12-17 06:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:50:20] Production.INFO: 28 MB #Memory Used# [2024-12-17 06:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:51:04 [end_date_ymd] => 2024-12-17 06:51:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:51:04' and `end` < '2024-12-17 06: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-17 06:51:17] Production.INFO: count ==89 [2024-12-17 06:51:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:51:04 - End Time 2024-12-17 06:51:04 [2024-12-17 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039094', 'tblTempUsageDetail_20' ) start [2024-12-17 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039094', 'tblTempUsageDetail_20' ) end [2024-12-17 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039094', 'tblTempVendorCDR_20' ) start [2024-12-17 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039094', 'tblTempVendorCDR_20' ) end [2024-12-17 06:51:17] Production.INFO: ProcessCDR(1,14039094,1,1,2) [2024-12-17 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039094', 'tblTempUsageDetail_20' ) start [2024-12-17 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039094', 'tblTempUsageDetail_20' ) end [2024-12-17 06:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:51:20] Production.INFO: ==31945== Releasing lock... [2024-12-17 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:51:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:52:05 [end_date_ymd] => 2024-12-17 06:52:05 [RateCDR] => 1 ) [2024-12-17 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:52:05' and `end` < '2024-12-17 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:52:17] Production.INFO: count ==90 [2024-12-17 06:52:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:52:05 - End Time 2024-12-17 06:52:05 [2024-12-17 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039099', 'tblTempUsageDetail_20' ) start [2024-12-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039099', 'tblTempUsageDetail_20' ) end [2024-12-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039099', 'tblTempVendorCDR_20' ) start [2024-12-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039099', 'tblTempVendorCDR_20' ) end [2024-12-17 06:52:17] Production.INFO: ProcessCDR(1,14039099,1,1,2) [2024-12-17 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039099', 'tblTempUsageDetail_20' ) start [2024-12-17 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039099', 'tblTempUsageDetail_20' ) end [2024-12-17 06:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:52:22] Production.INFO: ==32015== Releasing lock... [2024-12-17 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:52:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:53:04 [end_date_ymd] => 2024-12-17 06:53:04 [RateCDR] => 1 ) [2024-12-17 06: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-17 03:53:04' and `end` < '2024-12-17 06: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-17 06:53:17] Production.INFO: count ==90 [2024-12-17 06:53:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:53:04 - End Time 2024-12-17 06:53:04 [2024-12-17 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039104', 'tblTempUsageDetail_20' ) start [2024-12-17 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039104', 'tblTempUsageDetail_20' ) end [2024-12-17 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039104', 'tblTempVendorCDR_20' ) start [2024-12-17 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039104', 'tblTempVendorCDR_20' ) end [2024-12-17 06:53:17] Production.INFO: ProcessCDR(1,14039104,1,1,2) [2024-12-17 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039104', 'tblTempUsageDetail_20' ) start [2024-12-17 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039104', 'tblTempUsageDetail_20' ) end [2024-12-17 06:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:53:20] Production.INFO: ==32084== Releasing lock... [2024-12-17 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:53:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 06:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:54:04 [end_date_ymd] => 2024-12-17 06:54:04 [RateCDR] => 1 ) [2024-12-17 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-17 03:54:04' and `end` < '2024-12-17 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-17 06:54:17] Production.INFO: count ==94 [2024-12-17 06:54:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:54:04 - End Time 2024-12-17 06:54:04 [2024-12-17 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039109', 'tblTempUsageDetail_20' ) start [2024-12-17 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039109', 'tblTempUsageDetail_20' ) end [2024-12-17 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039109', 'tblTempVendorCDR_20' ) start [2024-12-17 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039109', 'tblTempVendorCDR_20' ) end [2024-12-17 06:54:17] Production.INFO: ProcessCDR(1,14039109,1,1,2) [2024-12-17 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039109', 'tblTempUsageDetail_20' ) start [2024-12-17 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039109', 'tblTempUsageDetail_20' ) end [2024-12-17 06:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:54:20] Production.INFO: ==32159== Releasing lock... [2024-12-17 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:54:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:55:05 [end_date_ymd] => 2024-12-17 06:55:05 [RateCDR] => 1 ) [2024-12-17 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-17 03:55:05' and `end` < '2024-12-17 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-17 06:55:17] Production.INFO: count ==94 [2024-12-17 06:55:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:55:05 - End Time 2024-12-17 06:55:05 [2024-12-17 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039114', 'tblTempUsageDetail_20' ) start [2024-12-17 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039114', 'tblTempUsageDetail_20' ) end [2024-12-17 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039114', 'tblTempVendorCDR_20' ) start [2024-12-17 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039114', 'tblTempVendorCDR_20' ) end [2024-12-17 06:55:17] Production.INFO: ProcessCDR(1,14039114,1,1,2) [2024-12-17 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039114', 'tblTempUsageDetail_20' ) start [2024-12-17 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039114', 'tblTempUsageDetail_20' ) end [2024-12-17 06:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:55:20] Production.INFO: ==32232== Releasing lock... [2024-12-17 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:55:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 06:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:56:04 [end_date_ymd] => 2024-12-17 06:56:04 [RateCDR] => 1 ) [2024-12-17 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-17 03:56:04' and `end` < '2024-12-17 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-17 06:56:18] Production.INFO: count ==94 [2024-12-17 06:56:18] Production.ERROR: pbx CDR StartTime 2024-12-17 03:56:04 - End Time 2024-12-17 06:56:04 [2024-12-17 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039119', 'tblTempUsageDetail_20' ) start [2024-12-17 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039119', 'tblTempUsageDetail_20' ) end [2024-12-17 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039119', 'tblTempVendorCDR_20' ) start [2024-12-17 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039119', 'tblTempVendorCDR_20' ) end [2024-12-17 06:56:18] Production.INFO: ProcessCDR(1,14039119,1,1,2) [2024-12-17 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039119', 'tblTempUsageDetail_20' ) start [2024-12-17 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039119', 'tblTempUsageDetail_20' ) end [2024-12-17 06:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:56:21] Production.INFO: ==32304== Releasing lock... [2024-12-17 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:56:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:57:05 [end_date_ymd] => 2024-12-17 06:57:05 [RateCDR] => 1 ) [2024-12-17 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-17 03:57:05' and `end` < '2024-12-17 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-17 06:57:17] Production.INFO: count ==94 [2024-12-17 06:57:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:57:05 - End Time 2024-12-17 06:57:05 [2024-12-17 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039124', 'tblTempUsageDetail_20' ) start [2024-12-17 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039124', 'tblTempUsageDetail_20' ) end [2024-12-17 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039124', 'tblTempVendorCDR_20' ) start [2024-12-17 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039124', 'tblTempVendorCDR_20' ) end [2024-12-17 06:57:17] Production.INFO: ProcessCDR(1,14039124,1,1,2) [2024-12-17 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039124', 'tblTempUsageDetail_20' ) start [2024-12-17 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039124', 'tblTempUsageDetail_20' ) end [2024-12-17 06:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:57:20] Production.INFO: ==32374== Releasing lock... [2024-12-17 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:57:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 06:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:58:04 [end_date_ymd] => 2024-12-17 06:58:04 [RateCDR] => 1 ) [2024-12-17 06: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 03:58:04' and `end` < '2024-12-17 06: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-17 06:58:17] Production.INFO: count ==94 [2024-12-17 06:58:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:58:04 - End Time 2024-12-17 06:58:04 [2024-12-17 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039129', 'tblTempUsageDetail_20' ) start [2024-12-17 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039129', 'tblTempUsageDetail_20' ) end [2024-12-17 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039129', 'tblTempVendorCDR_20' ) start [2024-12-17 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039129', 'tblTempVendorCDR_20' ) end [2024-12-17 06:58:17] Production.INFO: ProcessCDR(1,14039129,1,1,2) [2024-12-17 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039129', 'tblTempUsageDetail_20' ) start [2024-12-17 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039129', 'tblTempUsageDetail_20' ) end [2024-12-17 06:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:58:20] Production.INFO: ==32484== Releasing lock... [2024-12-17 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:58:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 06:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 03:59:04 [end_date_ymd] => 2024-12-17 06:59:04 [RateCDR] => 1 ) [2024-12-17 06:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 03:59:04' and `end` < '2024-12-17 06:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 06:59:17] Production.INFO: count ==95 [2024-12-17 06:59:17] Production.ERROR: pbx CDR StartTime 2024-12-17 03:59:04 - End Time 2024-12-17 06:59:04 [2024-12-17 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039134', 'tblTempUsageDetail_20' ) start [2024-12-17 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039134', 'tblTempUsageDetail_20' ) end [2024-12-17 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039134', 'tblTempVendorCDR_20' ) start [2024-12-17 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039134', 'tblTempVendorCDR_20' ) end [2024-12-17 06:59:17] Production.INFO: ProcessCDR(1,14039134,1,1,2) [2024-12-17 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039134', 'tblTempUsageDetail_20' ) start [2024-12-17 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039134', 'tblTempUsageDetail_20' ) end [2024-12-17 06:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 06:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 06:59:20] Production.INFO: ==32554== Releasing lock... [2024-12-17 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 06:59:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:00:05 [end_date_ymd] => 2024-12-17 07:00:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:00:05' and `end` < '2024-12-17 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-17 07:00:17] Production.INFO: count ==97 [2024-12-17 07:00:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:00:05 - End Time 2024-12-17 07:00:05 [2024-12-17 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039139', 'tblTempUsageDetail_20' ) start [2024-12-17 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039139', 'tblTempUsageDetail_20' ) end [2024-12-17 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039139', 'tblTempVendorCDR_20' ) start [2024-12-17 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039139', 'tblTempVendorCDR_20' ) end [2024-12-17 07:00:17] Production.INFO: ProcessCDR(1,14039139,1,1,2) [2024-12-17 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039139', 'tblTempUsageDetail_20' ) start [2024-12-17 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039139', 'tblTempUsageDetail_20' ) end [2024-12-17 07:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:00:20] Production.INFO: ==32627== Releasing lock... [2024-12-17 07:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:00:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 07:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:01:04 [end_date_ymd] => 2024-12-17 07:01:04 [RateCDR] => 1 ) [2024-12-17 07: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 04:01:04' and `end` < '2024-12-17 07: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-17 07:01:17] Production.INFO: count ==101 [2024-12-17 07:01:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:01:04 - End Time 2024-12-17 07:01:04 [2024-12-17 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039145', 'tblTempUsageDetail_20' ) start [2024-12-17 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039145', 'tblTempUsageDetail_20' ) end [2024-12-17 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039145', 'tblTempVendorCDR_20' ) start [2024-12-17 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039145', 'tblTempVendorCDR_20' ) end [2024-12-17 07:01:17] Production.INFO: ProcessCDR(1,14039145,1,1,2) [2024-12-17 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039145', 'tblTempUsageDetail_20' ) start [2024-12-17 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039145', 'tblTempUsageDetail_20' ) end [2024-12-17 07:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:01:20] Production.INFO: ==334== Releasing lock... [2024-12-17 07:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:01:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 07:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:02:04 [end_date_ymd] => 2024-12-17 07:02:04 [RateCDR] => 1 ) [2024-12-17 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-17 04:02:04' and `end` < '2024-12-17 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-17 07:02:16] Production.INFO: count ==101 [2024-12-17 07:02:16] Production.ERROR: pbx CDR StartTime 2024-12-17 04:02:04 - End Time 2024-12-17 07:02:04 [2024-12-17 07:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039150', 'tblTempUsageDetail_20' ) start [2024-12-17 07:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039150', 'tblTempUsageDetail_20' ) end [2024-12-17 07:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039150', 'tblTempVendorCDR_20' ) start [2024-12-17 07:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039150', 'tblTempVendorCDR_20' ) end [2024-12-17 07:02:16] Production.INFO: ProcessCDR(1,14039150,1,1,2) [2024-12-17 07:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:02:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:02:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:02:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:02:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039150', 'tblTempUsageDetail_20' ) start [2024-12-17 07:02:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039150', 'tblTempUsageDetail_20' ) end [2024-12-17 07:02:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:02:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:02:19] Production.INFO: ==415== Releasing lock... [2024-12-17 07:02:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:02:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 07:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:03:04 [end_date_ymd] => 2024-12-17 07:03:04 [RateCDR] => 1 ) [2024-12-17 07: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 04:03:04' and `end` < '2024-12-17 07: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-17 07:03:17] Production.INFO: count ==109 [2024-12-17 07:03:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:03:04 - End Time 2024-12-17 07:03:04 [2024-12-17 07:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039155', 'tblTempUsageDetail_20' ) start [2024-12-17 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039155', 'tblTempUsageDetail_20' ) end [2024-12-17 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039155', 'tblTempVendorCDR_20' ) start [2024-12-17 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039155', 'tblTempVendorCDR_20' ) end [2024-12-17 07:03:17] Production.INFO: ProcessCDR(1,14039155,1,1,2) [2024-12-17 07:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039155', 'tblTempUsageDetail_20' ) start [2024-12-17 07:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039155', 'tblTempUsageDetail_20' ) end [2024-12-17 07:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:03:20] Production.INFO: ==487== Releasing lock... [2024-12-17 07:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:03:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:04:05 [end_date_ymd] => 2024-12-17 07:04:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:04:05' and `end` < '2024-12-17 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-17 07:04:17] Production.INFO: count ==113 [2024-12-17 07:04:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:04:05 - End Time 2024-12-17 07:04:05 [2024-12-17 07:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039160', 'tblTempUsageDetail_20' ) start [2024-12-17 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039160', 'tblTempUsageDetail_20' ) end [2024-12-17 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039160', 'tblTempVendorCDR_20' ) start [2024-12-17 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039160', 'tblTempVendorCDR_20' ) end [2024-12-17 07:04:17] Production.INFO: ProcessCDR(1,14039160,1,1,2) [2024-12-17 07:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039160', 'tblTempUsageDetail_20' ) start [2024-12-17 07:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039160', 'tblTempUsageDetail_20' ) end [2024-12-17 07:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:04:20] Production.INFO: ==560== Releasing lock... [2024-12-17 07:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:04:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:05:05 [end_date_ymd] => 2024-12-17 07:05:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:05:05' and `end` < '2024-12-17 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-17 07:05:19] Production.INFO: count ==113 [2024-12-17 07:05:19] Production.ERROR: pbx CDR StartTime 2024-12-17 04:05:05 - End Time 2024-12-17 07:05:05 [2024-12-17 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039165', 'tblTempUsageDetail_20' ) start [2024-12-17 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039165', 'tblTempUsageDetail_20' ) end [2024-12-17 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039165', 'tblTempVendorCDR_20' ) start [2024-12-17 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039165', 'tblTempVendorCDR_20' ) end [2024-12-17 07:05:19] Production.INFO: ProcessCDR(1,14039165,1,1,2) [2024-12-17 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039165', 'tblTempUsageDetail_20' ) start [2024-12-17 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039165', 'tblTempUsageDetail_20' ) end [2024-12-17 07:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:05:22] Production.INFO: ==742== Releasing lock... [2024-12-17 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:05:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:06:05 [end_date_ymd] => 2024-12-17 07:06:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:06:05' and `end` < '2024-12-17 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-17 07:06:18] Production.INFO: count ==113 [2024-12-17 07:06:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:06:05 - End Time 2024-12-17 07:06:05 [2024-12-17 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039170', 'tblTempUsageDetail_20' ) start [2024-12-17 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039170', 'tblTempUsageDetail_20' ) end [2024-12-17 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039170', 'tblTempVendorCDR_20' ) start [2024-12-17 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039170', 'tblTempVendorCDR_20' ) end [2024-12-17 07:06:18] Production.INFO: ProcessCDR(1,14039170,1,1,2) [2024-12-17 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039170', 'tblTempUsageDetail_20' ) start [2024-12-17 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039170', 'tblTempUsageDetail_20' ) end [2024-12-17 07:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:06:21] Production.INFO: ==817== Releasing lock... [2024-12-17 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:06:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 07:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:07:04 [end_date_ymd] => 2024-12-17 07:07:04 [RateCDR] => 1 ) [2024-12-17 07: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-17 04:07:04' and `end` < '2024-12-17 07: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-17 07:07:16] Production.INFO: count ==113 [2024-12-17 07:07:16] Production.ERROR: pbx CDR StartTime 2024-12-17 04:07:04 - End Time 2024-12-17 07:07:04 [2024-12-17 07:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039175', 'tblTempUsageDetail_20' ) start [2024-12-17 07:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039175', 'tblTempUsageDetail_20' ) end [2024-12-17 07:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039175', 'tblTempVendorCDR_20' ) start [2024-12-17 07:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039175', 'tblTempVendorCDR_20' ) end [2024-12-17 07:07:16] Production.INFO: ProcessCDR(1,14039175,1,1,2) [2024-12-17 07:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039175', 'tblTempUsageDetail_20' ) start [2024-12-17 07:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039175', 'tblTempUsageDetail_20' ) end [2024-12-17 07:07:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:07:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:07:19] Production.INFO: ==887== Releasing lock... [2024-12-17 07:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:07:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:08:05 [end_date_ymd] => 2024-12-17 07:08:05 [RateCDR] => 1 ) [2024-12-17 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 04:08:05' and `end` < '2024-12-17 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 07:08:17] Production.INFO: count ==113 [2024-12-17 07:08:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:08:05 - End Time 2024-12-17 07:08:05 [2024-12-17 07:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039180', 'tblTempUsageDetail_20' ) start [2024-12-17 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039180', 'tblTempUsageDetail_20' ) end [2024-12-17 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039180', 'tblTempVendorCDR_20' ) start [2024-12-17 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039180', 'tblTempVendorCDR_20' ) end [2024-12-17 07:08:17] Production.INFO: ProcessCDR(1,14039180,1,1,2) [2024-12-17 07:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039180', 'tblTempUsageDetail_20' ) start [2024-12-17 07:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039180', 'tblTempUsageDetail_20' ) end [2024-12-17 07:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:08:20] Production.INFO: ==1038== Releasing lock... [2024-12-17 07:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:08:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:09:05 [end_date_ymd] => 2024-12-17 07:09:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:09:05' and `end` < '2024-12-17 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-17 07:09:17] Production.INFO: count ==114 [2024-12-17 07:09:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:09:05 - End Time 2024-12-17 07:09:05 [2024-12-17 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039185', 'tblTempUsageDetail_20' ) start [2024-12-17 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039185', 'tblTempUsageDetail_20' ) end [2024-12-17 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039185', 'tblTempVendorCDR_20' ) start [2024-12-17 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039185', 'tblTempVendorCDR_20' ) end [2024-12-17 07:09:18] Production.INFO: ProcessCDR(1,14039185,1,1,2) [2024-12-17 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039185', 'tblTempUsageDetail_20' ) start [2024-12-17 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039185', 'tblTempUsageDetail_20' ) end [2024-12-17 07:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:09:22] Production.INFO: ==1108== Releasing lock... [2024-12-17 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:09:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:10:05 [end_date_ymd] => 2024-12-17 07:10:05 [RateCDR] => 1 ) [2024-12-17 07:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 04:10:05' and `end` < '2024-12-17 07:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 07:10:18] Production.INFO: count ==118 [2024-12-17 07:10:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:10:05 - End Time 2024-12-17 07:10:05 [2024-12-17 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039191', 'tblTempUsageDetail_20' ) start [2024-12-17 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039191', 'tblTempUsageDetail_20' ) end [2024-12-17 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039191', 'tblTempVendorCDR_20' ) start [2024-12-17 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039191', 'tblTempVendorCDR_20' ) end [2024-12-17 07:10:18] Production.INFO: ProcessCDR(1,14039191,1,1,2) [2024-12-17 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039191', 'tblTempUsageDetail_20' ) start [2024-12-17 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039191', 'tblTempUsageDetail_20' ) end [2024-12-17 07:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:10:21] Production.INFO: ==1190== Releasing lock... [2024-12-17 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:10:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-17 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:11:04 [end_date_ymd] => 2024-12-17 07:11:04 [RateCDR] => 1 ) [2024-12-17 07: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 04:11:04' and `end` < '2024-12-17 07: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-17 07:11:16] Production.INFO: count ==123 [2024-12-17 07:11:16] Production.ERROR: pbx CDR StartTime 2024-12-17 04:11:04 - End Time 2024-12-17 07:11:04 [2024-12-17 07:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039196', 'tblTempUsageDetail_20' ) start [2024-12-17 07:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039196', 'tblTempUsageDetail_20' ) end [2024-12-17 07:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039196', 'tblTempVendorCDR_20' ) start [2024-12-17 07:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039196', 'tblTempVendorCDR_20' ) end [2024-12-17 07:11:16] Production.INFO: ProcessCDR(1,14039196,1,1,2) [2024-12-17 07:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039196', 'tblTempUsageDetail_20' ) start [2024-12-17 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039196', 'tblTempUsageDetail_20' ) end [2024-12-17 07:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:11:21] Production.INFO: ==1273== Releasing lock... [2024-12-17 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:11:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:12:04 [end_date_ymd] => 2024-12-17 07:12:04 [RateCDR] => 1 ) [2024-12-17 07: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-17 04:12:04' and `end` < '2024-12-17 07: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-17 07:12:17] Production.INFO: count ==123 [2024-12-17 07:12:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:12:04 - End Time 2024-12-17 07:12:04 [2024-12-17 07:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039201', 'tblTempUsageDetail_20' ) start [2024-12-17 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039201', 'tblTempUsageDetail_20' ) end [2024-12-17 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039201', 'tblTempVendorCDR_20' ) start [2024-12-17 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039201', 'tblTempVendorCDR_20' ) end [2024-12-17 07:12:17] Production.INFO: ProcessCDR(1,14039201,1,1,2) [2024-12-17 07:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039201', 'tblTempUsageDetail_20' ) start [2024-12-17 07:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039201', 'tblTempUsageDetail_20' ) end [2024-12-17 07:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:12:20] Production.INFO: ==1423== Releasing lock... [2024-12-17 07:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:12:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:13:04 [end_date_ymd] => 2024-12-17 07:13:04 [RateCDR] => 1 ) [2024-12-17 07: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 04:13:04' and `end` < '2024-12-17 07: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-17 07:13:16] Production.INFO: count ==123 [2024-12-17 07:13:16] Production.ERROR: pbx CDR StartTime 2024-12-17 04:13:04 - End Time 2024-12-17 07:13:04 [2024-12-17 07:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039206', 'tblTempUsageDetail_20' ) start [2024-12-17 07:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039206', 'tblTempUsageDetail_20' ) end [2024-12-17 07:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039206', 'tblTempVendorCDR_20' ) start [2024-12-17 07:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039206', 'tblTempVendorCDR_20' ) end [2024-12-17 07:13:16] Production.INFO: ProcessCDR(1,14039206,1,1,2) [2024-12-17 07:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:13:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039206', 'tblTempUsageDetail_20' ) start [2024-12-17 07:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039206', 'tblTempUsageDetail_20' ) end [2024-12-17 07:13:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:13:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:13:19] Production.INFO: ==1574== Releasing lock... [2024-12-17 07:13:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:13:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:14:05 [end_date_ymd] => 2024-12-17 07:14:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:14:05' and `end` < '2024-12-17 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-17 07:14:18] Production.INFO: count ==123 [2024-12-17 07:14:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:14:05 - End Time 2024-12-17 07:14:05 [2024-12-17 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039211', 'tblTempUsageDetail_20' ) start [2024-12-17 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039211', 'tblTempUsageDetail_20' ) end [2024-12-17 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039211', 'tblTempVendorCDR_20' ) start [2024-12-17 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039211', 'tblTempVendorCDR_20' ) end [2024-12-17 07:14:18] Production.INFO: ProcessCDR(1,14039211,1,1,2) [2024-12-17 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039211', 'tblTempUsageDetail_20' ) start [2024-12-17 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039211', 'tblTempUsageDetail_20' ) end [2024-12-17 07:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:14:21] Production.INFO: ==1645== Releasing lock... [2024-12-17 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:14:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:15:04 [end_date_ymd] => 2024-12-17 07:15:04 [RateCDR] => 1 ) [2024-12-17 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-17 04:15:04' and `end` < '2024-12-17 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-17 07:15:17] Production.INFO: count ==123 [2024-12-17 07:15:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:15:04 - End Time 2024-12-17 07:15:04 [2024-12-17 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039216', 'tblTempUsageDetail_20' ) start [2024-12-17 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039216', 'tblTempUsageDetail_20' ) end [2024-12-17 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039216', 'tblTempVendorCDR_20' ) start [2024-12-17 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039216', 'tblTempVendorCDR_20' ) end [2024-12-17 07:15:17] Production.INFO: ProcessCDR(1,14039216,1,1,2) [2024-12-17 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039216', 'tblTempUsageDetail_20' ) start [2024-12-17 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039216', 'tblTempUsageDetail_20' ) end [2024-12-17 07:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:15:20] Production.INFO: ==1794== Releasing lock... [2024-12-17 07:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:15:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:16:05 [end_date_ymd] => 2024-12-17 07:16:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:16:05' and `end` < '2024-12-17 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-17 07:16:18] Production.INFO: count ==123 [2024-12-17 07:16:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:16:05 - End Time 2024-12-17 07:16:05 [2024-12-17 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039221', 'tblTempUsageDetail_20' ) start [2024-12-17 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039221', 'tblTempUsageDetail_20' ) end [2024-12-17 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039221', 'tblTempVendorCDR_20' ) start [2024-12-17 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039221', 'tblTempVendorCDR_20' ) end [2024-12-17 07:16:18] Production.INFO: ProcessCDR(1,14039221,1,1,2) [2024-12-17 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039221', 'tblTempUsageDetail_20' ) start [2024-12-17 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039221', 'tblTempUsageDetail_20' ) end [2024-12-17 07:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:16:21] Production.INFO: ==1873== Releasing lock... [2024-12-17 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:16:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:17:04 [end_date_ymd] => 2024-12-17 07:17:04 [RateCDR] => 1 ) [2024-12-17 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-17 04:17:04' and `end` < '2024-12-17 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-17 07:17:17] Production.INFO: count ==123 [2024-12-17 07:17:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:17:04 - End Time 2024-12-17 07:17:04 [2024-12-17 07:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039226', 'tblTempUsageDetail_20' ) start [2024-12-17 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039226', 'tblTempUsageDetail_20' ) end [2024-12-17 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039226', 'tblTempVendorCDR_20' ) start [2024-12-17 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039226', 'tblTempVendorCDR_20' ) end [2024-12-17 07:17:17] Production.INFO: ProcessCDR(1,14039226,1,1,2) [2024-12-17 07:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039226', 'tblTempUsageDetail_20' ) start [2024-12-17 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039226', 'tblTempUsageDetail_20' ) end [2024-12-17 07:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:17:20] Production.INFO: ==1948== Releasing lock... [2024-12-17 07:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:17:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:18:05 [end_date_ymd] => 2024-12-17 07:18:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:18:05' and `end` < '2024-12-17 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-17 07:18:17] Production.INFO: count ==123 [2024-12-17 07:18:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:18:05 - End Time 2024-12-17 07:18:05 [2024-12-17 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039231', 'tblTempUsageDetail_20' ) start [2024-12-17 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039231', 'tblTempUsageDetail_20' ) end [2024-12-17 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039231', 'tblTempVendorCDR_20' ) start [2024-12-17 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039231', 'tblTempVendorCDR_20' ) end [2024-12-17 07:18:17] Production.INFO: ProcessCDR(1,14039231,1,1,2) [2024-12-17 07:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039231', 'tblTempUsageDetail_20' ) start [2024-12-17 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039231', 'tblTempUsageDetail_20' ) end [2024-12-17 07:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:18:20] Production.INFO: ==2020== Releasing lock... [2024-12-17 07:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:18:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:19:05 [end_date_ymd] => 2024-12-17 07:19:05 [RateCDR] => 1 ) [2024-12-17 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 04:19:05' and `end` < '2024-12-17 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 07:19:17] Production.INFO: count ==123 [2024-12-17 07:19:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:19:05 - End Time 2024-12-17 07:19:05 [2024-12-17 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039236', 'tblTempUsageDetail_20' ) start [2024-12-17 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039236', 'tblTempUsageDetail_20' ) end [2024-12-17 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039236', 'tblTempVendorCDR_20' ) start [2024-12-17 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039236', 'tblTempVendorCDR_20' ) end [2024-12-17 07:19:17] Production.INFO: ProcessCDR(1,14039236,1,1,2) [2024-12-17 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039236', 'tblTempUsageDetail_20' ) start [2024-12-17 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039236', 'tblTempUsageDetail_20' ) end [2024-12-17 07:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:19:20] Production.INFO: ==2108== Releasing lock... [2024-12-17 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:19:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:20:05 [end_date_ymd] => 2024-12-17 07:20:05 [RateCDR] => 1 ) [2024-12-17 07: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 04:20:05' and `end` < '2024-12-17 07: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-17 07:20:18] Production.INFO: count ==123 [2024-12-17 07:20:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:20:05 - End Time 2024-12-17 07:20:05 [2024-12-17 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039242', 'tblTempUsageDetail_20' ) start [2024-12-17 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039242', 'tblTempUsageDetail_20' ) end [2024-12-17 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039242', 'tblTempVendorCDR_20' ) start [2024-12-17 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039242', 'tblTempVendorCDR_20' ) end [2024-12-17 07:20:18] Production.INFO: ProcessCDR(1,14039242,1,1,2) [2024-12-17 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039242', 'tblTempUsageDetail_20' ) start [2024-12-17 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039242', 'tblTempUsageDetail_20' ) end [2024-12-17 07:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:20:21] Production.INFO: ==2181== Releasing lock... [2024-12-17 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:20:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:21:05 [end_date_ymd] => 2024-12-17 07:21:05 [RateCDR] => 1 ) [2024-12-17 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 04:21:05' and `end` < '2024-12-17 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 07:21:17] Production.INFO: count ==123 [2024-12-17 07:21:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:21:05 - End Time 2024-12-17 07:21:05 [2024-12-17 07:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039247', 'tblTempUsageDetail_20' ) start [2024-12-17 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039247', 'tblTempUsageDetail_20' ) end [2024-12-17 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039247', 'tblTempVendorCDR_20' ) start [2024-12-17 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039247', 'tblTempVendorCDR_20' ) end [2024-12-17 07:21:17] Production.INFO: ProcessCDR(1,14039247,1,1,2) [2024-12-17 07:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039247', 'tblTempUsageDetail_20' ) start [2024-12-17 07:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039247', 'tblTempUsageDetail_20' ) end [2024-12-17 07:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:21:20] Production.INFO: ==2257== Releasing lock... [2024-12-17 07:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:21:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:22:04 [end_date_ymd] => 2024-12-17 07:22:04 [RateCDR] => 1 ) [2024-12-17 07: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 04:22:04' and `end` < '2024-12-17 07: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-17 07:22:16] Production.INFO: count ==123 [2024-12-17 07:22:16] Production.ERROR: pbx CDR StartTime 2024-12-17 04:22:04 - End Time 2024-12-17 07:22:04 [2024-12-17 07:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039252', 'tblTempUsageDetail_20' ) start [2024-12-17 07:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039252', 'tblTempUsageDetail_20' ) end [2024-12-17 07:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039252', 'tblTempVendorCDR_20' ) start [2024-12-17 07:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039252', 'tblTempVendorCDR_20' ) end [2024-12-17 07:22:16] Production.INFO: ProcessCDR(1,14039252,1,1,2) [2024-12-17 07:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:22:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:22:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:22:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039252', 'tblTempUsageDetail_20' ) start [2024-12-17 07:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039252', 'tblTempUsageDetail_20' ) end [2024-12-17 07:22:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:22:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:22:19] Production.INFO: ==2330== Releasing lock... [2024-12-17 07:22:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:22:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:23:05 [end_date_ymd] => 2024-12-17 07:23:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:23:05' and `end` < '2024-12-17 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-17 07:23:17] Production.INFO: count ==123 [2024-12-17 07:23:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:23:05 - End Time 2024-12-17 07:23:05 [2024-12-17 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039257', 'tblTempUsageDetail_20' ) start [2024-12-17 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039257', 'tblTempUsageDetail_20' ) end [2024-12-17 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039257', 'tblTempVendorCDR_20' ) start [2024-12-17 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039257', 'tblTempVendorCDR_20' ) end [2024-12-17 07:23:17] Production.INFO: ProcessCDR(1,14039257,1,1,2) [2024-12-17 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039257', 'tblTempUsageDetail_20' ) start [2024-12-17 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039257', 'tblTempUsageDetail_20' ) end [2024-12-17 07:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:23:20] Production.INFO: ==2401== Releasing lock... [2024-12-17 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:23:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:24:04 [end_date_ymd] => 2024-12-17 07:24:04 [RateCDR] => 1 ) [2024-12-17 07: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-17 04:24:04' and `end` < '2024-12-17 07: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-17 07:24:17] Production.INFO: count ==123 [2024-12-17 07:24:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:24:04 - End Time 2024-12-17 07:24:04 [2024-12-17 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039262', 'tblTempUsageDetail_20' ) start [2024-12-17 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039262', 'tblTempUsageDetail_20' ) end [2024-12-17 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039262', 'tblTempVendorCDR_20' ) start [2024-12-17 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039262', 'tblTempVendorCDR_20' ) end [2024-12-17 07:24:17] Production.INFO: ProcessCDR(1,14039262,1,1,2) [2024-12-17 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:24:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:24:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:24:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:24:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039262', 'tblTempUsageDetail_20' ) start [2024-12-17 07:24:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039262', 'tblTempUsageDetail_20' ) end [2024-12-17 07:24:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:24:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:24:19] Production.INFO: ==2472== Releasing lock... [2024-12-17 07:24:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:24:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:25:04 [end_date_ymd] => 2024-12-17 07:25:04 [RateCDR] => 1 ) [2024-12-17 07: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 04:25:04' and `end` < '2024-12-17 07: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-17 07:25:17] Production.INFO: count ==124 [2024-12-17 07:25:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:25:04 - End Time 2024-12-17 07:25:04 [2024-12-17 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039267', 'tblTempUsageDetail_20' ) start [2024-12-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039267', 'tblTempUsageDetail_20' ) end [2024-12-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039267', 'tblTempVendorCDR_20' ) start [2024-12-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039267', 'tblTempVendorCDR_20' ) end [2024-12-17 07:25:17] Production.INFO: ProcessCDR(1,14039267,1,1,2) [2024-12-17 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039267', 'tblTempUsageDetail_20' ) start [2024-12-17 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039267', 'tblTempUsageDetail_20' ) end [2024-12-17 07:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:25:22] Production.INFO: ==2542== Releasing lock... [2024-12-17 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:25:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:26:05 [end_date_ymd] => 2024-12-17 07:26:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:26:05' and `end` < '2024-12-17 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-17 07:26:17] Production.INFO: count ==124 [2024-12-17 07:26:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:26:05 - End Time 2024-12-17 07:26:05 [2024-12-17 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039272', 'tblTempUsageDetail_20' ) start [2024-12-17 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039272', 'tblTempUsageDetail_20' ) end [2024-12-17 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039272', 'tblTempVendorCDR_20' ) start [2024-12-17 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039272', 'tblTempVendorCDR_20' ) end [2024-12-17 07:26:17] Production.INFO: ProcessCDR(1,14039272,1,1,2) [2024-12-17 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039272', 'tblTempUsageDetail_20' ) start [2024-12-17 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039272', 'tblTempUsageDetail_20' ) end [2024-12-17 07:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:26:20] Production.INFO: ==2617== Releasing lock... [2024-12-17 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:26:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:27:04 [end_date_ymd] => 2024-12-17 07:27:04 [RateCDR] => 1 ) [2024-12-17 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-17 04:27:04' and `end` < '2024-12-17 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-17 07:27:18] Production.INFO: count ==124 [2024-12-17 07:27:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:27:04 - End Time 2024-12-17 07:27:04 [2024-12-17 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039277', 'tblTempUsageDetail_20' ) start [2024-12-17 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039277', 'tblTempUsageDetail_20' ) end [2024-12-17 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039277', 'tblTempVendorCDR_20' ) start [2024-12-17 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039277', 'tblTempVendorCDR_20' ) end [2024-12-17 07:27:18] Production.INFO: ProcessCDR(1,14039277,1,1,2) [2024-12-17 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039277', 'tblTempUsageDetail_20' ) start [2024-12-17 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039277', 'tblTempUsageDetail_20' ) end [2024-12-17 07:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:27:22] Production.INFO: ==2687== Releasing lock... [2024-12-17 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:27:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:28:05 [end_date_ymd] => 2024-12-17 07:28:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:28:05' and `end` < '2024-12-17 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-17 07:28:18] Production.INFO: count ==125 [2024-12-17 07:28:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:28:05 - End Time 2024-12-17 07:28:05 [2024-12-17 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039282', 'tblTempUsageDetail_20' ) start [2024-12-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039282', 'tblTempUsageDetail_20' ) end [2024-12-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039282', 'tblTempVendorCDR_20' ) start [2024-12-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039282', 'tblTempVendorCDR_20' ) end [2024-12-17 07:28:18] Production.INFO: ProcessCDR(1,14039282,1,1,2) [2024-12-17 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039282', 'tblTempUsageDetail_20' ) start [2024-12-17 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039282', 'tblTempUsageDetail_20' ) end [2024-12-17 07:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:28:21] Production.INFO: ==2760== Releasing lock... [2024-12-17 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:28:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:29:05 [end_date_ymd] => 2024-12-17 07:29:05 [RateCDR] => 1 ) [2024-12-17 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 04:29:05' and `end` < '2024-12-17 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 07:29:18] Production.INFO: count ==130 [2024-12-17 07:29:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:29:05 - End Time 2024-12-17 07:29:05 [2024-12-17 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039287', 'tblTempUsageDetail_20' ) start [2024-12-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039287', 'tblTempUsageDetail_20' ) end [2024-12-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039287', 'tblTempVendorCDR_20' ) start [2024-12-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039287', 'tblTempVendorCDR_20' ) end [2024-12-17 07:29:18] Production.INFO: ProcessCDR(1,14039287,1,1,2) [2024-12-17 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039287', 'tblTempUsageDetail_20' ) start [2024-12-17 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039287', 'tblTempUsageDetail_20' ) end [2024-12-17 07:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:29:21] Production.INFO: ==2872== Releasing lock... [2024-12-17 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:29:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:30:06 [end_date_ymd] => 2024-12-17 07:30:06 [RateCDR] => 1 ) [2024-12-17 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-17 04:30:06' and `end` < '2024-12-17 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-17 07:30:18] Production.INFO: count ==127 [2024-12-17 07:30:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:30:06 - End Time 2024-12-17 07:30:06 [2024-12-17 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039292', 'tblTempUsageDetail_20' ) start [2024-12-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039292', 'tblTempUsageDetail_20' ) end [2024-12-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039292', 'tblTempVendorCDR_20' ) start [2024-12-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039292', 'tblTempVendorCDR_20' ) end [2024-12-17 07:30:18] Production.INFO: ProcessCDR(1,14039292,1,1,2) [2024-12-17 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039292', 'tblTempUsageDetail_20' ) start [2024-12-17 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039292', 'tblTempUsageDetail_20' ) end [2024-12-17 07:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:30:21] Production.INFO: ==2944== Releasing lock... [2024-12-17 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:30:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:31:04 [end_date_ymd] => 2024-12-17 07:31:04 [RateCDR] => 1 ) [2024-12-17 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-17 04:31:04' and `end` < '2024-12-17 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-17 07:31:17] Production.INFO: count ==128 [2024-12-17 07:31:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:31:04 - End Time 2024-12-17 07:31:04 [2024-12-17 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039298', 'tblTempUsageDetail_20' ) start [2024-12-17 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039298', 'tblTempUsageDetail_20' ) end [2024-12-17 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039298', 'tblTempVendorCDR_20' ) start [2024-12-17 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039298', 'tblTempVendorCDR_20' ) end [2024-12-17 07:31:17] Production.INFO: ProcessCDR(1,14039298,1,1,2) [2024-12-17 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039298', 'tblTempUsageDetail_20' ) start [2024-12-17 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039298', 'tblTempUsageDetail_20' ) end [2024-12-17 07:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:31:20] Production.INFO: ==3021== Releasing lock... [2024-12-17 07:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:31:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-17 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:32:05 [end_date_ymd] => 2024-12-17 07:32:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:32:05' and `end` < '2024-12-17 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-17 07:32:17] Production.INFO: count ==142 [2024-12-17 07:32:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:32:05 - End Time 2024-12-17 07:32:05 [2024-12-17 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039303', 'tblTempUsageDetail_20' ) start [2024-12-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039303', 'tblTempUsageDetail_20' ) end [2024-12-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039303', 'tblTempVendorCDR_20' ) start [2024-12-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039303', 'tblTempVendorCDR_20' ) end [2024-12-17 07:32:17] Production.INFO: ProcessCDR(1,14039303,1,1,2) [2024-12-17 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039303', 'tblTempUsageDetail_20' ) start [2024-12-17 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039303', 'tblTempUsageDetail_20' ) end [2024-12-17 07:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:32:20] Production.INFO: ==3095== Releasing lock... [2024-12-17 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:32:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-17 07:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:33:04 [end_date_ymd] => 2024-12-17 07:33:04 [RateCDR] => 1 ) [2024-12-17 07: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 04:33:04' and `end` < '2024-12-17 07: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-17 07:33:16] Production.INFO: count ==159 [2024-12-17 07:33:16] Production.ERROR: pbx CDR StartTime 2024-12-17 04:33:04 - End Time 2024-12-17 07:33:04 [2024-12-17 07:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039308', 'tblTempUsageDetail_20' ) start [2024-12-17 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039308', 'tblTempUsageDetail_20' ) end [2024-12-17 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039308', 'tblTempVendorCDR_20' ) start [2024-12-17 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039308', 'tblTempVendorCDR_20' ) end [2024-12-17 07:33:16] Production.INFO: ProcessCDR(1,14039308,1,1,2) [2024-12-17 07:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039308', 'tblTempUsageDetail_20' ) start [2024-12-17 07:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039308', 'tblTempUsageDetail_20' ) end [2024-12-17 07:33:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:33:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:33:19] Production.INFO: ==3167== Releasing lock... [2024-12-17 07:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:33:19] Production.INFO: 29 MB #Memory Used# [2024-12-17 07:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:34:04 [end_date_ymd] => 2024-12-17 07:34:04 [RateCDR] => 1 ) [2024-12-17 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-17 04:34:04' and `end` < '2024-12-17 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-17 07:34:17] Production.INFO: count ==160 [2024-12-17 07:34:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:34:04 - End Time 2024-12-17 07:34:04 [2024-12-17 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039313', 'tblTempUsageDetail_20' ) start [2024-12-17 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039313', 'tblTempUsageDetail_20' ) end [2024-12-17 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039313', 'tblTempVendorCDR_20' ) start [2024-12-17 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039313', 'tblTempVendorCDR_20' ) end [2024-12-17 07:34:17] Production.INFO: ProcessCDR(1,14039313,1,1,2) [2024-12-17 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039313', 'tblTempUsageDetail_20' ) start [2024-12-17 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039313', 'tblTempUsageDetail_20' ) end [2024-12-17 07:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:34:21] Production.INFO: ==3237== Releasing lock... [2024-12-17 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:34:21] Production.INFO: 29 MB #Memory Used# [2024-12-17 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:35:05 [end_date_ymd] => 2024-12-17 07:35:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:35:05' and `end` < '2024-12-17 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-17 07:35:17] Production.INFO: count ==160 [2024-12-17 07:35:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:35:05 - End Time 2024-12-17 07:35:05 [2024-12-17 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039318', 'tblTempUsageDetail_20' ) start [2024-12-17 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039318', 'tblTempUsageDetail_20' ) end [2024-12-17 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039318', 'tblTempVendorCDR_20' ) start [2024-12-17 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039318', 'tblTempVendorCDR_20' ) end [2024-12-17 07:35:17] Production.INFO: ProcessCDR(1,14039318,1,1,2) [2024-12-17 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039318', 'tblTempUsageDetail_20' ) start [2024-12-17 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039318', 'tblTempUsageDetail_20' ) end [2024-12-17 07:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:35:20] Production.INFO: ==3309== Releasing lock... [2024-12-17 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:35:20] Production.INFO: 29 MB #Memory Used# [2024-12-17 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:36:04 [end_date_ymd] => 2024-12-17 07:36:04 [RateCDR] => 1 ) [2024-12-17 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-17 04:36:04' and `end` < '2024-12-17 07: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-17 07:36:17] Production.INFO: count ==161 [2024-12-17 07:36:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:36:04 - End Time 2024-12-17 07:36:04 [2024-12-17 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039323', 'tblTempUsageDetail_20' ) start [2024-12-17 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039323', 'tblTempUsageDetail_20' ) end [2024-12-17 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039323', 'tblTempVendorCDR_20' ) start [2024-12-17 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039323', 'tblTempVendorCDR_20' ) end [2024-12-17 07:36:17] Production.INFO: ProcessCDR(1,14039323,1,1,2) [2024-12-17 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039323', 'tblTempUsageDetail_20' ) start [2024-12-17 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039323', 'tblTempUsageDetail_20' ) end [2024-12-17 07:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:36:21] Production.INFO: ==3379== Releasing lock... [2024-12-17 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:36:21] Production.INFO: 29 MB #Memory Used# [2024-12-17 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:37:05 [end_date_ymd] => 2024-12-17 07:37:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:37:05' and `end` < '2024-12-17 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-17 07:37:18] Production.INFO: count ==161 [2024-12-17 07:37:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:37:05 - End Time 2024-12-17 07:37:05 [2024-12-17 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039328', 'tblTempUsageDetail_20' ) start [2024-12-17 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039328', 'tblTempUsageDetail_20' ) end [2024-12-17 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039328', 'tblTempVendorCDR_20' ) start [2024-12-17 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039328', 'tblTempVendorCDR_20' ) end [2024-12-17 07:37:18] Production.INFO: ProcessCDR(1,14039328,1,1,2) [2024-12-17 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039328', 'tblTempUsageDetail_20' ) start [2024-12-17 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039328', 'tblTempUsageDetail_20' ) end [2024-12-17 07:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:37:21] Production.INFO: ==3453== Releasing lock... [2024-12-17 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:37:21] Production.INFO: 29 MB #Memory Used# [2024-12-17 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:38:05 [end_date_ymd] => 2024-12-17 07:38:05 [RateCDR] => 1 ) [2024-12-17 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 04:38:05' and `end` < '2024-12-17 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 07:38:17] Production.INFO: count ==161 [2024-12-17 07:38:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:38:05 - End Time 2024-12-17 07:38:05 [2024-12-17 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039333', 'tblTempUsageDetail_20' ) start [2024-12-17 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039333', 'tblTempUsageDetail_20' ) end [2024-12-17 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039333', 'tblTempVendorCDR_20' ) start [2024-12-17 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039333', 'tblTempVendorCDR_20' ) end [2024-12-17 07:38:17] Production.INFO: ProcessCDR(1,14039333,1,1,2) [2024-12-17 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039333', 'tblTempUsageDetail_20' ) start [2024-12-17 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039333', 'tblTempUsageDetail_20' ) end [2024-12-17 07:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:38:20] Production.INFO: ==3524== Releasing lock... [2024-12-17 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:38:20] Production.INFO: 29 MB #Memory Used# [2024-12-17 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:39:05 [end_date_ymd] => 2024-12-17 07:39:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:39:05' and `end` < '2024-12-17 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-17 07:39:18] Production.INFO: count ==161 [2024-12-17 07:39:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:39:05 - End Time 2024-12-17 07:39:05 [2024-12-17 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039338', 'tblTempUsageDetail_20' ) start [2024-12-17 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039338', 'tblTempUsageDetail_20' ) end [2024-12-17 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039338', 'tblTempVendorCDR_20' ) start [2024-12-17 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039338', 'tblTempVendorCDR_20' ) end [2024-12-17 07:39:18] Production.INFO: ProcessCDR(1,14039338,1,1,2) [2024-12-17 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039338', 'tblTempUsageDetail_20' ) start [2024-12-17 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039338', 'tblTempUsageDetail_20' ) end [2024-12-17 07:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:39:21] Production.INFO: ==3595== Releasing lock... [2024-12-17 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:39:21] Production.INFO: 29 MB #Memory Used# [2024-12-17 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:40:05 [end_date_ymd] => 2024-12-17 07:40:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:40:05' and `end` < '2024-12-17 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-17 07:40:17] Production.INFO: count ==164 [2024-12-17 07:40:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:40:05 - End Time 2024-12-17 07:40:05 [2024-12-17 07:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039344', 'tblTempUsageDetail_20' ) start [2024-12-17 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039344', 'tblTempUsageDetail_20' ) end [2024-12-17 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039344', 'tblTempVendorCDR_20' ) start [2024-12-17 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039344', 'tblTempVendorCDR_20' ) end [2024-12-17 07:40:17] Production.INFO: ProcessCDR(1,14039344,1,1,2) [2024-12-17 07:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039344', 'tblTempUsageDetail_20' ) start [2024-12-17 07:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039344', 'tblTempUsageDetail_20' ) end [2024-12-17 07:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:40:20] Production.INFO: ==3673== Releasing lock... [2024-12-17 07:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:40:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-17 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:41:05 [end_date_ymd] => 2024-12-17 07:41:05 [RateCDR] => 1 ) [2024-12-17 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 04:41:05' and `end` < '2024-12-17 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 07:41:18] Production.INFO: count ==180 [2024-12-17 07:41:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:41:05 - End Time 2024-12-17 07:41:05 [2024-12-17 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039349', 'tblTempUsageDetail_20' ) start [2024-12-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039349', 'tblTempUsageDetail_20' ) end [2024-12-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039349', 'tblTempVendorCDR_20' ) start [2024-12-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039349', 'tblTempVendorCDR_20' ) end [2024-12-17 07:41:18] Production.INFO: ProcessCDR(1,14039349,1,1,2) [2024-12-17 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039349', 'tblTempUsageDetail_20' ) start [2024-12-17 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039349', 'tblTempUsageDetail_20' ) end [2024-12-17 07:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:41:22] Production.INFO: ==3754== Releasing lock... [2024-12-17 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:41:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-17 07:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:42:04 [end_date_ymd] => 2024-12-17 07:42:04 [RateCDR] => 1 ) [2024-12-17 07: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 04:42:04' and `end` < '2024-12-17 07: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-17 07:42:17] Production.INFO: count ==183 [2024-12-17 07:42:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:42:04 - End Time 2024-12-17 07:42:04 [2024-12-17 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039354', 'tblTempUsageDetail_20' ) start [2024-12-17 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039354', 'tblTempUsageDetail_20' ) end [2024-12-17 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039354', 'tblTempVendorCDR_20' ) start [2024-12-17 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039354', 'tblTempVendorCDR_20' ) end [2024-12-17 07:42:17] Production.INFO: ProcessCDR(1,14039354,1,1,2) [2024-12-17 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039354', 'tblTempUsageDetail_20' ) start [2024-12-17 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039354', 'tblTempUsageDetail_20' ) end [2024-12-17 07:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:42:20] Production.INFO: ==3830== Releasing lock... [2024-12-17 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:42:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-17 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:43:05 [end_date_ymd] => 2024-12-17 07:43:05 [RateCDR] => 1 ) [2024-12-17 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 04:43:05' and `end` < '2024-12-17 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 07:43:17] Production.INFO: count ==183 [2024-12-17 07:43:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:43:05 - End Time 2024-12-17 07:43:05 [2024-12-17 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039359', 'tblTempUsageDetail_20' ) start [2024-12-17 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039359', 'tblTempUsageDetail_20' ) end [2024-12-17 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039359', 'tblTempVendorCDR_20' ) start [2024-12-17 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039359', 'tblTempVendorCDR_20' ) end [2024-12-17 07:43:17] Production.INFO: ProcessCDR(1,14039359,1,1,2) [2024-12-17 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039359', 'tblTempUsageDetail_20' ) start [2024-12-17 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039359', 'tblTempUsageDetail_20' ) end [2024-12-17 07:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:43:20] Production.INFO: ==3903== Releasing lock... [2024-12-17 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:43:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-17 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:44:06 [end_date_ymd] => 2024-12-17 07:44:06 [RateCDR] => 1 ) [2024-12-17 07:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 04:44:06' and `end` < '2024-12-17 07:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 07:44:18] Production.INFO: count ==184 [2024-12-17 07:44:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:44:06 - End Time 2024-12-17 07:44:06 [2024-12-17 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039364', 'tblTempUsageDetail_20' ) start [2024-12-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039364', 'tblTempUsageDetail_20' ) end [2024-12-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039364', 'tblTempVendorCDR_20' ) start [2024-12-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039364', 'tblTempVendorCDR_20' ) end [2024-12-17 07:44:18] Production.INFO: ProcessCDR(1,14039364,1,1,2) [2024-12-17 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039364', 'tblTempUsageDetail_20' ) start [2024-12-17 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039364', 'tblTempUsageDetail_20' ) end [2024-12-17 07:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:44:21] Production.INFO: ==3983== Releasing lock... [2024-12-17 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:44:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-17 07:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:45:04 [end_date_ymd] => 2024-12-17 07:45:04 [RateCDR] => 1 ) [2024-12-17 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-17 04:45:04' and `end` < '2024-12-17 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-17 07:45:16] Production.INFO: count ==189 [2024-12-17 07:45:16] Production.ERROR: pbx CDR StartTime 2024-12-17 04:45:04 - End Time 2024-12-17 07:45:04 [2024-12-17 07:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039369', 'tblTempUsageDetail_20' ) start [2024-12-17 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039369', 'tblTempUsageDetail_20' ) end [2024-12-17 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039369', 'tblTempVendorCDR_20' ) start [2024-12-17 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039369', 'tblTempVendorCDR_20' ) end [2024-12-17 07:45:16] Production.INFO: ProcessCDR(1,14039369,1,1,2) [2024-12-17 07:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039369', 'tblTempUsageDetail_20' ) start [2024-12-17 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039369', 'tblTempUsageDetail_20' ) end [2024-12-17 07:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:45:20] Production.INFO: ==4129== Releasing lock... [2024-12-17 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:45:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-17 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:46:05 [end_date_ymd] => 2024-12-17 07:46:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:46:05' and `end` < '2024-12-17 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-17 07:46:17] Production.INFO: count ==189 [2024-12-17 07:46:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:46:05 - End Time 2024-12-17 07:46:05 [2024-12-17 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039374', 'tblTempUsageDetail_20' ) start [2024-12-17 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039374', 'tblTempUsageDetail_20' ) end [2024-12-17 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039374', 'tblTempVendorCDR_20' ) start [2024-12-17 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039374', 'tblTempVendorCDR_20' ) end [2024-12-17 07:46:17] Production.INFO: ProcessCDR(1,14039374,1,1,2) [2024-12-17 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039374', 'tblTempUsageDetail_20' ) start [2024-12-17 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039374', 'tblTempUsageDetail_20' ) end [2024-12-17 07:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:46:20] Production.INFO: ==4238== Releasing lock... [2024-12-17 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:46:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-17 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:47:05 [end_date_ymd] => 2024-12-17 07:47:05 [RateCDR] => 1 ) [2024-12-17 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 04:47:05' and `end` < '2024-12-17 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 07:47:18] Production.INFO: count ==189 [2024-12-17 07:47:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:47:05 - End Time 2024-12-17 07:47:05 [2024-12-17 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039379', 'tblTempUsageDetail_20' ) start [2024-12-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039379', 'tblTempUsageDetail_20' ) end [2024-12-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039379', 'tblTempVendorCDR_20' ) start [2024-12-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039379', 'tblTempVendorCDR_20' ) end [2024-12-17 07:47:18] Production.INFO: ProcessCDR(1,14039379,1,1,2) [2024-12-17 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039379', 'tblTempUsageDetail_20' ) start [2024-12-17 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039379', 'tblTempUsageDetail_20' ) end [2024-12-17 07:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:47:21] Production.INFO: ==4339== Releasing lock... [2024-12-17 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:47:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-17 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:48:05 [end_date_ymd] => 2024-12-17 07:48:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:48:05' and `end` < '2024-12-17 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-17 07:48:17] Production.INFO: count ==192 [2024-12-17 07:48:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:48:05 - End Time 2024-12-17 07:48:05 [2024-12-17 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039384', 'tblTempUsageDetail_20' ) start [2024-12-17 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039384', 'tblTempUsageDetail_20' ) end [2024-12-17 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039384', 'tblTempVendorCDR_20' ) start [2024-12-17 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039384', 'tblTempVendorCDR_20' ) end [2024-12-17 07:48:17] Production.INFO: ProcessCDR(1,14039384,1,1,2) [2024-12-17 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039384', 'tblTempUsageDetail_20' ) start [2024-12-17 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039384', 'tblTempUsageDetail_20' ) end [2024-12-17 07:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:48:21] Production.INFO: ==4441== Releasing lock... [2024-12-17 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:48:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-17 07:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:49:04 [end_date_ymd] => 2024-12-17 07:49:04 [RateCDR] => 1 ) [2024-12-17 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-17 04:49:04' and `end` < '2024-12-17 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-17 07:49:17] Production.INFO: count ==192 [2024-12-17 07:49:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:49:04 - End Time 2024-12-17 07:49:04 [2024-12-17 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039389', 'tblTempUsageDetail_20' ) start [2024-12-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039389', 'tblTempUsageDetail_20' ) end [2024-12-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039389', 'tblTempVendorCDR_20' ) start [2024-12-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039389', 'tblTempVendorCDR_20' ) end [2024-12-17 07:49:17] Production.INFO: ProcessCDR(1,14039389,1,1,2) [2024-12-17 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039389', 'tblTempUsageDetail_20' ) start [2024-12-17 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039389', 'tblTempUsageDetail_20' ) end [2024-12-17 07:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:49:20] Production.INFO: ==4517== Releasing lock... [2024-12-17 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:49:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-17 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:50:05 [end_date_ymd] => 2024-12-17 07:50:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:50:05' and `end` < '2024-12-17 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-17 07:50:18] Production.INFO: count ==196 [2024-12-17 07:50:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:50:05 - End Time 2024-12-17 07:50:05 [2024-12-17 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039394', 'tblTempUsageDetail_20' ) start [2024-12-17 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039394', 'tblTempUsageDetail_20' ) end [2024-12-17 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039394', 'tblTempVendorCDR_20' ) start [2024-12-17 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039394', 'tblTempVendorCDR_20' ) end [2024-12-17 07:50:18] Production.INFO: ProcessCDR(1,14039394,1,1,2) [2024-12-17 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039394', 'tblTempUsageDetail_20' ) start [2024-12-17 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039394', 'tblTempUsageDetail_20' ) end [2024-12-17 07:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:50:21] Production.INFO: ==4626== Releasing lock... [2024-12-17 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:50:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-17 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:51:04 [end_date_ymd] => 2024-12-17 07:51:04 [RateCDR] => 1 ) [2024-12-17 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-17 04:51:04' and `end` < '2024-12-17 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-17 07:51:16] Production.INFO: count ==195 [2024-12-17 07:51:16] Production.ERROR: pbx CDR StartTime 2024-12-17 04:51:04 - End Time 2024-12-17 07:51:04 [2024-12-17 07:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039400', 'tblTempUsageDetail_20' ) start [2024-12-17 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039400', 'tblTempUsageDetail_20' ) end [2024-12-17 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039400', 'tblTempVendorCDR_20' ) start [2024-12-17 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039400', 'tblTempVendorCDR_20' ) end [2024-12-17 07:51:16] Production.INFO: ProcessCDR(1,14039400,1,1,2) [2024-12-17 07:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:51:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039400', 'tblTempUsageDetail_20' ) start [2024-12-17 07:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039400', 'tblTempUsageDetail_20' ) end [2024-12-17 07:51:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:51:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:51:19] Production.INFO: ==4702== Releasing lock... [2024-12-17 07:51:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:51:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-17 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:52:05 [end_date_ymd] => 2024-12-17 07:52:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:52:05' and `end` < '2024-12-17 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-17 07:52:18] Production.INFO: count ==195 [2024-12-17 07:52:18] Production.ERROR: pbx CDR StartTime 2024-12-17 04:52:05 - End Time 2024-12-17 07:52:05 [2024-12-17 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039405', 'tblTempUsageDetail_20' ) start [2024-12-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039405', 'tblTempUsageDetail_20' ) end [2024-12-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039405', 'tblTempVendorCDR_20' ) start [2024-12-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039405', 'tblTempVendorCDR_20' ) end [2024-12-17 07:52:18] Production.INFO: ProcessCDR(1,14039405,1,1,2) [2024-12-17 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039405', 'tblTempUsageDetail_20' ) start [2024-12-17 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039405', 'tblTempUsageDetail_20' ) end [2024-12-17 07:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:52:21] Production.INFO: ==4780== Releasing lock... [2024-12-17 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:52:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-17 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:53:05 [end_date_ymd] => 2024-12-17 07:53:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:53:05' and `end` < '2024-12-17 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-17 07:53:19] Production.INFO: count ==200 [2024-12-17 07:53:19] Production.ERROR: pbx CDR StartTime 2024-12-17 04:53:05 - End Time 2024-12-17 07:53:05 [2024-12-17 07:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039410', 'tblTempUsageDetail_20' ) start [2024-12-17 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039410', 'tblTempUsageDetail_20' ) end [2024-12-17 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039410', 'tblTempVendorCDR_20' ) start [2024-12-17 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039410', 'tblTempVendorCDR_20' ) end [2024-12-17 07:53:19] Production.INFO: ProcessCDR(1,14039410,1,1,2) [2024-12-17 07:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039410', 'tblTempUsageDetail_20' ) start [2024-12-17 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039410', 'tblTempUsageDetail_20' ) end [2024-12-17 07:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:53:22] Production.INFO: ==4855== Releasing lock... [2024-12-17 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:53:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-17 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:54:05 [end_date_ymd] => 2024-12-17 07:54:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:54:05' and `end` < '2024-12-17 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-17 07:54:17] Production.INFO: count ==201 [2024-12-17 07:54:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:54:05 - End Time 2024-12-17 07:54:05 [2024-12-17 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039415', 'tblTempUsageDetail_20' ) start [2024-12-17 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039415', 'tblTempUsageDetail_20' ) end [2024-12-17 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039415', 'tblTempVendorCDR_20' ) start [2024-12-17 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039415', 'tblTempVendorCDR_20' ) end [2024-12-17 07:54:17] Production.INFO: ProcessCDR(1,14039415,1,1,2) [2024-12-17 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039415', 'tblTempUsageDetail_20' ) start [2024-12-17 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039415', 'tblTempUsageDetail_20' ) end [2024-12-17 07:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:54:21] Production.INFO: ==4934== Releasing lock... [2024-12-17 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:54:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-17 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:55:05 [end_date_ymd] => 2024-12-17 07:55:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:55:05' and `end` < '2024-12-17 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-17 07:55:17] Production.INFO: count ==201 [2024-12-17 07:55:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:55:05 - End Time 2024-12-17 07:55:05 [2024-12-17 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039420', 'tblTempUsageDetail_20' ) start [2024-12-17 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039420', 'tblTempUsageDetail_20' ) end [2024-12-17 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039420', 'tblTempVendorCDR_20' ) start [2024-12-17 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039420', 'tblTempVendorCDR_20' ) end [2024-12-17 07:55:17] Production.INFO: ProcessCDR(1,14039420,1,1,2) [2024-12-17 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039420', 'tblTempUsageDetail_20' ) start [2024-12-17 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039420', 'tblTempUsageDetail_20' ) end [2024-12-17 07:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:55:20] Production.INFO: ==5021== Releasing lock... [2024-12-17 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:55:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-17 07:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:56:04 [end_date_ymd] => 2024-12-17 07:56:04 [RateCDR] => 1 ) [2024-12-17 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-17 04:56:04' and `end` < '2024-12-17 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-17 07:56:16] Production.INFO: count ==201 [2024-12-17 07:56:16] Production.ERROR: pbx CDR StartTime 2024-12-17 04:56:04 - End Time 2024-12-17 07:56:04 [2024-12-17 07:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039425', 'tblTempUsageDetail_20' ) start [2024-12-17 07:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039425', 'tblTempUsageDetail_20' ) end [2024-12-17 07:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039425', 'tblTempVendorCDR_20' ) start [2024-12-17 07:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039425', 'tblTempVendorCDR_20' ) end [2024-12-17 07:56:16] Production.INFO: ProcessCDR(1,14039425,1,1,2) [2024-12-17 07:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:56:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039425', 'tblTempUsageDetail_20' ) start [2024-12-17 07:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039425', 'tblTempUsageDetail_20' ) end [2024-12-17 07:56:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:56:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:56:19] Production.INFO: ==5094== Releasing lock... [2024-12-17 07:56:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:56:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-17 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:57:05 [end_date_ymd] => 2024-12-17 07:57:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:57:05' and `end` < '2024-12-17 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-17 07:57:17] Production.INFO: count ==201 [2024-12-17 07:57:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:57:05 - End Time 2024-12-17 07:57:05 [2024-12-17 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039430', 'tblTempUsageDetail_20' ) start [2024-12-17 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039430', 'tblTempUsageDetail_20' ) end [2024-12-17 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039430', 'tblTempVendorCDR_20' ) start [2024-12-17 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039430', 'tblTempVendorCDR_20' ) end [2024-12-17 07:57:17] Production.INFO: ProcessCDR(1,14039430,1,1,2) [2024-12-17 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039430', 'tblTempUsageDetail_20' ) start [2024-12-17 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039430', 'tblTempUsageDetail_20' ) end [2024-12-17 07:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:57:20] Production.INFO: ==5173== Releasing lock... [2024-12-17 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:57:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-17 07:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:58:04 [end_date_ymd] => 2024-12-17 07:58:04 [RateCDR] => 1 ) [2024-12-17 07: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 04:58:04' and `end` < '2024-12-17 07: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-17 07:58:17] Production.INFO: count ==201 [2024-12-17 07:58:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:58:04 - End Time 2024-12-17 07:58:04 [2024-12-17 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039435', 'tblTempUsageDetail_20' ) start [2024-12-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039435', 'tblTempUsageDetail_20' ) end [2024-12-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039435', 'tblTempVendorCDR_20' ) start [2024-12-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039435', 'tblTempVendorCDR_20' ) end [2024-12-17 07:58:17] Production.INFO: ProcessCDR(1,14039435,1,1,2) [2024-12-17 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039435', 'tblTempUsageDetail_20' ) start [2024-12-17 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039435', 'tblTempUsageDetail_20' ) end [2024-12-17 07:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:58:20] Production.INFO: ==5250== Releasing lock... [2024-12-17 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:58:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-17 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 04:59:05 [end_date_ymd] => 2024-12-17 07:59:05 [RateCDR] => 1 ) [2024-12-17 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-17 04:59:05' and `end` < '2024-12-17 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-17 07:59:17] Production.INFO: count ==201 [2024-12-17 07:59:17] Production.ERROR: pbx CDR StartTime 2024-12-17 04:59:05 - End Time 2024-12-17 07:59:05 [2024-12-17 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039440', 'tblTempUsageDetail_20' ) start [2024-12-17 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039440', 'tblTempUsageDetail_20' ) end [2024-12-17 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039440', 'tblTempVendorCDR_20' ) start [2024-12-17 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039440', 'tblTempVendorCDR_20' ) end [2024-12-17 07:59:17] Production.INFO: ProcessCDR(1,14039440,1,1,2) [2024-12-17 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039440', 'tblTempUsageDetail_20' ) start [2024-12-17 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039440', 'tblTempUsageDetail_20' ) end [2024-12-17 07:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 07:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 07:59:20] Production.INFO: ==5325== Releasing lock... [2024-12-17 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 07:59:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-17 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:00:06 [end_date_ymd] => 2024-12-17 08:00:06 [RateCDR] => 1 ) [2024-12-17 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:00:06' and `end` < '2024-12-17 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:00:18] Production.INFO: count ==209 [2024-12-17 08:00:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:00:06 - End Time 2024-12-17 08:00:06 [2024-12-17 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039446', 'tblTempUsageDetail_20' ) start [2024-12-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039446', 'tblTempUsageDetail_20' ) end [2024-12-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039446', 'tblTempVendorCDR_20' ) start [2024-12-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039446', 'tblTempVendorCDR_20' ) end [2024-12-17 08:00:18] Production.INFO: ProcessCDR(1,14039446,1,1,2) [2024-12-17 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039446', 'tblTempUsageDetail_20' ) start [2024-12-17 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039446', 'tblTempUsageDetail_20' ) end [2024-12-17 08:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:00:21] Production.INFO: ==5446== Releasing lock... [2024-12-17 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:00:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-17 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:01:05 [end_date_ymd] => 2024-12-17 08:01:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:01:05' and `end` < '2024-12-17 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-17 08:01:17] Production.INFO: count ==210 [2024-12-17 08:01:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:01:05 - End Time 2024-12-17 08:01:05 [2024-12-17 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039451', 'tblTempUsageDetail_20' ) start [2024-12-17 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039451', 'tblTempUsageDetail_20' ) end [2024-12-17 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039451', 'tblTempVendorCDR_20' ) start [2024-12-17 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039451', 'tblTempVendorCDR_20' ) end [2024-12-17 08:01:17] Production.INFO: ProcessCDR(1,14039451,1,1,2) [2024-12-17 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039451', 'tblTempUsageDetail_20' ) start [2024-12-17 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039451', 'tblTempUsageDetail_20' ) end [2024-12-17 08:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:01:20] Production.INFO: ==5541== Releasing lock... [2024-12-17 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:01:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-17 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:02:06 [end_date_ymd] => 2024-12-17 08:02:06 [RateCDR] => 1 ) [2024-12-17 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-17 05:02:06' and `end` < '2024-12-17 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-17 08:02:18] Production.INFO: count ==211 [2024-12-17 08:02:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:02:06 - End Time 2024-12-17 08:02:06 [2024-12-17 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039456', 'tblTempUsageDetail_20' ) start [2024-12-17 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039456', 'tblTempUsageDetail_20' ) end [2024-12-17 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039456', 'tblTempVendorCDR_20' ) start [2024-12-17 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039456', 'tblTempVendorCDR_20' ) end [2024-12-17 08:02:18] Production.INFO: ProcessCDR(1,14039456,1,1,2) [2024-12-17 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039456', 'tblTempUsageDetail_20' ) start [2024-12-17 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039456', 'tblTempUsageDetail_20' ) end [2024-12-17 08:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:02:23] Production.INFO: ==5619== Releasing lock... [2024-12-17 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:02:23] Production.INFO: 29.25 MB #Memory Used# [2024-12-17 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:03:05 [end_date_ymd] => 2024-12-17 08:03:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:03:05' and `end` < '2024-12-17 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-17 08:03:17] Production.INFO: count ==214 [2024-12-17 08:03:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:03:05 - End Time 2024-12-17 08:03:05 [2024-12-17 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039461', 'tblTempUsageDetail_20' ) start [2024-12-17 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039461', 'tblTempUsageDetail_20' ) end [2024-12-17 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039461', 'tblTempVendorCDR_20' ) start [2024-12-17 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039461', 'tblTempVendorCDR_20' ) end [2024-12-17 08:03:17] Production.INFO: ProcessCDR(1,14039461,1,1,2) [2024-12-17 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039461', 'tblTempUsageDetail_20' ) start [2024-12-17 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039461', 'tblTempUsageDetail_20' ) end [2024-12-17 08:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:03:21] Production.INFO: ==5695== Releasing lock... [2024-12-17 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:03:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-17 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:04:06 [end_date_ymd] => 2024-12-17 08:04:06 [RateCDR] => 1 ) [2024-12-17 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:04:06' and `end` < '2024-12-17 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:04:19] Production.INFO: count ==220 [2024-12-17 08:04:19] Production.ERROR: pbx CDR StartTime 2024-12-17 05:04:06 - End Time 2024-12-17 08:04:06 [2024-12-17 08:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039466', 'tblTempUsageDetail_20' ) start [2024-12-17 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039466', 'tblTempUsageDetail_20' ) end [2024-12-17 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039466', 'tblTempVendorCDR_20' ) start [2024-12-17 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039466', 'tblTempVendorCDR_20' ) end [2024-12-17 08:04:19] Production.INFO: ProcessCDR(1,14039466,1,1,2) [2024-12-17 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039466', 'tblTempUsageDetail_20' ) start [2024-12-17 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039466', 'tblTempUsageDetail_20' ) end [2024-12-17 08:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:04:23] Production.INFO: ==5774== Releasing lock... [2024-12-17 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:04:23] Production.INFO: 29.75 MB #Memory Used# [2024-12-17 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:05:05 [end_date_ymd] => 2024-12-17 08:05:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:05:05' and `end` < '2024-12-17 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-17 08:05:17] Production.INFO: count ==235 [2024-12-17 08:05:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:05:05 - End Time 2024-12-17 08:05:05 [2024-12-17 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039471', 'tblTempUsageDetail_20' ) start [2024-12-17 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039471', 'tblTempUsageDetail_20' ) end [2024-12-17 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039471', 'tblTempVendorCDR_20' ) start [2024-12-17 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039471', 'tblTempVendorCDR_20' ) end [2024-12-17 08:05:17] Production.INFO: ProcessCDR(1,14039471,1,1,2) [2024-12-17 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039471', 'tblTempUsageDetail_20' ) start [2024-12-17 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039471', 'tblTempUsageDetail_20' ) end [2024-12-17 08:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:05:20] Production.INFO: ==5851== Releasing lock... [2024-12-17 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:05:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-17 08:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:06:04 [end_date_ymd] => 2024-12-17 08:06:04 [RateCDR] => 1 ) [2024-12-17 08: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 05:06:04' and `end` < '2024-12-17 08: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-17 08:06:17] Production.INFO: count ==244 [2024-12-17 08:06:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:06:04 - End Time 2024-12-17 08:06:04 [2024-12-17 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039476', 'tblTempUsageDetail_20' ) start [2024-12-17 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039476', 'tblTempUsageDetail_20' ) end [2024-12-17 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039476', 'tblTempVendorCDR_20' ) start [2024-12-17 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039476', 'tblTempVendorCDR_20' ) end [2024-12-17 08:06:17] Production.INFO: ProcessCDR(1,14039476,1,1,2) [2024-12-17 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039476', 'tblTempUsageDetail_20' ) start [2024-12-17 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039476', 'tblTempUsageDetail_20' ) end [2024-12-17 08:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:06:22] Production.INFO: ==5926== Releasing lock... [2024-12-17 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:06:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:07:05 [end_date_ymd] => 2024-12-17 08:07:05 [RateCDR] => 1 ) [2024-12-17 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:07:05' and `end` < '2024-12-17 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:07:17] Production.INFO: count ==252 [2024-12-17 08:07:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:07:05 - End Time 2024-12-17 08:07:05 [2024-12-17 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039481', 'tblTempUsageDetail_20' ) start [2024-12-17 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039481', 'tblTempUsageDetail_20' ) end [2024-12-17 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039481', 'tblTempVendorCDR_20' ) start [2024-12-17 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039481', 'tblTempVendorCDR_20' ) end [2024-12-17 08:07:17] Production.INFO: ProcessCDR(1,14039481,1,1,2) [2024-12-17 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039481', 'tblTempUsageDetail_20' ) start [2024-12-17 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039481', 'tblTempUsageDetail_20' ) end [2024-12-17 08:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:07:21] Production.INFO: ==6002== Releasing lock... [2024-12-17 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:07:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:08:05 [end_date_ymd] => 2024-12-17 08:08:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:08:05' and `end` < '2024-12-17 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-17 08:08:18] Production.INFO: count ==254 [2024-12-17 08:08:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:08:05 - End Time 2024-12-17 08:08:05 [2024-12-17 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039486', 'tblTempUsageDetail_20' ) start [2024-12-17 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039486', 'tblTempUsageDetail_20' ) end [2024-12-17 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039486', 'tblTempVendorCDR_20' ) start [2024-12-17 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039486', 'tblTempVendorCDR_20' ) end [2024-12-17 08:08:18] Production.INFO: ProcessCDR(1,14039486,1,1,2) [2024-12-17 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039486', 'tblTempUsageDetail_20' ) start [2024-12-17 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039486', 'tblTempUsageDetail_20' ) end [2024-12-17 08:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:08:23] Production.INFO: ==6083== Releasing lock... [2024-12-17 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:08:23] Production.INFO: 30.25 MB #Memory Used# [2024-12-17 08:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:09:04 [end_date_ymd] => 2024-12-17 08:09:04 [RateCDR] => 1 ) [2024-12-17 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-17 05:09:04' and `end` < '2024-12-17 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-17 08:09:18] Production.INFO: count ==264 [2024-12-17 08:09:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:09:04 - End Time 2024-12-17 08:09:04 [2024-12-17 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039491', 'tblTempUsageDetail_20' ) start [2024-12-17 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039491', 'tblTempUsageDetail_20' ) end [2024-12-17 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039491', 'tblTempVendorCDR_20' ) start [2024-12-17 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039491', 'tblTempVendorCDR_20' ) end [2024-12-17 08:09:18] Production.INFO: ProcessCDR(1,14039491,1,1,2) [2024-12-17 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039491', 'tblTempUsageDetail_20' ) start [2024-12-17 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039491', 'tblTempUsageDetail_20' ) end [2024-12-17 08:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:09:21] Production.INFO: ==6156== Releasing lock... [2024-12-17 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:09:21] Production.INFO: 30 MB #Memory Used# [2024-12-17 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:10:06 [end_date_ymd] => 2024-12-17 08:10:06 [RateCDR] => 1 ) [2024-12-17 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:10:06' and `end` < '2024-12-17 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:10:18] Production.INFO: count ==275 [2024-12-17 08:10:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:10:06 - End Time 2024-12-17 08:10:06 [2024-12-17 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039497', 'tblTempUsageDetail_20' ) start [2024-12-17 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039497', 'tblTempUsageDetail_20' ) end [2024-12-17 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039497', 'tblTempVendorCDR_20' ) start [2024-12-17 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039497', 'tblTempVendorCDR_20' ) end [2024-12-17 08:10:18] Production.INFO: ProcessCDR(1,14039497,1,1,2) [2024-12-17 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039497', 'tblTempUsageDetail_20' ) start [2024-12-17 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039497', 'tblTempUsageDetail_20' ) end [2024-12-17 08:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:10:21] Production.INFO: ==6232== Releasing lock... [2024-12-17 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:10:21] Production.INFO: 30 MB #Memory Used# [2024-12-17 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:11:04 [end_date_ymd] => 2024-12-17 08:11:04 [RateCDR] => 1 ) [2024-12-17 08: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 05:11:04' and `end` < '2024-12-17 08: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-17 08:11:18] Production.INFO: count ==291 [2024-12-17 08:11:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:11:04 - End Time 2024-12-17 08:11:04 [2024-12-17 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039502', 'tblTempUsageDetail_20' ) start [2024-12-17 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039502', 'tblTempUsageDetail_20' ) end [2024-12-17 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039502', 'tblTempVendorCDR_20' ) start [2024-12-17 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039502', 'tblTempVendorCDR_20' ) end [2024-12-17 08:11:18] Production.INFO: ProcessCDR(1,14039502,1,1,2) [2024-12-17 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039502', 'tblTempUsageDetail_20' ) start [2024-12-17 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039502', 'tblTempUsageDetail_20' ) end [2024-12-17 08:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:11:23] Production.INFO: ==6309== Releasing lock... [2024-12-17 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:11:23] Production.INFO: 30.5 MB #Memory Used# [2024-12-17 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:12:05 [end_date_ymd] => 2024-12-17 08:12:05 [RateCDR] => 1 ) [2024-12-17 08: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 05:12:05' and `end` < '2024-12-17 08: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-17 08:12:17] Production.INFO: count ==305 [2024-12-17 08:12:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:12:05 - End Time 2024-12-17 08:12:05 [2024-12-17 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039507', 'tblTempUsageDetail_20' ) start [2024-12-17 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039507', 'tblTempUsageDetail_20' ) end [2024-12-17 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039507', 'tblTempVendorCDR_20' ) start [2024-12-17 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039507', 'tblTempVendorCDR_20' ) end [2024-12-17 08:12:17] Production.INFO: ProcessCDR(1,14039507,1,1,2) [2024-12-17 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039507', 'tblTempUsageDetail_20' ) start [2024-12-17 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039507', 'tblTempUsageDetail_20' ) end [2024-12-17 08:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:12:22] Production.INFO: ==6380== Releasing lock... [2024-12-17 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:12:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-17 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:13:04 [end_date_ymd] => 2024-12-17 08:13:04 [RateCDR] => 1 ) [2024-12-17 08: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 05:13:04' and `end` < '2024-12-17 08: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-17 08:13:16] Production.INFO: count ==319 [2024-12-17 08:13:16] Production.ERROR: pbx CDR StartTime 2024-12-17 05:13:04 - End Time 2024-12-17 08:13:04 [2024-12-17 08:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039512', 'tblTempUsageDetail_20' ) start [2024-12-17 08:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039512', 'tblTempUsageDetail_20' ) end [2024-12-17 08:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039512', 'tblTempVendorCDR_20' ) start [2024-12-17 08:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039512', 'tblTempVendorCDR_20' ) end [2024-12-17 08:13:16] Production.INFO: ProcessCDR(1,14039512,1,1,2) [2024-12-17 08:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039512', 'tblTempUsageDetail_20' ) start [2024-12-17 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039512', 'tblTempUsageDetail_20' ) end [2024-12-17 08:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:13:21] Production.INFO: ==6459== Releasing lock... [2024-12-17 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:13:21] Production.INFO: 31 MB #Memory Used# [2024-12-17 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:14:05 [end_date_ymd] => 2024-12-17 08:14:05 [RateCDR] => 1 ) [2024-12-17 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:14:05' and `end` < '2024-12-17 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:14:17] Production.INFO: count ==338 [2024-12-17 08:14:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:14:05 - End Time 2024-12-17 08:14:05 [2024-12-17 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039517', 'tblTempUsageDetail_20' ) start [2024-12-17 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039517', 'tblTempUsageDetail_20' ) end [2024-12-17 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039517', 'tblTempVendorCDR_20' ) start [2024-12-17 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039517', 'tblTempVendorCDR_20' ) end [2024-12-17 08:14:17] Production.INFO: ProcessCDR(1,14039517,1,1,2) [2024-12-17 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039517', 'tblTempUsageDetail_20' ) start [2024-12-17 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039517', 'tblTempUsageDetail_20' ) end [2024-12-17 08:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:14:21] Production.INFO: ==6532== Releasing lock... [2024-12-17 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:14:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-17 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:15:04 [end_date_ymd] => 2024-12-17 08:15:04 [RateCDR] => 1 ) [2024-12-17 08: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-17 05:15:04' and `end` < '2024-12-17 08: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-17 08:15:17] Production.INFO: count ==340 [2024-12-17 08:15:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:15:04 - End Time 2024-12-17 08:15:04 [2024-12-17 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039522', 'tblTempUsageDetail_20' ) start [2024-12-17 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039522', 'tblTempUsageDetail_20' ) end [2024-12-17 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039522', 'tblTempVendorCDR_20' ) start [2024-12-17 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039522', 'tblTempVendorCDR_20' ) end [2024-12-17 08:15:17] Production.INFO: ProcessCDR(1,14039522,1,1,2) [2024-12-17 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039522', 'tblTempUsageDetail_20' ) start [2024-12-17 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039522', 'tblTempUsageDetail_20' ) end [2024-12-17 08:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:15:20] Production.INFO: ==6603== Releasing lock... [2024-12-17 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:15:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-17 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:16:05 [end_date_ymd] => 2024-12-17 08:16:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:16:05' and `end` < '2024-12-17 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-17 08:16:17] Production.INFO: count ==345 [2024-12-17 08:16:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:16:05 - End Time 2024-12-17 08:16:05 [2024-12-17 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039527', 'tblTempUsageDetail_20' ) start [2024-12-17 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039527', 'tblTempUsageDetail_20' ) end [2024-12-17 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039527', 'tblTempVendorCDR_20' ) start [2024-12-17 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039527', 'tblTempVendorCDR_20' ) end [2024-12-17 08:16:17] Production.INFO: ProcessCDR(1,14039527,1,1,2) [2024-12-17 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039527', 'tblTempUsageDetail_20' ) start [2024-12-17 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039527', 'tblTempUsageDetail_20' ) end [2024-12-17 08:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:16:20] Production.INFO: ==6712== Releasing lock... [2024-12-17 08:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:16:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-17 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:17:05 [end_date_ymd] => 2024-12-17 08:17:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:17:05' and `end` < '2024-12-17 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-17 08:17:18] Production.INFO: count ==351 [2024-12-17 08:17:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:17:05 - End Time 2024-12-17 08:17:05 [2024-12-17 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039532', 'tblTempUsageDetail_20' ) start [2024-12-17 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039532', 'tblTempUsageDetail_20' ) end [2024-12-17 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039532', 'tblTempVendorCDR_20' ) start [2024-12-17 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039532', 'tblTempVendorCDR_20' ) end [2024-12-17 08:17:18] Production.INFO: ProcessCDR(1,14039532,1,1,2) [2024-12-17 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039532', 'tblTempUsageDetail_20' ) start [2024-12-17 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039532', 'tblTempUsageDetail_20' ) end [2024-12-17 08:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:17:21] Production.INFO: ==6796== Releasing lock... [2024-12-17 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:17:21] Production.INFO: 31 MB #Memory Used# [2024-12-17 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:18:05 [end_date_ymd] => 2024-12-17 08:18:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:18:05' and `end` < '2024-12-17 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-17 08:18:17] Production.INFO: count ==354 [2024-12-17 08:18:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:18:05 - End Time 2024-12-17 08:18:05 [2024-12-17 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039537', 'tblTempUsageDetail_20' ) start [2024-12-17 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039537', 'tblTempUsageDetail_20' ) end [2024-12-17 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039537', 'tblTempVendorCDR_20' ) start [2024-12-17 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039537', 'tblTempVendorCDR_20' ) end [2024-12-17 08:18:17] Production.INFO: ProcessCDR(1,14039537,1,1,2) [2024-12-17 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039537', 'tblTempUsageDetail_20' ) start [2024-12-17 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039537', 'tblTempUsageDetail_20' ) end [2024-12-17 08:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:18:20] Production.INFO: ==6866== Releasing lock... [2024-12-17 08:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:18:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-17 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:19:05 [end_date_ymd] => 2024-12-17 08:19:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:19:05' and `end` < '2024-12-17 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-17 08:19:17] Production.INFO: count ==366 [2024-12-17 08:19:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:19:05 - End Time 2024-12-17 08:19:05 [2024-12-17 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039542', 'tblTempUsageDetail_20' ) start [2024-12-17 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039542', 'tblTempUsageDetail_20' ) end [2024-12-17 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039542', 'tblTempVendorCDR_20' ) start [2024-12-17 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039542', 'tblTempVendorCDR_20' ) end [2024-12-17 08:19:18] Production.INFO: ProcessCDR(1,14039542,1,1,2) [2024-12-17 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039542', 'tblTempUsageDetail_20' ) start [2024-12-17 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039542', 'tblTempUsageDetail_20' ) end [2024-12-17 08:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:19:21] Production.INFO: ==6938== Releasing lock... [2024-12-17 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:19:21] Production.INFO: 31 MB #Memory Used# [2024-12-17 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:20:05 [end_date_ymd] => 2024-12-17 08:20:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:20:05' and `end` < '2024-12-17 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-17 08:20:17] Production.INFO: count ==382 [2024-12-17 08:20:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:20:05 - End Time 2024-12-17 08:20:05 [2024-12-17 08:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039548', 'tblTempUsageDetail_20' ) start [2024-12-17 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039548', 'tblTempUsageDetail_20' ) end [2024-12-17 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039548', 'tblTempVendorCDR_20' ) start [2024-12-17 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039548', 'tblTempVendorCDR_20' ) end [2024-12-17 08:20:17] Production.INFO: ProcessCDR(1,14039548,1,1,2) [2024-12-17 08:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039548', 'tblTempUsageDetail_20' ) start [2024-12-17 08:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039548', 'tblTempUsageDetail_20' ) end [2024-12-17 08:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:20:21] Production.INFO: ==7010== Releasing lock... [2024-12-17 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:20:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-17 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:21:05 [end_date_ymd] => 2024-12-17 08:21:05 [RateCDR] => 1 ) [2024-12-17 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:21:05' and `end` < '2024-12-17 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:21:17] Production.INFO: count ==403 [2024-12-17 08:21:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:21:05 - End Time 2024-12-17 08:21:05 [2024-12-17 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039553', 'tblTempUsageDetail_20' ) start [2024-12-17 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039553', 'tblTempUsageDetail_20' ) end [2024-12-17 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039553', 'tblTempVendorCDR_20' ) start [2024-12-17 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039553', 'tblTempVendorCDR_20' ) end [2024-12-17 08:21:17] Production.INFO: ProcessCDR(1,14039553,1,1,2) [2024-12-17 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039553', 'tblTempUsageDetail_20' ) start [2024-12-17 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039553', 'tblTempUsageDetail_20' ) end [2024-12-17 08:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:21:20] Production.INFO: ==7084== Releasing lock... [2024-12-17 08:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:21:20] Production.INFO: 32 MB #Memory Used# [2024-12-17 08:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:22:04 [end_date_ymd] => 2024-12-17 08:22:04 [RateCDR] => 1 ) [2024-12-17 08: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 05:22:04' and `end` < '2024-12-17 08: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-17 08:22:16] Production.INFO: count ==403 [2024-12-17 08:22:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:22:04 - End Time 2024-12-17 08:22:04 [2024-12-17 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039558', 'tblTempUsageDetail_20' ) start [2024-12-17 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039558', 'tblTempUsageDetail_20' ) end [2024-12-17 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039558', 'tblTempVendorCDR_20' ) start [2024-12-17 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039558', 'tblTempVendorCDR_20' ) end [2024-12-17 08:22:17] Production.INFO: ProcessCDR(1,14039558,1,1,2) [2024-12-17 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039558', 'tblTempUsageDetail_20' ) start [2024-12-17 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039558', 'tblTempUsageDetail_20' ) end [2024-12-17 08:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:22:20] Production.INFO: ==7156== Releasing lock... [2024-12-17 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:22:20] Production.INFO: 32 MB #Memory Used# [2024-12-17 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:23:05 [end_date_ymd] => 2024-12-17 08:23:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:23:05' and `end` < '2024-12-17 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-17 08:23:17] Production.INFO: count ==411 [2024-12-17 08:23:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:23:05 - End Time 2024-12-17 08:23:05 [2024-12-17 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039563', 'tblTempUsageDetail_20' ) start [2024-12-17 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039563', 'tblTempUsageDetail_20' ) end [2024-12-17 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039563', 'tblTempVendorCDR_20' ) start [2024-12-17 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039563', 'tblTempVendorCDR_20' ) end [2024-12-17 08:23:18] Production.INFO: ProcessCDR(1,14039563,1,1,2) [2024-12-17 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039563', 'tblTempUsageDetail_20' ) start [2024-12-17 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039563', 'tblTempUsageDetail_20' ) end [2024-12-17 08:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:23:22] Production.INFO: ==7227== Releasing lock... [2024-12-17 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:23:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-17 08:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:24:04 [end_date_ymd] => 2024-12-17 08:24:04 [RateCDR] => 1 ) [2024-12-17 08: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-17 05:24:04' and `end` < '2024-12-17 08: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-17 08:24:17] Production.INFO: count ==417 [2024-12-17 08:24:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:24:04 - End Time 2024-12-17 08:24:04 [2024-12-17 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039568', 'tblTempUsageDetail_20' ) start [2024-12-17 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039568', 'tblTempUsageDetail_20' ) end [2024-12-17 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039568', 'tblTempVendorCDR_20' ) start [2024-12-17 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039568', 'tblTempVendorCDR_20' ) end [2024-12-17 08:24:17] Production.INFO: ProcessCDR(1,14039568,1,1,2) [2024-12-17 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039568', 'tblTempUsageDetail_20' ) start [2024-12-17 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039568', 'tblTempUsageDetail_20' ) end [2024-12-17 08:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:24:20] Production.INFO: ==7298== Releasing lock... [2024-12-17 08:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:24:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-17 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:25:05 [end_date_ymd] => 2024-12-17 08:25:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:25:05' and `end` < '2024-12-17 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-17 08:25:17] Production.INFO: count ==440 [2024-12-17 08:25:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:25:05 - End Time 2024-12-17 08:25:05 [2024-12-17 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039573', 'tblTempUsageDetail_20' ) start [2024-12-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039573', 'tblTempUsageDetail_20' ) end [2024-12-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039573', 'tblTempVendorCDR_20' ) start [2024-12-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039573', 'tblTempVendorCDR_20' ) end [2024-12-17 08:25:17] Production.INFO: ProcessCDR(1,14039573,1,1,2) [2024-12-17 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039573', 'tblTempUsageDetail_20' ) start [2024-12-17 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039573', 'tblTempUsageDetail_20' ) end [2024-12-17 08:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:25:22] Production.INFO: ==7369== Releasing lock... [2024-12-17 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:25:22] Production.INFO: 32 MB #Memory Used# [2024-12-17 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:26:04 [end_date_ymd] => 2024-12-17 08:26:04 [RateCDR] => 1 ) [2024-12-17 08: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 05:26:04' and `end` < '2024-12-17 08: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-17 08:26:17] Production.INFO: count ==448 [2024-12-17 08:26:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:26:04 - End Time 2024-12-17 08:26:04 [2024-12-17 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039578', 'tblTempUsageDetail_20' ) start [2024-12-17 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039578', 'tblTempUsageDetail_20' ) end [2024-12-17 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039578', 'tblTempVendorCDR_20' ) start [2024-12-17 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039578', 'tblTempVendorCDR_20' ) end [2024-12-17 08:26:17] Production.INFO: ProcessCDR(1,14039578,1,1,2) [2024-12-17 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039578', 'tblTempUsageDetail_20' ) start [2024-12-17 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039578', 'tblTempUsageDetail_20' ) end [2024-12-17 08:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:26:22] Production.INFO: ==7440== Releasing lock... [2024-12-17 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:26:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-17 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:27:05 [end_date_ymd] => 2024-12-17 08:27:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:27:05' and `end` < '2024-12-17 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-17 08:27:17] Production.INFO: count ==464 [2024-12-17 08:27:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:27:05 - End Time 2024-12-17 08:27:05 [2024-12-17 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039583', 'tblTempUsageDetail_20' ) start [2024-12-17 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039583', 'tblTempUsageDetail_20' ) end [2024-12-17 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039583', 'tblTempVendorCDR_20' ) start [2024-12-17 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039583', 'tblTempVendorCDR_20' ) end [2024-12-17 08:27:17] Production.INFO: ProcessCDR(1,14039583,1,1,2) [2024-12-17 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039583', 'tblTempUsageDetail_20' ) start [2024-12-17 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039583', 'tblTempUsageDetail_20' ) end [2024-12-17 08:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:27:20] Production.INFO: ==7512== Releasing lock... [2024-12-17 08:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:27:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-17 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:28:05 [end_date_ymd] => 2024-12-17 08:28:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:28:05' and `end` < '2024-12-17 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-17 08:28:17] Production.INFO: count ==470 [2024-12-17 08:28:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:28:05 - End Time 2024-12-17 08:28:05 [2024-12-17 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039588', 'tblTempUsageDetail_20' ) start [2024-12-17 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039588', 'tblTempUsageDetail_20' ) end [2024-12-17 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039588', 'tblTempVendorCDR_20' ) start [2024-12-17 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039588', 'tblTempVendorCDR_20' ) end [2024-12-17 08:28:17] Production.INFO: ProcessCDR(1,14039588,1,1,2) [2024-12-17 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039588', 'tblTempUsageDetail_20' ) start [2024-12-17 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039588', 'tblTempUsageDetail_20' ) end [2024-12-17 08:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:28:20] Production.INFO: ==7582== Releasing lock... [2024-12-17 08:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:28:20] Production.INFO: 32 MB #Memory Used# [2024-12-17 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:29:05 [end_date_ymd] => 2024-12-17 08:29:05 [RateCDR] => 1 ) [2024-12-17 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:29:05' and `end` < '2024-12-17 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:29:17] Production.INFO: count ==479 [2024-12-17 08:29:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:29:05 - End Time 2024-12-17 08:29:05 [2024-12-17 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039593', 'tblTempUsageDetail_20' ) start [2024-12-17 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039593', 'tblTempUsageDetail_20' ) end [2024-12-17 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039593', 'tblTempVendorCDR_20' ) start [2024-12-17 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039593', 'tblTempVendorCDR_20' ) end [2024-12-17 08:29:17] Production.INFO: ProcessCDR(1,14039593,1,1,2) [2024-12-17 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039593', 'tblTempUsageDetail_20' ) start [2024-12-17 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039593', 'tblTempUsageDetail_20' ) end [2024-12-17 08:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:29:20] Production.INFO: ==7653== Releasing lock... [2024-12-17 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:29:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-17 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:30:06 [end_date_ymd] => 2024-12-17 08:30:06 [RateCDR] => 1 ) [2024-12-17 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:30:06' and `end` < '2024-12-17 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:30:18] Production.INFO: count ==493 [2024-12-17 08:30:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:30:06 - End Time 2024-12-17 08:30:06 [2024-12-17 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039599', 'tblTempUsageDetail_20' ) start [2024-12-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039599', 'tblTempUsageDetail_20' ) end [2024-12-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039599', 'tblTempVendorCDR_20' ) start [2024-12-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039599', 'tblTempVendorCDR_20' ) end [2024-12-17 08:30:18] Production.INFO: ProcessCDR(1,14039599,1,1,2) [2024-12-17 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039599', 'tblTempUsageDetail_20' ) start [2024-12-17 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039599', 'tblTempUsageDetail_20' ) end [2024-12-17 08:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:30:23] Production.INFO: ==7728== Releasing lock... [2024-12-17 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:30:23] Production.INFO: 32.5 MB #Memory Used# [2024-12-17 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:31:04 [end_date_ymd] => 2024-12-17 08:31:04 [RateCDR] => 1 ) [2024-12-17 08:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:31:04' and `end` < '2024-12-17 08:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:31:17] Production.INFO: count ==544 [2024-12-17 08:31:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:31:04 - End Time 2024-12-17 08:31:04 [2024-12-17 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039604', 'tblTempUsageDetail_20' ) start [2024-12-17 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039604', 'tblTempUsageDetail_20' ) end [2024-12-17 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039604', 'tblTempVendorCDR_20' ) start [2024-12-17 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039604', 'tblTempVendorCDR_20' ) end [2024-12-17 08:31:17] Production.INFO: ProcessCDR(1,14039604,1,1,2) [2024-12-17 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039604', 'tblTempUsageDetail_20' ) start [2024-12-17 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039604', 'tblTempUsageDetail_20' ) end [2024-12-17 08:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:31:21] Production.INFO: ==7803== Releasing lock... [2024-12-17 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:31:21] Production.INFO: 33 MB #Memory Used# [2024-12-17 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:32:05 [end_date_ymd] => 2024-12-17 08:32:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:32:05' and `end` < '2024-12-17 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-17 08:32:18] Production.INFO: count ==563 [2024-12-17 08:32:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:32:05 - End Time 2024-12-17 08:32:05 [2024-12-17 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039609', 'tblTempUsageDetail_20' ) start [2024-12-17 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039609', 'tblTempUsageDetail_20' ) end [2024-12-17 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039609', 'tblTempVendorCDR_20' ) start [2024-12-17 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039609', 'tblTempVendorCDR_20' ) end [2024-12-17 08:32:18] Production.INFO: ProcessCDR(1,14039609,1,1,2) [2024-12-17 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039609', 'tblTempUsageDetail_20' ) start [2024-12-17 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039609', 'tblTempUsageDetail_20' ) end [2024-12-17 08:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:32:23] Production.INFO: ==7914== Releasing lock... [2024-12-17 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:32:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-17 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:33:04 [end_date_ymd] => 2024-12-17 08:33:04 [RateCDR] => 1 ) [2024-12-17 08: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 05:33:04' and `end` < '2024-12-17 08: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-17 08:33:17] Production.INFO: count ==582 [2024-12-17 08:33:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:33:04 - End Time 2024-12-17 08:33:04 [2024-12-17 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039614', 'tblTempUsageDetail_20' ) start [2024-12-17 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039614', 'tblTempUsageDetail_20' ) end [2024-12-17 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039614', 'tblTempVendorCDR_20' ) start [2024-12-17 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039614', 'tblTempVendorCDR_20' ) end [2024-12-17 08:33:17] Production.INFO: ProcessCDR(1,14039614,1,1,2) [2024-12-17 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039614', 'tblTempUsageDetail_20' ) start [2024-12-17 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039614', 'tblTempUsageDetail_20' ) end [2024-12-17 08:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:33:20] Production.INFO: ==7983== Releasing lock... [2024-12-17 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:33:20] Production.INFO: 33 MB #Memory Used# [2024-12-17 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:34:05 [end_date_ymd] => 2024-12-17 08:34:05 [RateCDR] => 1 ) [2024-12-17 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:34:05' and `end` < '2024-12-17 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:34:17] Production.INFO: count ==609 [2024-12-17 08:34:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:34:05 - End Time 2024-12-17 08:34:05 [2024-12-17 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039619', 'tblTempUsageDetail_20' ) start [2024-12-17 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039619', 'tblTempUsageDetail_20' ) end [2024-12-17 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039619', 'tblTempVendorCDR_20' ) start [2024-12-17 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039619', 'tblTempVendorCDR_20' ) end [2024-12-17 08:34:17] Production.INFO: ProcessCDR(1,14039619,1,1,2) [2024-12-17 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039619', 'tblTempUsageDetail_20' ) start [2024-12-17 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039619', 'tblTempUsageDetail_20' ) end [2024-12-17 08:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:34:20] Production.INFO: ==8056== Releasing lock... [2024-12-17 08:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:34:20] Production.INFO: 33 MB #Memory Used# [2024-12-17 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:35:04 [end_date_ymd] => 2024-12-17 08:35:04 [RateCDR] => 1 ) [2024-12-17 08: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 05:35:04' and `end` < '2024-12-17 08: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-17 08:35:16] Production.INFO: count ==614 [2024-12-17 08:35:16] Production.ERROR: pbx CDR StartTime 2024-12-17 05:35:04 - End Time 2024-12-17 08:35:04 [2024-12-17 08:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039624', 'tblTempUsageDetail_20' ) start [2024-12-17 08:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039624', 'tblTempUsageDetail_20' ) end [2024-12-17 08:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039624', 'tblTempVendorCDR_20' ) start [2024-12-17 08:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039624', 'tblTempVendorCDR_20' ) end [2024-12-17 08:35:16] Production.INFO: ProcessCDR(1,14039624,1,1,2) [2024-12-17 08:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039624', 'tblTempUsageDetail_20' ) start [2024-12-17 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039624', 'tblTempUsageDetail_20' ) end [2024-12-17 08:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:35:21] Production.INFO: ==8126== Releasing lock... [2024-12-17 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:35:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-17 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:36:05 [end_date_ymd] => 2024-12-17 08:36:05 [RateCDR] => 1 ) [2024-12-17 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:36:05' and `end` < '2024-12-17 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:36:19] Production.INFO: count ==625 [2024-12-17 08:36:19] Production.ERROR: pbx CDR StartTime 2024-12-17 05:36:05 - End Time 2024-12-17 08:36:05 [2024-12-17 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039629', 'tblTempUsageDetail_20' ) start [2024-12-17 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039629', 'tblTempUsageDetail_20' ) end [2024-12-17 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039629', 'tblTempVendorCDR_20' ) start [2024-12-17 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039629', 'tblTempVendorCDR_20' ) end [2024-12-17 08:36:19] Production.INFO: ProcessCDR(1,14039629,1,1,2) [2024-12-17 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039629', 'tblTempUsageDetail_20' ) start [2024-12-17 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039629', 'tblTempUsageDetail_20' ) end [2024-12-17 08:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:36:24] Production.INFO: ==8201== Releasing lock... [2024-12-17 08:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:36:24] Production.INFO: 33.25 MB #Memory Used# [2024-12-17 08:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:37:04 [end_date_ymd] => 2024-12-17 08:37:04 [RateCDR] => 1 ) [2024-12-17 08: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 05:37:04' and `end` < '2024-12-17 08: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-17 08:37:16] Production.INFO: count ==630 [2024-12-17 08:37:16] Production.ERROR: pbx CDR StartTime 2024-12-17 05:37:04 - End Time 2024-12-17 08:37:04 [2024-12-17 08:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039634', 'tblTempUsageDetail_20' ) start [2024-12-17 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039634', 'tblTempUsageDetail_20' ) end [2024-12-17 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039634', 'tblTempVendorCDR_20' ) start [2024-12-17 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039634', 'tblTempVendorCDR_20' ) end [2024-12-17 08:37:16] Production.INFO: ProcessCDR(1,14039634,1,1,2) [2024-12-17 08:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039634', 'tblTempUsageDetail_20' ) start [2024-12-17 08:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039634', 'tblTempUsageDetail_20' ) end [2024-12-17 08:37:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:37:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:37:19] Production.INFO: ==8272== Releasing lock... [2024-12-17 08:37:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:37:19] Production.INFO: 33.25 MB #Memory Used# [2024-12-17 08:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:38:04 [end_date_ymd] => 2024-12-17 08:38:04 [RateCDR] => 1 ) [2024-12-17 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-17 05:38:04' and `end` < '2024-12-17 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-17 08:38:16] Production.INFO: count ==655 [2024-12-17 08:38:16] Production.ERROR: pbx CDR StartTime 2024-12-17 05:38:04 - End Time 2024-12-17 08:38:04 [2024-12-17 08:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039639', 'tblTempUsageDetail_20' ) start [2024-12-17 08:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039639', 'tblTempUsageDetail_20' ) end [2024-12-17 08:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039639', 'tblTempVendorCDR_20' ) start [2024-12-17 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039639', 'tblTempVendorCDR_20' ) end [2024-12-17 08:38:17] Production.INFO: ProcessCDR(1,14039639,1,1,2) [2024-12-17 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039639', 'tblTempUsageDetail_20' ) start [2024-12-17 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039639', 'tblTempUsageDetail_20' ) end [2024-12-17 08:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:38:21] Production.INFO: ==8347== Releasing lock... [2024-12-17 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:38:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-17 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:39:05 [end_date_ymd] => 2024-12-17 08:39:05 [RateCDR] => 1 ) [2024-12-17 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:39:05' and `end` < '2024-12-17 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:39:18] Production.INFO: count ==657 [2024-12-17 08:39:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:39:05 - End Time 2024-12-17 08:39:05 [2024-12-17 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039644', 'tblTempUsageDetail_20' ) start [2024-12-17 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039644', 'tblTempUsageDetail_20' ) end [2024-12-17 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039644', 'tblTempVendorCDR_20' ) start [2024-12-17 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039644', 'tblTempVendorCDR_20' ) end [2024-12-17 08:39:18] Production.INFO: ProcessCDR(1,14039644,1,1,2) [2024-12-17 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039644', 'tblTempUsageDetail_20' ) start [2024-12-17 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039644', 'tblTempUsageDetail_20' ) end [2024-12-17 08:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:39:23] Production.INFO: ==8421== Releasing lock... [2024-12-17 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:39:23] Production.INFO: 33.5 MB #Memory Used# [2024-12-17 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:40:05 [end_date_ymd] => 2024-12-17 08:40:05 [RateCDR] => 1 ) [2024-12-17 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:40:05' and `end` < '2024-12-17 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:40:17] Production.INFO: count ==661 [2024-12-17 08:40:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:40:05 - End Time 2024-12-17 08:40:05 [2024-12-17 08:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039649', 'tblTempUsageDetail_20' ) start [2024-12-17 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039649', 'tblTempUsageDetail_20' ) end [2024-12-17 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039649', 'tblTempVendorCDR_20' ) start [2024-12-17 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039649', 'tblTempVendorCDR_20' ) end [2024-12-17 08:40:18] Production.INFO: ProcessCDR(1,14039649,1,1,2) [2024-12-17 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039649', 'tblTempUsageDetail_20' ) start [2024-12-17 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039649', 'tblTempUsageDetail_20' ) end [2024-12-17 08:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:40:21] Production.INFO: ==8496== Releasing lock... [2024-12-17 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:40:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-17 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:41:05 [end_date_ymd] => 2024-12-17 08:41:05 [RateCDR] => 1 ) [2024-12-17 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:41:05' and `end` < '2024-12-17 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:41:18] Production.INFO: count ==699 [2024-12-17 08:41:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:41:05 - End Time 2024-12-17 08:41:05 [2024-12-17 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039655', 'tblTempUsageDetail_20' ) start [2024-12-17 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039655', 'tblTempUsageDetail_20' ) end [2024-12-17 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039655', 'tblTempVendorCDR_20' ) start [2024-12-17 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039655', 'tblTempVendorCDR_20' ) end [2024-12-17 08:41:18] Production.INFO: ProcessCDR(1,14039655,1,1,2) [2024-12-17 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039655', 'tblTempUsageDetail_20' ) start [2024-12-17 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039655', 'tblTempUsageDetail_20' ) end [2024-12-17 08:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:41:23] Production.INFO: ==8573== Releasing lock... [2024-12-17 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:41:23] Production.INFO: 34.25 MB #Memory Used# [2024-12-17 08:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:42:04 [end_date_ymd] => 2024-12-17 08:42:04 [RateCDR] => 1 ) [2024-12-17 08: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 05:42:04' and `end` < '2024-12-17 08: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-17 08:42:16] Production.INFO: count ==706 [2024-12-17 08:42:16] Production.ERROR: pbx CDR StartTime 2024-12-17 05:42:04 - End Time 2024-12-17 08:42:04 [2024-12-17 08:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039660', 'tblTempUsageDetail_20' ) start [2024-12-17 08:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039660', 'tblTempUsageDetail_20' ) end [2024-12-17 08:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039660', 'tblTempVendorCDR_20' ) start [2024-12-17 08:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039660', 'tblTempVendorCDR_20' ) end [2024-12-17 08:42:16] Production.INFO: ProcessCDR(1,14039660,1,1,2) [2024-12-17 08:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039660', 'tblTempUsageDetail_20' ) start [2024-12-17 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039660', 'tblTempUsageDetail_20' ) end [2024-12-17 08:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:42:21] Production.INFO: ==8650== Releasing lock... [2024-12-17 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:42:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:43:05 [end_date_ymd] => 2024-12-17 08:43:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:43:05' and `end` < '2024-12-17 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-17 08:43:17] Production.INFO: count ==708 [2024-12-17 08:43:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:43:05 - End Time 2024-12-17 08:43:05 [2024-12-17 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039665', 'tblTempUsageDetail_20' ) start [2024-12-17 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039665', 'tblTempUsageDetail_20' ) end [2024-12-17 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039665', 'tblTempVendorCDR_20' ) start [2024-12-17 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039665', 'tblTempVendorCDR_20' ) end [2024-12-17 08:43:17] Production.INFO: ProcessCDR(1,14039665,1,1,2) [2024-12-17 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039665', 'tblTempUsageDetail_20' ) start [2024-12-17 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039665', 'tblTempUsageDetail_20' ) end [2024-12-17 08:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:43:22] Production.INFO: ==8726== Releasing lock... [2024-12-17 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:43:22] Production.INFO: 34 MB #Memory Used# [2024-12-17 08:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:44:04 [end_date_ymd] => 2024-12-17 08:44:04 [RateCDR] => 1 ) [2024-12-17 08: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 05:44:04' and `end` < '2024-12-17 08: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-17 08:44:16] Production.INFO: count ==709 [2024-12-17 08:44:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:44:04 - End Time 2024-12-17 08:44:04 [2024-12-17 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039670', 'tblTempUsageDetail_20' ) start [2024-12-17 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039670', 'tblTempUsageDetail_20' ) end [2024-12-17 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039670', 'tblTempVendorCDR_20' ) start [2024-12-17 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039670', 'tblTempVendorCDR_20' ) end [2024-12-17 08:44:17] Production.INFO: ProcessCDR(1,14039670,1,1,2) [2024-12-17 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039670', 'tblTempUsageDetail_20' ) start [2024-12-17 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039670', 'tblTempUsageDetail_20' ) end [2024-12-17 08:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:44:20] Production.INFO: ==8800== Releasing lock... [2024-12-17 08:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:44:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:45:05 [end_date_ymd] => 2024-12-17 08:45:05 [RateCDR] => 1 ) [2024-12-17 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:45:05' and `end` < '2024-12-17 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:45:17] Production.INFO: count ==711 [2024-12-17 08:45:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:45:05 - End Time 2024-12-17 08:45:05 [2024-12-17 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039675', 'tblTempUsageDetail_20' ) start [2024-12-17 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039675', 'tblTempUsageDetail_20' ) end [2024-12-17 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039675', 'tblTempVendorCDR_20' ) start [2024-12-17 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039675', 'tblTempVendorCDR_20' ) end [2024-12-17 08:45:17] Production.INFO: ProcessCDR(1,14039675,1,1,2) [2024-12-17 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039675', 'tblTempUsageDetail_20' ) start [2024-12-17 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039675', 'tblTempUsageDetail_20' ) end [2024-12-17 08:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:45:22] Production.INFO: ==8876== Releasing lock... [2024-12-17 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:45:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:46:05 [end_date_ymd] => 2024-12-17 08:46:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:46:05' and `end` < '2024-12-17 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-17 08:46:17] Production.INFO: count ==726 [2024-12-17 08:46:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:46:05 - End Time 2024-12-17 08:46:05 [2024-12-17 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039680', 'tblTempUsageDetail_20' ) start [2024-12-17 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039680', 'tblTempUsageDetail_20' ) end [2024-12-17 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039680', 'tblTempVendorCDR_20' ) start [2024-12-17 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039680', 'tblTempVendorCDR_20' ) end [2024-12-17 08:46:17] Production.INFO: ProcessCDR(1,14039680,1,1,2) [2024-12-17 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039680', 'tblTempUsageDetail_20' ) start [2024-12-17 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039680', 'tblTempUsageDetail_20' ) end [2024-12-17 08:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:46:22] Production.INFO: ==8958== Releasing lock... [2024-12-17 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:46:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-17 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:47:05 [end_date_ymd] => 2024-12-17 08:47:05 [RateCDR] => 1 ) [2024-12-17 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:47:05' and `end` < '2024-12-17 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:47:17] Production.INFO: count ==732 [2024-12-17 08:47:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:47:05 - End Time 2024-12-17 08:47:05 [2024-12-17 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039685', 'tblTempUsageDetail_20' ) start [2024-12-17 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039685', 'tblTempUsageDetail_20' ) end [2024-12-17 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039685', 'tblTempVendorCDR_20' ) start [2024-12-17 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039685', 'tblTempVendorCDR_20' ) end [2024-12-17 08:47:17] Production.INFO: ProcessCDR(1,14039685,1,1,2) [2024-12-17 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039685', 'tblTempUsageDetail_20' ) start [2024-12-17 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039685', 'tblTempUsageDetail_20' ) end [2024-12-17 08:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:47:22] Production.INFO: ==9073== Releasing lock... [2024-12-17 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:47:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:48:05 [end_date_ymd] => 2024-12-17 08:48:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:48:05' and `end` < '2024-12-17 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-17 08:48:18] Production.INFO: count ==733 [2024-12-17 08:48:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:48:05 - End Time 2024-12-17 08:48:05 [2024-12-17 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039690', 'tblTempUsageDetail_20' ) start [2024-12-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039690', 'tblTempUsageDetail_20' ) end [2024-12-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039690', 'tblTempVendorCDR_20' ) start [2024-12-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039690', 'tblTempVendorCDR_20' ) end [2024-12-17 08:48:18] Production.INFO: ProcessCDR(1,14039690,1,1,2) [2024-12-17 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039690', 'tblTempUsageDetail_20' ) start [2024-12-17 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039690', 'tblTempUsageDetail_20' ) end [2024-12-17 08:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:48:22] Production.INFO: ==9149== Releasing lock... [2024-12-17 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:48:22] Production.INFO: 34 MB #Memory Used# [2024-12-17 08:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:49:04 [end_date_ymd] => 2024-12-17 08:49:04 [RateCDR] => 1 ) [2024-12-17 08: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 05:49:04' and `end` < '2024-12-17 08: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-17 08:49:16] Production.INFO: count ==738 [2024-12-17 08:49:16] Production.ERROR: pbx CDR StartTime 2024-12-17 05:49:04 - End Time 2024-12-17 08:49:04 [2024-12-17 08:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039695', 'tblTempUsageDetail_20' ) start [2024-12-17 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039695', 'tblTempUsageDetail_20' ) end [2024-12-17 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039695', 'tblTempVendorCDR_20' ) start [2024-12-17 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039695', 'tblTempVendorCDR_20' ) end [2024-12-17 08:49:16] Production.INFO: ProcessCDR(1,14039695,1,1,2) [2024-12-17 08:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039695', 'tblTempUsageDetail_20' ) start [2024-12-17 08:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039695', 'tblTempUsageDetail_20' ) end [2024-12-17 08:49:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:49:20] Production.INFO: ==9222== Releasing lock... [2024-12-17 08:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:49:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:50:05 [end_date_ymd] => 2024-12-17 08:50:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:50:05' and `end` < '2024-12-17 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-17 08:50:18] Production.INFO: count ==743 [2024-12-17 08:50:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:50:05 - End Time 2024-12-17 08:50:05 [2024-12-17 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039700', 'tblTempUsageDetail_20' ) start [2024-12-17 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039700', 'tblTempUsageDetail_20' ) end [2024-12-17 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039700', 'tblTempVendorCDR_20' ) start [2024-12-17 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039700', 'tblTempVendorCDR_20' ) end [2024-12-17 08:50:18] Production.INFO: ProcessCDR(1,14039700,1,1,2) [2024-12-17 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039700', 'tblTempUsageDetail_20' ) start [2024-12-17 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039700', 'tblTempUsageDetail_20' ) end [2024-12-17 08:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:50:21] Production.INFO: ==9302== Releasing lock... [2024-12-17 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:50:21] Production.INFO: 34 MB #Memory Used# [2024-12-17 08:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:51:04 [end_date_ymd] => 2024-12-17 08:51:04 [RateCDR] => 1 ) [2024-12-17 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-17 05:51:04' and `end` < '2024-12-17 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-17 08:51:16] Production.INFO: count ==796 [2024-12-17 08:51:16] Production.ERROR: pbx CDR StartTime 2024-12-17 05:51:04 - End Time 2024-12-17 08:51:04 [2024-12-17 08:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039706', 'tblTempUsageDetail_20' ) start [2024-12-17 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039706', 'tblTempUsageDetail_20' ) end [2024-12-17 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039706', 'tblTempVendorCDR_20' ) start [2024-12-17 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039706', 'tblTempVendorCDR_20' ) end [2024-12-17 08:51:17] Production.INFO: ProcessCDR(1,14039706,1,1,2) [2024-12-17 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039706', 'tblTempUsageDetail_20' ) start [2024-12-17 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039706', 'tblTempUsageDetail_20' ) end [2024-12-17 08:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:51:20] Production.INFO: ==9379== Releasing lock... [2024-12-17 08:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:51:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-17 08:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:52:04 [end_date_ymd] => 2024-12-17 08:52:04 [RateCDR] => 1 ) [2024-12-17 08: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 05:52:04' and `end` < '2024-12-17 08: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-17 08:52:17] Production.INFO: count ==822 [2024-12-17 08:52:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:52:04 - End Time 2024-12-17 08:52:04 [2024-12-17 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039711', 'tblTempUsageDetail_20' ) start [2024-12-17 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039711', 'tblTempUsageDetail_20' ) end [2024-12-17 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039711', 'tblTempVendorCDR_20' ) start [2024-12-17 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039711', 'tblTempVendorCDR_20' ) end [2024-12-17 08:52:17] Production.INFO: ProcessCDR(1,14039711,1,1,2) [2024-12-17 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039711', 'tblTempUsageDetail_20' ) start [2024-12-17 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039711', 'tblTempUsageDetail_20' ) end [2024-12-17 08:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:52:22] Production.INFO: ==9451== Releasing lock... [2024-12-17 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:52:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-17 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:53:05 [end_date_ymd] => 2024-12-17 08:53:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:53:05' and `end` < '2024-12-17 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-17 08:53:17] Production.INFO: count ==827 [2024-12-17 08:53:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:53:05 - End Time 2024-12-17 08:53:05 [2024-12-17 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039716', 'tblTempUsageDetail_20' ) start [2024-12-17 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039716', 'tblTempUsageDetail_20' ) end [2024-12-17 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039716', 'tblTempVendorCDR_20' ) start [2024-12-17 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039716', 'tblTempVendorCDR_20' ) end [2024-12-17 08:53:18] Production.INFO: ProcessCDR(1,14039716,1,1,2) [2024-12-17 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039716', 'tblTempUsageDetail_20' ) start [2024-12-17 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039716', 'tblTempUsageDetail_20' ) end [2024-12-17 08:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:53:22] Production.INFO: ==9531== Releasing lock... [2024-12-17 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:53:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-17 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:54:04 [end_date_ymd] => 2024-12-17 08:54:04 [RateCDR] => 1 ) [2024-12-17 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-17 05:54:04' and `end` < '2024-12-17 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-17 08:54:17] Production.INFO: count ==846 [2024-12-17 08:54:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:54:04 - End Time 2024-12-17 08:54:04 [2024-12-17 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039721', 'tblTempUsageDetail_20' ) start [2024-12-17 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039721', 'tblTempUsageDetail_20' ) end [2024-12-17 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039721', 'tblTempVendorCDR_20' ) start [2024-12-17 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039721', 'tblTempVendorCDR_20' ) end [2024-12-17 08:54:17] Production.INFO: ProcessCDR(1,14039721,1,1,2) [2024-12-17 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039721', 'tblTempUsageDetail_20' ) start [2024-12-17 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039721', 'tblTempUsageDetail_20' ) end [2024-12-17 08:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:54:21] Production.INFO: ==9614== Releasing lock... [2024-12-17 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:54:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-17 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:55:05 [end_date_ymd] => 2024-12-17 08:55:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:55:05' and `end` < '2024-12-17 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-17 08:55:17] Production.INFO: count ==856 [2024-12-17 08:55:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:55:05 - End Time 2024-12-17 08:55:05 [2024-12-17 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039726', 'tblTempUsageDetail_20' ) start [2024-12-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039726', 'tblTempUsageDetail_20' ) end [2024-12-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039726', 'tblTempVendorCDR_20' ) start [2024-12-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039726', 'tblTempVendorCDR_20' ) end [2024-12-17 08:55:18] Production.INFO: ProcessCDR(1,14039726,1,1,2) [2024-12-17 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039726', 'tblTempUsageDetail_20' ) start [2024-12-17 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039726', 'tblTempUsageDetail_20' ) end [2024-12-17 08:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:55:22] Production.INFO: ==9693== Releasing lock... [2024-12-17 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:55:22] Production.INFO: 35 MB #Memory Used# [2024-12-17 08:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:56:04 [end_date_ymd] => 2024-12-17 08:56:04 [RateCDR] => 1 ) [2024-12-17 08: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 05:56:04' and `end` < '2024-12-17 08: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-17 08:56:17] Production.INFO: count ==868 [2024-12-17 08:56:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:56:04 - End Time 2024-12-17 08:56:04 [2024-12-17 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039731', 'tblTempUsageDetail_20' ) start [2024-12-17 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039731', 'tblTempUsageDetail_20' ) end [2024-12-17 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039731', 'tblTempVendorCDR_20' ) start [2024-12-17 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039731', 'tblTempVendorCDR_20' ) end [2024-12-17 08:56:17] Production.INFO: ProcessCDR(1,14039731,1,1,2) [2024-12-17 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039731', 'tblTempUsageDetail_20' ) start [2024-12-17 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039731', 'tblTempUsageDetail_20' ) end [2024-12-17 08:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:56:21] Production.INFO: ==9771== Releasing lock... [2024-12-17 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:56:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-17 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:57:05 [end_date_ymd] => 2024-12-17 08:57:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:57:05' and `end` < '2024-12-17 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-17 08:57:17] Production.INFO: count ==878 [2024-12-17 08:57:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:57:05 - End Time 2024-12-17 08:57:05 [2024-12-17 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039736', 'tblTempUsageDetail_20' ) start [2024-12-17 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039736', 'tblTempUsageDetail_20' ) end [2024-12-17 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039736', 'tblTempVendorCDR_20' ) start [2024-12-17 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039736', 'tblTempVendorCDR_20' ) end [2024-12-17 08:57:17] Production.INFO: ProcessCDR(1,14039736,1,1,2) [2024-12-17 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039736', 'tblTempUsageDetail_20' ) start [2024-12-17 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039736', 'tblTempUsageDetail_20' ) end [2024-12-17 08:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:57:22] Production.INFO: ==9847== Releasing lock... [2024-12-17 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:57:22] Production.INFO: 35 MB #Memory Used# [2024-12-17 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:58:05 [end_date_ymd] => 2024-12-17 08:58:05 [RateCDR] => 1 ) [2024-12-17 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 05:58:05' and `end` < '2024-12-17 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 08:58:18] Production.INFO: count ==912 [2024-12-17 08:58:18] Production.ERROR: pbx CDR StartTime 2024-12-17 05:58:05 - End Time 2024-12-17 08:58:05 [2024-12-17 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039741', 'tblTempUsageDetail_20' ) start [2024-12-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039741', 'tblTempUsageDetail_20' ) end [2024-12-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039741', 'tblTempVendorCDR_20' ) start [2024-12-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039741', 'tblTempVendorCDR_20' ) end [2024-12-17 08:58:18] Production.INFO: ProcessCDR(1,14039741,1,1,2) [2024-12-17 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039741', 'tblTempUsageDetail_20' ) start [2024-12-17 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039741', 'tblTempUsageDetail_20' ) end [2024-12-17 08:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:58:23] Production.INFO: ==9926== Releasing lock... [2024-12-17 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:58:23] Production.INFO: 35.25 MB #Memory Used# [2024-12-17 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 05:59:05 [end_date_ymd] => 2024-12-17 08:59:05 [RateCDR] => 1 ) [2024-12-17 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-17 05:59:05' and `end` < '2024-12-17 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-17 08:59:17] Production.INFO: count ==928 [2024-12-17 08:59:17] Production.ERROR: pbx CDR StartTime 2024-12-17 05:59:05 - End Time 2024-12-17 08:59:05 [2024-12-17 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039746', 'tblTempUsageDetail_20' ) start [2024-12-17 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039746', 'tblTempUsageDetail_20' ) end [2024-12-17 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039746', 'tblTempVendorCDR_20' ) start [2024-12-17 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039746', 'tblTempVendorCDR_20' ) end [2024-12-17 08:59:17] Production.INFO: ProcessCDR(1,14039746,1,1,2) [2024-12-17 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039746', 'tblTempUsageDetail_20' ) start [2024-12-17 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039746', 'tblTempUsageDetail_20' ) end [2024-12-17 08:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 08:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 08:59:22] Production.INFO: ==10006== Releasing lock... [2024-12-17 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 08:59:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-17 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:00:06 [end_date_ymd] => 2024-12-17 09:00:06 [RateCDR] => 1 ) [2024-12-17 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 06:00:06' and `end` < '2024-12-17 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 09:00:18] Production.INFO: count ==943 [2024-12-17 09:00:19] Production.ERROR: pbx CDR StartTime 2024-12-17 06:00:06 - End Time 2024-12-17 09:00:06 [2024-12-17 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039752', 'tblTempUsageDetail_20' ) start [2024-12-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039752', 'tblTempUsageDetail_20' ) end [2024-12-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039752', 'tblTempVendorCDR_20' ) start [2024-12-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039752', 'tblTempVendorCDR_20' ) end [2024-12-17 09:00:19] Production.INFO: ProcessCDR(1,14039752,1,1,2) [2024-12-17 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039752', 'tblTempUsageDetail_20' ) start [2024-12-17 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039752', 'tblTempUsageDetail_20' ) end [2024-12-17 09:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:00:23] Production.INFO: ==10088== Releasing lock... [2024-12-17 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:00:23] Production.INFO: 35.75 MB #Memory Used# [2024-12-17 09:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:01:04 [end_date_ymd] => 2024-12-17 09:01:04 [RateCDR] => 1 ) [2024-12-17 09: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 06:01:04' and `end` < '2024-12-17 09: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-17 09:01:16] Production.INFO: count ==1003 [2024-12-17 09:01:17] Production.ERROR: pbx CDR StartTime 2024-12-17 06:01:04 - End Time 2024-12-17 09:01:04 [2024-12-17 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039757', 'tblTempUsageDetail_20' ) start [2024-12-17 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039757', 'tblTempUsageDetail_20' ) end [2024-12-17 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039757', 'tblTempVendorCDR_20' ) start [2024-12-17 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039757', 'tblTempVendorCDR_20' ) end [2024-12-17 09:01:17] Production.INFO: ProcessCDR(1,14039757,1,1,2) [2024-12-17 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039757', 'tblTempUsageDetail_20' ) start [2024-12-17 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039757', 'tblTempUsageDetail_20' ) end [2024-12-17 09:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:01:20] Production.INFO: ==10187== Releasing lock... [2024-12-17 09:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:01:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-17 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:02:05 [end_date_ymd] => 2024-12-17 09:02:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:02:05' and `end` < '2024-12-17 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-17 09:02:17] Production.INFO: count ==1016 [2024-12-17 09:02:17] Production.ERROR: pbx CDR StartTime 2024-12-17 06:02:05 - End Time 2024-12-17 09:02:05 [2024-12-17 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039762', 'tblTempUsageDetail_20' ) start [2024-12-17 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039762', 'tblTempUsageDetail_20' ) end [2024-12-17 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039762', 'tblTempVendorCDR_20' ) start [2024-12-17 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039762', 'tblTempVendorCDR_20' ) end [2024-12-17 09:02:17] Production.INFO: ProcessCDR(1,14039762,1,1,2) [2024-12-17 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039762', 'tblTempUsageDetail_20' ) start [2024-12-17 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039762', 'tblTempUsageDetail_20' ) end [2024-12-17 09:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:02:22] Production.INFO: ==10262== Releasing lock... [2024-12-17 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:02:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-17 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:03:05 [end_date_ymd] => 2024-12-17 09:03:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:03:05' and `end` < '2024-12-17 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-17 09:03:17] Production.INFO: count ==1029 [2024-12-17 09:03:17] Production.ERROR: pbx CDR StartTime 2024-12-17 06:03:05 - End Time 2024-12-17 09:03:05 [2024-12-17 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039767', 'tblTempUsageDetail_20' ) start [2024-12-17 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039767', 'tblTempUsageDetail_20' ) end [2024-12-17 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039767', 'tblTempVendorCDR_20' ) start [2024-12-17 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039767', 'tblTempVendorCDR_20' ) end [2024-12-17 09:03:18] Production.INFO: ProcessCDR(1,14039767,1,1,2) [2024-12-17 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039767', 'tblTempUsageDetail_20' ) start [2024-12-17 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039767', 'tblTempUsageDetail_20' ) end [2024-12-17 09:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:03:22] Production.INFO: ==10380== Releasing lock... [2024-12-17 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:03:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-17 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:04:05 [end_date_ymd] => 2024-12-17 09:04:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:04:05' and `end` < '2024-12-17 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-17 09:04:17] Production.INFO: count ==1033 [2024-12-17 09:04:17] Production.ERROR: pbx CDR StartTime 2024-12-17 06:04:05 - End Time 2024-12-17 09:04:05 [2024-12-17 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039772', 'tblTempUsageDetail_20' ) start [2024-12-17 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039772', 'tblTempUsageDetail_20' ) end [2024-12-17 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039772', 'tblTempVendorCDR_20' ) start [2024-12-17 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039772', 'tblTempVendorCDR_20' ) end [2024-12-17 09:04:17] Production.INFO: ProcessCDR(1,14039772,1,1,2) [2024-12-17 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039772', 'tblTempUsageDetail_20' ) start [2024-12-17 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039772', 'tblTempUsageDetail_20' ) end [2024-12-17 09:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:04:21] Production.INFO: ==10459== Releasing lock... [2024-12-17 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:04:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-17 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:05:05 [end_date_ymd] => 2024-12-17 09:05:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:05:05' and `end` < '2024-12-17 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-17 09:05:18] Production.INFO: count ==1048 [2024-12-17 09:05:18] Production.ERROR: pbx CDR StartTime 2024-12-17 06:05:05 - End Time 2024-12-17 09:05:05 [2024-12-17 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039777', 'tblTempUsageDetail_20' ) start [2024-12-17 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039777', 'tblTempUsageDetail_20' ) end [2024-12-17 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039777', 'tblTempVendorCDR_20' ) start [2024-12-17 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039777', 'tblTempVendorCDR_20' ) end [2024-12-17 09:05:18] Production.INFO: ProcessCDR(1,14039777,1,1,2) [2024-12-17 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039777', 'tblTempUsageDetail_20' ) start [2024-12-17 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039777', 'tblTempUsageDetail_20' ) end [2024-12-17 09:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:05:21] Production.INFO: ==10531== Releasing lock... [2024-12-17 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:05:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-17 09:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:06:04 [end_date_ymd] => 2024-12-17 09:06:04 [RateCDR] => 1 ) [2024-12-17 09: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 06:06:04' and `end` < '2024-12-17 09: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-17 09:06:16] Production.INFO: count ==1064 [2024-12-17 09:06:17] Production.ERROR: pbx CDR StartTime 2024-12-17 06:06:04 - End Time 2024-12-17 09:06:04 [2024-12-17 09:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039782', 'tblTempUsageDetail_20' ) start [2024-12-17 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039782', 'tblTempUsageDetail_20' ) end [2024-12-17 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039782', 'tblTempVendorCDR_20' ) start [2024-12-17 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039782', 'tblTempVendorCDR_20' ) end [2024-12-17 09:06:17] Production.INFO: ProcessCDR(1,14039782,1,1,2) [2024-12-17 09:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039782', 'tblTempUsageDetail_20' ) start [2024-12-17 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039782', 'tblTempUsageDetail_20' ) end [2024-12-17 09:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:06:20] Production.INFO: ==10608== Releasing lock... [2024-12-17 09:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:06:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-17 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:07:05 [end_date_ymd] => 2024-12-17 09:07:05 [RateCDR] => 1 ) [2024-12-17 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 06:07:05' and `end` < '2024-12-17 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 09:07:18] Production.INFO: count ==1087 [2024-12-17 09:07:18] Production.ERROR: pbx CDR StartTime 2024-12-17 06:07:05 - End Time 2024-12-17 09:07:05 [2024-12-17 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039787', 'tblTempUsageDetail_20' ) start [2024-12-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039787', 'tblTempUsageDetail_20' ) end [2024-12-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039787', 'tblTempVendorCDR_20' ) start [2024-12-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039787', 'tblTempVendorCDR_20' ) end [2024-12-17 09:07:18] Production.INFO: ProcessCDR(1,14039787,1,1,2) [2024-12-17 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039787', 'tblTempUsageDetail_20' ) start [2024-12-17 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039787', 'tblTempUsageDetail_20' ) end [2024-12-17 09:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:07:22] Production.INFO: ==10683== Releasing lock... [2024-12-17 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:07:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-17 09:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:08:04 [end_date_ymd] => 2024-12-17 09:08:04 [RateCDR] => 1 ) [2024-12-17 09: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 06:08:04' and `end` < '2024-12-17 09: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-17 09:08:17] Production.INFO: count ==1102 [2024-12-17 09:08:18] Production.ERROR: pbx CDR StartTime 2024-12-17 06:08:04 - End Time 2024-12-17 09:08:04 [2024-12-17 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039792', 'tblTempUsageDetail_20' ) start [2024-12-17 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039792', 'tblTempUsageDetail_20' ) end [2024-12-17 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039792', 'tblTempVendorCDR_20' ) start [2024-12-17 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039792', 'tblTempVendorCDR_20' ) end [2024-12-17 09:08:18] Production.INFO: ProcessCDR(1,14039792,1,1,2) [2024-12-17 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039792', 'tblTempUsageDetail_20' ) start [2024-12-17 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039792', 'tblTempUsageDetail_20' ) end [2024-12-17 09:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:08:21] Production.INFO: ==10758== Releasing lock... [2024-12-17 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:08:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-17 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:09:04 [end_date_ymd] => 2024-12-17 09:09:04 [RateCDR] => 1 ) [2024-12-17 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-17 06:09:04' and `end` < '2024-12-17 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-17 09:09:17] Production.INFO: count ==1123 [2024-12-17 09:09:17] Production.ERROR: pbx CDR StartTime 2024-12-17 06:09:04 - End Time 2024-12-17 09:09:04 [2024-12-17 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039797', 'tblTempUsageDetail_20' ) start [2024-12-17 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039797', 'tblTempUsageDetail_20' ) end [2024-12-17 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039797', 'tblTempVendorCDR_20' ) start [2024-12-17 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039797', 'tblTempVendorCDR_20' ) end [2024-12-17 09:09:17] Production.INFO: ProcessCDR(1,14039797,1,1,2) [2024-12-17 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039797', 'tblTempUsageDetail_20' ) start [2024-12-17 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039797', 'tblTempUsageDetail_20' ) end [2024-12-17 09:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:09:22] Production.INFO: ==10835== Releasing lock... [2024-12-17 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:09:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:10:06 [end_date_ymd] => 2024-12-17 09:10:06 [RateCDR] => 1 ) [2024-12-17 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 06:10:06' and `end` < '2024-12-17 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 09:10:18] Production.INFO: count ==1144 [2024-12-17 09:10:18] Production.ERROR: pbx CDR StartTime 2024-12-17 06:10:06 - End Time 2024-12-17 09:10:06 [2024-12-17 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039802', 'tblTempUsageDetail_20' ) start [2024-12-17 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039802', 'tblTempUsageDetail_20' ) end [2024-12-17 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039802', 'tblTempVendorCDR_20' ) start [2024-12-17 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039802', 'tblTempVendorCDR_20' ) end [2024-12-17 09:10:18] Production.INFO: ProcessCDR(1,14039802,1,1,2) [2024-12-17 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039802', 'tblTempUsageDetail_20' ) start [2024-12-17 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039802', 'tblTempUsageDetail_20' ) end [2024-12-17 09:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:10:23] Production.INFO: ==10908== Releasing lock... [2024-12-17 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:10:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:11:04 [end_date_ymd] => 2024-12-17 09:11:04 [RateCDR] => 1 ) [2024-12-17 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-17 06:11:04' and `end` < '2024-12-17 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-17 09:11:21] Production.INFO: count ==1249 [2024-12-17 09:11:21] Production.ERROR: pbx CDR StartTime 2024-12-17 06:11:04 - End Time 2024-12-17 09:11:04 [2024-12-17 09:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039808', 'tblTempUsageDetail_20' ) start [2024-12-17 09:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039808', 'tblTempUsageDetail_20' ) end [2024-12-17 09:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039808', 'tblTempVendorCDR_20' ) start [2024-12-17 09:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039808', 'tblTempVendorCDR_20' ) end [2024-12-17 09:11:21] Production.INFO: ProcessCDR(1,14039808,1,1,2) [2024-12-17 09:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039808', 'tblTempUsageDetail_20' ) start [2024-12-17 09:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039808', 'tblTempUsageDetail_20' ) end [2024-12-17 09:11:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:11:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:11:26] Production.INFO: ==10988== Releasing lock... [2024-12-17 09:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:11:26] Production.INFO: 38 MB #Memory Used# [2024-12-17 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:12:05 [end_date_ymd] => 2024-12-17 09:12:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:12:05' and `end` < '2024-12-17 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-17 09:12:18] Production.INFO: count ==1260 [2024-12-17 09:12:18] Production.ERROR: pbx CDR StartTime 2024-12-17 06:12:05 - End Time 2024-12-17 09:12:05 [2024-12-17 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039813', 'tblTempUsageDetail_20' ) start [2024-12-17 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039813', 'tblTempUsageDetail_20' ) end [2024-12-17 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039813', 'tblTempVendorCDR_20' ) start [2024-12-17 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039813', 'tblTempVendorCDR_20' ) end [2024-12-17 09:12:18] Production.INFO: ProcessCDR(1,14039813,1,1,2) [2024-12-17 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039813', 'tblTempUsageDetail_20' ) start [2024-12-17 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039813', 'tblTempUsageDetail_20' ) end [2024-12-17 09:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:12:23] Production.INFO: ==11064== Releasing lock... [2024-12-17 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:12:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-17 09:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:13:04 [end_date_ymd] => 2024-12-17 09:13:04 [RateCDR] => 1 ) [2024-12-17 09: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 06:13:04' and `end` < '2024-12-17 09: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-17 09:13:17] Production.INFO: count ==1261 [2024-12-17 09:13:17] Production.ERROR: pbx CDR StartTime 2024-12-17 06:13:04 - End Time 2024-12-17 09:13:04 [2024-12-17 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039818', 'tblTempUsageDetail_20' ) start [2024-12-17 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039818', 'tblTempUsageDetail_20' ) end [2024-12-17 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039818', 'tblTempVendorCDR_20' ) start [2024-12-17 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039818', 'tblTempVendorCDR_20' ) end [2024-12-17 09:13:17] Production.INFO: ProcessCDR(1,14039818,1,1,2) [2024-12-17 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039818', 'tblTempUsageDetail_20' ) start [2024-12-17 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039818', 'tblTempUsageDetail_20' ) end [2024-12-17 09:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:13:20] Production.INFO: ==11137== Releasing lock... [2024-12-17 09:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:13:20] Production.INFO: 38 MB #Memory Used# [2024-12-17 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:14:05 [end_date_ymd] => 2024-12-17 09:14:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:14:05' and `end` < '2024-12-17 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-17 09:14:18] Production.INFO: count ==1295 [2024-12-17 09:14:18] Production.ERROR: pbx CDR StartTime 2024-12-17 06:14:05 - End Time 2024-12-17 09:14:05 [2024-12-17 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039823', 'tblTempUsageDetail_20' ) start [2024-12-17 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039823', 'tblTempUsageDetail_20' ) end [2024-12-17 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039823', 'tblTempVendorCDR_20' ) start [2024-12-17 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039823', 'tblTempVendorCDR_20' ) end [2024-12-17 09:14:19] Production.INFO: ProcessCDR(1,14039823,1,1,2) [2024-12-17 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039823', 'tblTempUsageDetail_20' ) start [2024-12-17 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039823', 'tblTempUsageDetail_20' ) end [2024-12-17 09:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:14:23] Production.INFO: ==11212== Releasing lock... [2024-12-17 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:14:23] Production.INFO: 38 MB #Memory Used# [2024-12-17 09:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:15:04 [end_date_ymd] => 2024-12-17 09:15:04 [RateCDR] => 1 ) [2024-12-17 09: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-17 06:15:04' and `end` < '2024-12-17 09: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-17 09:15:18] Production.INFO: count ==1314 [2024-12-17 09:15:18] Production.ERROR: pbx CDR StartTime 2024-12-17 06:15:04 - End Time 2024-12-17 09:15:04 [2024-12-17 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039828', 'tblTempUsageDetail_20' ) start [2024-12-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039828', 'tblTempUsageDetail_20' ) end [2024-12-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039828', 'tblTempVendorCDR_20' ) start [2024-12-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039828', 'tblTempVendorCDR_20' ) end [2024-12-17 09:15:18] Production.INFO: ProcessCDR(1,14039828,1,1,2) [2024-12-17 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039828', 'tblTempUsageDetail_20' ) start [2024-12-17 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039828', 'tblTempUsageDetail_20' ) end [2024-12-17 09:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:15:23] Production.INFO: ==11286== Releasing lock... [2024-12-17 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:15:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-17 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:16:05 [end_date_ymd] => 2024-12-17 09:16:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:16:05' and `end` < '2024-12-17 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-17 09:16:17] Production.INFO: count ==1322 [2024-12-17 09:16:17] Production.ERROR: pbx CDR StartTime 2024-12-17 06:16:05 - End Time 2024-12-17 09:16:05 [2024-12-17 09:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039833', 'tblTempUsageDetail_20' ) start [2024-12-17 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039833', 'tblTempUsageDetail_20' ) end [2024-12-17 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039833', 'tblTempVendorCDR_20' ) start [2024-12-17 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039833', 'tblTempVendorCDR_20' ) end [2024-12-17 09:16:18] Production.INFO: ProcessCDR(1,14039833,1,1,2) [2024-12-17 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039833', 'tblTempUsageDetail_20' ) start [2024-12-17 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039833', 'tblTempUsageDetail_20' ) end [2024-12-17 09:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:16:22] Production.INFO: ==11363== Releasing lock... [2024-12-17 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:16:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:17:05 [end_date_ymd] => 2024-12-17 09:17:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:17:05' and `end` < '2024-12-17 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-17 09:17:20] Production.INFO: count ==1333 [2024-12-17 09:17:20] Production.ERROR: pbx CDR StartTime 2024-12-17 06:17:05 - End Time 2024-12-17 09:17:05 [2024-12-17 09:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039838', 'tblTempUsageDetail_20' ) start [2024-12-17 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039838', 'tblTempUsageDetail_20' ) end [2024-12-17 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039838', 'tblTempVendorCDR_20' ) start [2024-12-17 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039838', 'tblTempVendorCDR_20' ) end [2024-12-17 09:17:20] Production.INFO: ProcessCDR(1,14039838,1,1,2) [2024-12-17 09:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039838', 'tblTempUsageDetail_20' ) start [2024-12-17 09:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039838', 'tblTempUsageDetail_20' ) end [2024-12-17 09:17:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:17:25] Production.INFO: ==11436== Releasing lock... [2024-12-17 09:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:17:25] Production.INFO: 38.5 MB #Memory Used# [2024-12-17 09:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:18:04 [end_date_ymd] => 2024-12-17 09:18:04 [RateCDR] => 1 ) [2024-12-17 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-17 06:18:04' and `end` < '2024-12-17 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-17 09:18:17] Production.INFO: count ==1342 [2024-12-17 09:18:17] Production.ERROR: pbx CDR StartTime 2024-12-17 06:18:04 - End Time 2024-12-17 09:18:04 [2024-12-17 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039843', 'tblTempUsageDetail_20' ) start [2024-12-17 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039843', 'tblTempUsageDetail_20' ) end [2024-12-17 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039843', 'tblTempVendorCDR_20' ) start [2024-12-17 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039843', 'tblTempVendorCDR_20' ) end [2024-12-17 09:18:17] Production.INFO: ProcessCDR(1,14039843,1,1,2) [2024-12-17 09:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039843', 'tblTempUsageDetail_20' ) start [2024-12-17 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039843', 'tblTempUsageDetail_20' ) end [2024-12-17 09:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:18:22] Production.INFO: ==11508== Releasing lock... [2024-12-17 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:18:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:19:04 [end_date_ymd] => 2024-12-17 09:19:04 [RateCDR] => 1 ) [2024-12-17 09: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-17 06:19:04' and `end` < '2024-12-17 09: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-17 09:19:20] Production.INFO: count ==1366 [2024-12-17 09:19:20] Production.ERROR: pbx CDR StartTime 2024-12-17 06:19:04 - End Time 2024-12-17 09:19:04 [2024-12-17 09:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039848', 'tblTempUsageDetail_20' ) start [2024-12-17 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039848', 'tblTempUsageDetail_20' ) end [2024-12-17 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039848', 'tblTempVendorCDR_20' ) start [2024-12-17 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039848', 'tblTempVendorCDR_20' ) end [2024-12-17 09:19:20] Production.INFO: ProcessCDR(1,14039848,1,1,2) [2024-12-17 09:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039848', 'tblTempUsageDetail_20' ) start [2024-12-17 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039848', 'tblTempUsageDetail_20' ) end [2024-12-17 09:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:19:25] Production.INFO: ==11620== Releasing lock... [2024-12-17 09:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:19:25] Production.INFO: 38.5 MB #Memory Used# [2024-12-17 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:20:06 [end_date_ymd] => 2024-12-17 09:20:06 [RateCDR] => 1 ) [2024-12-17 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 06:20:06' and `end` < '2024-12-17 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 09:20:18] Production.INFO: count ==1390 [2024-12-17 09:20:19] Production.ERROR: pbx CDR StartTime 2024-12-17 06:20:06 - End Time 2024-12-17 09:20:06 [2024-12-17 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039853', 'tblTempUsageDetail_20' ) start [2024-12-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039853', 'tblTempUsageDetail_20' ) end [2024-12-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039853', 'tblTempVendorCDR_20' ) start [2024-12-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039853', 'tblTempVendorCDR_20' ) end [2024-12-17 09:20:19] Production.INFO: ProcessCDR(1,14039853,1,1,2) [2024-12-17 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039853', 'tblTempUsageDetail_20' ) start [2024-12-17 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039853', 'tblTempUsageDetail_20' ) end [2024-12-17 09:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:20:23] Production.INFO: ==11693== Releasing lock... [2024-12-17 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:20:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 09:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:21:04 [end_date_ymd] => 2024-12-17 09:21:04 [RateCDR] => 1 ) [2024-12-17 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-17 06:21:04' and `end` < '2024-12-17 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-17 09:21:19] Production.INFO: count ==1471 [2024-12-17 09:21:19] Production.ERROR: pbx CDR StartTime 2024-12-17 06:21:04 - End Time 2024-12-17 09:21:04 [2024-12-17 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039859', 'tblTempUsageDetail_20' ) start [2024-12-17 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039859', 'tblTempUsageDetail_20' ) end [2024-12-17 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039859', 'tblTempVendorCDR_20' ) start [2024-12-17 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039859', 'tblTempVendorCDR_20' ) end [2024-12-17 09:21:20] Production.INFO: ProcessCDR(1,14039859,1,1,2) [2024-12-17 09:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039859', 'tblTempUsageDetail_20' ) start [2024-12-17 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039859', 'tblTempUsageDetail_20' ) end [2024-12-17 09:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:21:24] Production.INFO: ==11768== Releasing lock... [2024-12-17 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:21:24] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:22:05 [end_date_ymd] => 2024-12-17 09:22:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:22:05' and `end` < '2024-12-17 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-17 09:22:20] Production.INFO: count ==1485 [2024-12-17 09:22:20] Production.ERROR: pbx CDR StartTime 2024-12-17 06:22:05 - End Time 2024-12-17 09:22:05 [2024-12-17 09:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039864', 'tblTempUsageDetail_20' ) start [2024-12-17 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039864', 'tblTempUsageDetail_20' ) end [2024-12-17 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039864', 'tblTempVendorCDR_20' ) start [2024-12-17 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039864', 'tblTempVendorCDR_20' ) end [2024-12-17 09:22:20] Production.INFO: ProcessCDR(1,14039864,1,1,2) [2024-12-17 09:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039864', 'tblTempUsageDetail_20' ) start [2024-12-17 09:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039864', 'tblTempUsageDetail_20' ) end [2024-12-17 09:22:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:22:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:22:25] Production.INFO: ==11840== Releasing lock... [2024-12-17 09:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:22:25] Production.INFO: 39.5 MB #Memory Used# [2024-12-17 09:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:23:04 [end_date_ymd] => 2024-12-17 09:23:04 [RateCDR] => 1 ) [2024-12-17 09: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 06:23:04' and `end` < '2024-12-17 09: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-17 09:23:19] Production.INFO: count ==1491 [2024-12-17 09:23:19] Production.ERROR: pbx CDR StartTime 2024-12-17 06:23:04 - End Time 2024-12-17 09:23:04 [2024-12-17 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039869', 'tblTempUsageDetail_20' ) start [2024-12-17 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039869', 'tblTempUsageDetail_20' ) end [2024-12-17 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039869', 'tblTempVendorCDR_20' ) start [2024-12-17 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039869', 'tblTempVendorCDR_20' ) end [2024-12-17 09:23:19] Production.INFO: ProcessCDR(1,14039869,1,1,2) [2024-12-17 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039869', 'tblTempUsageDetail_20' ) start [2024-12-17 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039869', 'tblTempUsageDetail_20' ) end [2024-12-17 09:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:23:24] Production.INFO: ==11913== Releasing lock... [2024-12-17 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:23:24] Production.INFO: 40 MB #Memory Used# [2024-12-17 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:24:05 [end_date_ymd] => 2024-12-17 09:24:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:24:05' and `end` < '2024-12-17 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-17 09:24:24] Production.INFO: count ==1529 [2024-12-17 09:24:24] Production.ERROR: pbx CDR StartTime 2024-12-17 06:24:05 - End Time 2024-12-17 09:24:05 [2024-12-17 09:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039874', 'tblTempUsageDetail_20' ) start [2024-12-17 09:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039874', 'tblTempUsageDetail_20' ) end [2024-12-17 09:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039874', 'tblTempVendorCDR_20' ) start [2024-12-17 09:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039874', 'tblTempVendorCDR_20' ) end [2024-12-17 09:24:24] Production.INFO: ProcessCDR(1,14039874,1,1,2) [2024-12-17 09:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039874', 'tblTempUsageDetail_20' ) start [2024-12-17 09:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039874', 'tblTempUsageDetail_20' ) end [2024-12-17 09:24:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:24:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:24:29] Production.INFO: ==11986== Releasing lock... [2024-12-17 09:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:24:29] Production.INFO: 39.75 MB #Memory Used# [2024-12-17 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:25:04 [end_date_ymd] => 2024-12-17 09:25:04 [RateCDR] => 1 ) [2024-12-17 09: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 06:25:04' and `end` < '2024-12-17 09: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-17 09:25:21] Production.INFO: count ==1539 [2024-12-17 09:25:22] Production.ERROR: pbx CDR StartTime 2024-12-17 06:25:04 - End Time 2024-12-17 09:25:04 [2024-12-17 09:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039879', 'tblTempUsageDetail_20' ) start [2024-12-17 09:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039879', 'tblTempUsageDetail_20' ) end [2024-12-17 09:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039879', 'tblTempVendorCDR_20' ) start [2024-12-17 09:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039879', 'tblTempVendorCDR_20' ) end [2024-12-17 09:25:22] Production.INFO: ProcessCDR(1,14039879,1,1,2) [2024-12-17 09:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039879', 'tblTempUsageDetail_20' ) start [2024-12-17 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039879', 'tblTempUsageDetail_20' ) end [2024-12-17 09:25:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:25:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:25:26] Production.INFO: ==12057== Releasing lock... [2024-12-17 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:25:26] Production.INFO: 40 MB #Memory Used# [2024-12-17 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:26:05 [end_date_ymd] => 2024-12-17 09:26:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:26:05' and `end` < '2024-12-17 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-17 09:26:19] Production.INFO: count ==1561 [2024-12-17 09:26:20] Production.ERROR: pbx CDR StartTime 2024-12-17 06:26:05 - End Time 2024-12-17 09:26:05 [2024-12-17 09:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039884', 'tblTempUsageDetail_20' ) start [2024-12-17 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039884', 'tblTempUsageDetail_20' ) end [2024-12-17 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039884', 'tblTempVendorCDR_20' ) start [2024-12-17 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039884', 'tblTempVendorCDR_20' ) end [2024-12-17 09:26:20] Production.INFO: ProcessCDR(1,14039884,1,1,2) [2024-12-17 09:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039884', 'tblTempUsageDetail_20' ) start [2024-12-17 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039884', 'tblTempUsageDetail_20' ) end [2024-12-17 09:26:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:26:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:26:25] Production.INFO: ==12136== Releasing lock... [2024-12-17 09:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:26:25] Production.INFO: 40 MB #Memory Used# [2024-12-17 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:27:05 [end_date_ymd] => 2024-12-17 09:27:05 [RateCDR] => 1 ) [2024-12-17 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 06:27:05' and `end` < '2024-12-17 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 09:27:23] Production.INFO: count ==1582 [2024-12-17 09:27:23] Production.ERROR: pbx CDR StartTime 2024-12-17 06:27:05 - End Time 2024-12-17 09:27:05 [2024-12-17 09:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039889', 'tblTempUsageDetail_20' ) start [2024-12-17 09:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039889', 'tblTempUsageDetail_20' ) end [2024-12-17 09:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039889', 'tblTempVendorCDR_20' ) start [2024-12-17 09:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039889', 'tblTempVendorCDR_20' ) end [2024-12-17 09:27:23] Production.INFO: ProcessCDR(1,14039889,1,1,2) [2024-12-17 09:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039889', 'tblTempUsageDetail_20' ) start [2024-12-17 09:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039889', 'tblTempUsageDetail_20' ) end [2024-12-17 09:27:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:27:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:27:28] Production.INFO: ==12210== Releasing lock... [2024-12-17 09:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:27:28] Production.INFO: 40.5 MB #Memory Used# [2024-12-17 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:28:05 [end_date_ymd] => 2024-12-17 09:28:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:28:05' and `end` < '2024-12-17 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-17 09:28:25] Production.INFO: count ==1596 [2024-12-17 09:28:25] Production.ERROR: pbx CDR StartTime 2024-12-17 06:28:05 - End Time 2024-12-17 09:28:05 [2024-12-17 09:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039894', 'tblTempUsageDetail_20' ) start [2024-12-17 09:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039894', 'tblTempUsageDetail_20' ) end [2024-12-17 09:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039894', 'tblTempVendorCDR_20' ) start [2024-12-17 09:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039894', 'tblTempVendorCDR_20' ) end [2024-12-17 09:28:25] Production.INFO: ProcessCDR(1,14039894,1,1,2) [2024-12-17 09:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039894', 'tblTempUsageDetail_20' ) start [2024-12-17 09:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039894', 'tblTempUsageDetail_20' ) end [2024-12-17 09:28:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:28:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:28:30] Production.INFO: ==12280== Releasing lock... [2024-12-17 09:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:28:30] Production.INFO: 40.5 MB #Memory Used# [2024-12-17 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:29:05 [end_date_ymd] => 2024-12-17 09:29:05 [RateCDR] => 1 ) [2024-12-17 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 06:29:05' and `end` < '2024-12-17 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 09:29:20] Production.INFO: count ==1635 [2024-12-17 09:29:21] Production.ERROR: pbx CDR StartTime 2024-12-17 06:29:05 - End Time 2024-12-17 09:29:05 [2024-12-17 09:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039899', 'tblTempUsageDetail_20' ) start [2024-12-17 09:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039899', 'tblTempUsageDetail_20' ) end [2024-12-17 09:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039899', 'tblTempVendorCDR_20' ) start [2024-12-17 09:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039899', 'tblTempVendorCDR_20' ) end [2024-12-17 09:29:21] Production.INFO: ProcessCDR(1,14039899,1,1,2) [2024-12-17 09:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039899', 'tblTempUsageDetail_20' ) start [2024-12-17 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039899', 'tblTempUsageDetail_20' ) end [2024-12-17 09:29:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:29:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:29:25] Production.INFO: ==12353== Releasing lock... [2024-12-17 09:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:29:25] Production.INFO: 40.5 MB #Memory Used# [2024-12-17 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:30:05 [end_date_ymd] => 2024-12-17 09:30:05 [RateCDR] => 1 ) [2024-12-17 09: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 06:30:05' and `end` < '2024-12-17 09: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-17 09:30:21] Production.INFO: count ==1661 [2024-12-17 09:30:21] Production.ERROR: pbx CDR StartTime 2024-12-17 06:30:05 - End Time 2024-12-17 09:30:05 [2024-12-17 09:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039905', 'tblTempUsageDetail_20' ) start [2024-12-17 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039905', 'tblTempUsageDetail_20' ) end [2024-12-17 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039905', 'tblTempVendorCDR_20' ) start [2024-12-17 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039905', 'tblTempVendorCDR_20' ) end [2024-12-17 09:30:21] Production.INFO: ProcessCDR(1,14039905,1,1,2) [2024-12-17 09:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039905', 'tblTempUsageDetail_20' ) start [2024-12-17 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039905', 'tblTempUsageDetail_20' ) end [2024-12-17 09:30:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:30:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:30:26] Production.INFO: ==12429== Releasing lock... [2024-12-17 09:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:30:26] Production.INFO: 41 MB #Memory Used# [2024-12-17 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:31:05 [end_date_ymd] => 2024-12-17 09:31:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:31:05' and `end` < '2024-12-17 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-17 09:31:23] Production.INFO: count ==1750 [2024-12-17 09:31:24] Production.ERROR: pbx CDR StartTime 2024-12-17 06:31:05 - End Time 2024-12-17 09:31:05 [2024-12-17 09:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039910', 'tblTempUsageDetail_20' ) start [2024-12-17 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039910', 'tblTempUsageDetail_20' ) end [2024-12-17 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039910', 'tblTempVendorCDR_20' ) start [2024-12-17 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039910', 'tblTempVendorCDR_20' ) end [2024-12-17 09:31:24] Production.INFO: ProcessCDR(1,14039910,1,1,2) [2024-12-17 09:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039910', 'tblTempUsageDetail_20' ) start [2024-12-17 09:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039910', 'tblTempUsageDetail_20' ) end [2024-12-17 09:31:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:31:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:31:29] Production.INFO: ==12506== Releasing lock... [2024-12-17 09:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:31:29] Production.INFO: 41.5 MB #Memory Used# [2024-12-17 09:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:32:04 [end_date_ymd] => 2024-12-17 09:32:04 [RateCDR] => 1 ) [2024-12-17 09: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 06:32:04' and `end` < '2024-12-17 09: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-17 09:32:26] Production.INFO: count ==1779 [2024-12-17 09:32:26] Production.ERROR: pbx CDR StartTime 2024-12-17 06:32:04 - End Time 2024-12-17 09:32:04 [2024-12-17 09:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039915', 'tblTempUsageDetail_20' ) start [2024-12-17 09:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039915', 'tblTempUsageDetail_20' ) end [2024-12-17 09:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039915', 'tblTempVendorCDR_20' ) start [2024-12-17 09:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039915', 'tblTempVendorCDR_20' ) end [2024-12-17 09:32:26] Production.INFO: ProcessCDR(1,14039915,1,1,2) [2024-12-17 09:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039915', 'tblTempUsageDetail_20' ) start [2024-12-17 09:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039915', 'tblTempUsageDetail_20' ) end [2024-12-17 09:32:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:32:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:32:31] Production.INFO: ==12578== Releasing lock... [2024-12-17 09:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:32:31] Production.INFO: 42 MB #Memory Used# [2024-12-17 09:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:33:04 [end_date_ymd] => 2024-12-17 09:33:04 [RateCDR] => 1 ) [2024-12-17 09: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 06:33:04' and `end` < '2024-12-17 09: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-17 09:33:22] Production.INFO: count ==1796 [2024-12-17 09:33:23] Production.ERROR: pbx CDR StartTime 2024-12-17 06:33:04 - End Time 2024-12-17 09:33:04 [2024-12-17 09:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039920', 'tblTempUsageDetail_20' ) start [2024-12-17 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039920', 'tblTempUsageDetail_20' ) end [2024-12-17 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039920', 'tblTempVendorCDR_20' ) start [2024-12-17 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039920', 'tblTempVendorCDR_20' ) end [2024-12-17 09:33:23] Production.INFO: ProcessCDR(1,14039920,1,1,2) [2024-12-17 09:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039920', 'tblTempUsageDetail_20' ) start [2024-12-17 09:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039920', 'tblTempUsageDetail_20' ) end [2024-12-17 09:33:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:33:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:33:28] Production.INFO: ==12652== Releasing lock... [2024-12-17 09:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:33:28] Production.INFO: 41.75 MB #Memory Used# [2024-12-17 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:34:05 [end_date_ymd] => 2024-12-17 09:34:05 [RateCDR] => 1 ) [2024-12-17 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 06:34:05' and `end` < '2024-12-17 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 09:34:20] Production.INFO: count ==1824 [2024-12-17 09:34:21] Production.ERROR: pbx CDR StartTime 2024-12-17 06:34:05 - End Time 2024-12-17 09:34:05 [2024-12-17 09:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039925', 'tblTempUsageDetail_20' ) start [2024-12-17 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039925', 'tblTempUsageDetail_20' ) end [2024-12-17 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039925', 'tblTempVendorCDR_20' ) start [2024-12-17 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039925', 'tblTempVendorCDR_20' ) end [2024-12-17 09:34:21] Production.INFO: ProcessCDR(1,14039925,1,1,2) [2024-12-17 09:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039925', 'tblTempUsageDetail_20' ) start [2024-12-17 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039925', 'tblTempUsageDetail_20' ) end [2024-12-17 09:34:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:34:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:34:26] Production.INFO: ==12724== Releasing lock... [2024-12-17 09:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:34:26] Production.INFO: 42.75 MB #Memory Used# [2024-12-17 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:35:04 [end_date_ymd] => 2024-12-17 09:35:04 [RateCDR] => 1 ) [2024-12-17 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-17 06:35:04' and `end` < '2024-12-17 09: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-17 09:35:22] Production.INFO: count ==1848 [2024-12-17 09:35:23] Production.ERROR: pbx CDR StartTime 2024-12-17 06:35:04 - End Time 2024-12-17 09:35:04 [2024-12-17 09:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039930', 'tblTempUsageDetail_20' ) start [2024-12-17 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039930', 'tblTempUsageDetail_20' ) end [2024-12-17 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039930', 'tblTempVendorCDR_20' ) start [2024-12-17 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039930', 'tblTempVendorCDR_20' ) end [2024-12-17 09:35:23] Production.INFO: ProcessCDR(1,14039930,1,1,2) [2024-12-17 09:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039930', 'tblTempUsageDetail_20' ) start [2024-12-17 09:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039930', 'tblTempUsageDetail_20' ) end [2024-12-17 09:35:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:35:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:35:28] Production.INFO: ==12832== Releasing lock... [2024-12-17 09:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:35:28] Production.INFO: 42.25 MB #Memory Used# [2024-12-17 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:36:05 [end_date_ymd] => 2024-12-17 09:36:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:36:05' and `end` < '2024-12-17 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 09:36:18] Production.INFO: count ==1871 [2024-12-17 09:36:19] Production.ERROR: pbx CDR StartTime 2024-12-17 06:36:05 - End Time 2024-12-17 09:36:05 [2024-12-17 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039935', 'tblTempUsageDetail_20' ) start [2024-12-17 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039935', 'tblTempUsageDetail_20' ) end [2024-12-17 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039935', 'tblTempVendorCDR_20' ) start [2024-12-17 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039935', 'tblTempVendorCDR_20' ) end [2024-12-17 09:36:19] Production.INFO: ProcessCDR(1,14039935,1,1,2) [2024-12-17 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039935', 'tblTempUsageDetail_20' ) start [2024-12-17 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039935', 'tblTempUsageDetail_20' ) end [2024-12-17 09:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:36:24] Production.INFO: ==12906== Releasing lock... [2024-12-17 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:36:24] Production.INFO: 42.5 MB #Memory Used# [2024-12-17 09:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:37:04 [end_date_ymd] => 2024-12-17 09:37:04 [RateCDR] => 1 ) [2024-12-17 09: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 06:37:04' and `end` < '2024-12-17 09: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-17 09:37:18] Production.INFO: count ==1884 [2024-12-17 09:37:19] Production.ERROR: pbx CDR StartTime 2024-12-17 06:37:04 - End Time 2024-12-17 09:37:04 [2024-12-17 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039940', 'tblTempUsageDetail_20' ) start [2024-12-17 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039940', 'tblTempUsageDetail_20' ) end [2024-12-17 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039940', 'tblTempVendorCDR_20' ) start [2024-12-17 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039940', 'tblTempVendorCDR_20' ) end [2024-12-17 09:37:19] Production.INFO: ProcessCDR(1,14039940,1,1,2) [2024-12-17 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039940', 'tblTempUsageDetail_20' ) start [2024-12-17 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039940', 'tblTempUsageDetail_20' ) end [2024-12-17 09:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:37:24] Production.INFO: ==12981== Releasing lock... [2024-12-17 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:37:24] Production.INFO: 42.75 MB #Memory Used# [2024-12-17 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:38:05 [end_date_ymd] => 2024-12-17 09:38:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:38:05' and `end` < '2024-12-17 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-17 09:38:20] Production.INFO: count ==1903 [2024-12-17 09:38:21] Production.ERROR: pbx CDR StartTime 2024-12-17 06:38:05 - End Time 2024-12-17 09:38:05 [2024-12-17 09:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039945', 'tblTempUsageDetail_20' ) start [2024-12-17 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039945', 'tblTempUsageDetail_20' ) end [2024-12-17 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039945', 'tblTempVendorCDR_20' ) start [2024-12-17 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039945', 'tblTempVendorCDR_20' ) end [2024-12-17 09:38:21] Production.INFO: ProcessCDR(1,14039945,1,1,2) [2024-12-17 09:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039945', 'tblTempUsageDetail_20' ) start [2024-12-17 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039945', 'tblTempUsageDetail_20' ) end [2024-12-17 09:38:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:38:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:38:26] Production.INFO: ==13051== Releasing lock... [2024-12-17 09:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:38:26] Production.INFO: 43 MB #Memory Used# [2024-12-17 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:39:05 [end_date_ymd] => 2024-12-17 09:39:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:39:05' and `end` < '2024-12-17 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-17 09:39:19] Production.INFO: count ==1922 [2024-12-17 09:39:20] Production.ERROR: pbx CDR StartTime 2024-12-17 06:39:05 - End Time 2024-12-17 09:39:05 [2024-12-17 09:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039950', 'tblTempUsageDetail_20' ) start [2024-12-17 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039950', 'tblTempUsageDetail_20' ) end [2024-12-17 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039950', 'tblTempVendorCDR_20' ) start [2024-12-17 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039950', 'tblTempVendorCDR_20' ) end [2024-12-17 09:39:20] Production.INFO: ProcessCDR(1,14039950,1,1,2) [2024-12-17 09:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039950', 'tblTempUsageDetail_20' ) start [2024-12-17 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039950', 'tblTempUsageDetail_20' ) end [2024-12-17 09:39:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:39:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:39:24] Production.INFO: ==13128== Releasing lock... [2024-12-17 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:39:24] Production.INFO: 43.25 MB #Memory Used# [2024-12-17 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:40:06 [end_date_ymd] => 2024-12-17 09:40:06 [RateCDR] => 1 ) [2024-12-17 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 06:40:06' and `end` < '2024-12-17 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 09:40:25] Production.INFO: count ==1936 [2024-12-17 09:40:25] Production.ERROR: pbx CDR StartTime 2024-12-17 06:40:06 - End Time 2024-12-17 09:40:06 [2024-12-17 09:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039955', 'tblTempUsageDetail_20' ) start [2024-12-17 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039955', 'tblTempUsageDetail_20' ) end [2024-12-17 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039955', 'tblTempVendorCDR_20' ) start [2024-12-17 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039955', 'tblTempVendorCDR_20' ) end [2024-12-17 09:40:25] Production.INFO: ProcessCDR(1,14039955,1,1,2) [2024-12-17 09:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039955', 'tblTempUsageDetail_20' ) start [2024-12-17 09:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039955', 'tblTempUsageDetail_20' ) end [2024-12-17 09:40:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:40:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:40:30] Production.INFO: ==13207== Releasing lock... [2024-12-17 09:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:40:30] Production.INFO: 43 MB #Memory Used# [2024-12-17 09:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:41:04 [end_date_ymd] => 2024-12-17 09:41:04 [RateCDR] => 1 ) [2024-12-17 09: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 06:41:04' and `end` < '2024-12-17 09: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-17 09:41:25] Production.INFO: count ==2028 [2024-12-17 09:41:25] Production.ERROR: pbx CDR StartTime 2024-12-17 06:41:04 - End Time 2024-12-17 09:41:04 [2024-12-17 09:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039961', 'tblTempUsageDetail_20' ) start [2024-12-17 09:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039961', 'tblTempUsageDetail_20' ) end [2024-12-17 09:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039961', 'tblTempVendorCDR_20' ) start [2024-12-17 09:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039961', 'tblTempVendorCDR_20' ) end [2024-12-17 09:41:26] Production.INFO: ProcessCDR(1,14039961,1,1,2) [2024-12-17 09:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039961', 'tblTempUsageDetail_20' ) start [2024-12-17 09:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039961', 'tblTempUsageDetail_20' ) end [2024-12-17 09:41:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:41:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:41:30] Production.INFO: ==13280== Releasing lock... [2024-12-17 09:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:41:30] Production.INFO: 43.75 MB #Memory Used# [2024-12-17 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:42:05 [end_date_ymd] => 2024-12-17 09:42:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:42:05' and `end` < '2024-12-17 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-17 09:42:20] Production.INFO: count ==2051 [2024-12-17 09:42:21] Production.ERROR: pbx CDR StartTime 2024-12-17 06:42:05 - End Time 2024-12-17 09:42:05 [2024-12-17 09:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039966', 'tblTempUsageDetail_20' ) start [2024-12-17 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039966', 'tblTempUsageDetail_20' ) end [2024-12-17 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039966', 'tblTempVendorCDR_20' ) start [2024-12-17 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039966', 'tblTempVendorCDR_20' ) end [2024-12-17 09:42:21] Production.INFO: ProcessCDR(1,14039966,1,1,2) [2024-12-17 09:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039966', 'tblTempUsageDetail_20' ) start [2024-12-17 09:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039966', 'tblTempUsageDetail_20' ) end [2024-12-17 09:42:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:42:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:42:26] Production.INFO: ==13352== Releasing lock... [2024-12-17 09:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:42:26] Production.INFO: 43.75 MB #Memory Used# [2024-12-17 09:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:43:04 [end_date_ymd] => 2024-12-17 09:43:04 [RateCDR] => 1 ) [2024-12-17 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-17 06:43:04' and `end` < '2024-12-17 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-17 09:43:19] Production.INFO: count ==2078 [2024-12-17 09:43:20] Production.ERROR: pbx CDR StartTime 2024-12-17 06:43:04 - End Time 2024-12-17 09:43:04 [2024-12-17 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039971', 'tblTempUsageDetail_20' ) start [2024-12-17 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039971', 'tblTempUsageDetail_20' ) end [2024-12-17 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039971', 'tblTempVendorCDR_20' ) start [2024-12-17 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039971', 'tblTempVendorCDR_20' ) end [2024-12-17 09:43:20] Production.INFO: ProcessCDR(1,14039971,1,1,2) [2024-12-17 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039971', 'tblTempUsageDetail_20' ) start [2024-12-17 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039971', 'tblTempUsageDetail_20' ) end [2024-12-17 09:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:43:24] Production.INFO: ==13430== Releasing lock... [2024-12-17 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:43:24] Production.INFO: 44 MB #Memory Used# [2024-12-17 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:44:05 [end_date_ymd] => 2024-12-17 09:44:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:44:05' and `end` < '2024-12-17 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-17 09:44:17] Production.INFO: count ==2098 [2024-12-17 09:44:18] Production.ERROR: pbx CDR StartTime 2024-12-17 06:44:05 - End Time 2024-12-17 09:44:05 [2024-12-17 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039976', 'tblTempUsageDetail_20' ) start [2024-12-17 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039976', 'tblTempUsageDetail_20' ) end [2024-12-17 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039976', 'tblTempVendorCDR_20' ) start [2024-12-17 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039976', 'tblTempVendorCDR_20' ) end [2024-12-17 09:44:18] Production.INFO: ProcessCDR(1,14039976,1,1,2) [2024-12-17 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039976', 'tblTempUsageDetail_20' ) start [2024-12-17 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039976', 'tblTempUsageDetail_20' ) end [2024-12-17 09:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:44:21] Production.INFO: ==13511== Releasing lock... [2024-12-17 09:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:44:21] Production.INFO: 44 MB #Memory Used# [2024-12-17 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:45:05 [end_date_ymd] => 2024-12-17 09:45:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:45:05' and `end` < '2024-12-17 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-17 09:45:18] Production.INFO: count ==2116 [2024-12-17 09:45:18] Production.ERROR: pbx CDR StartTime 2024-12-17 06:45:05 - End Time 2024-12-17 09:45:05 [2024-12-17 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039981', 'tblTempUsageDetail_20' ) start [2024-12-17 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039981', 'tblTempUsageDetail_20' ) end [2024-12-17 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039981', 'tblTempVendorCDR_20' ) start [2024-12-17 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039981', 'tblTempVendorCDR_20' ) end [2024-12-17 09:45:18] Production.INFO: ProcessCDR(1,14039981,1,1,2) [2024-12-17 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039981', 'tblTempUsageDetail_20' ) start [2024-12-17 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039981', 'tblTempUsageDetail_20' ) end [2024-12-17 09:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:45:23] Production.INFO: ==13596== Releasing lock... [2024-12-17 09:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:45:23] Production.INFO: 44.25 MB #Memory Used# [2024-12-17 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:46:05 [end_date_ymd] => 2024-12-17 09:46:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:46:05' and `end` < '2024-12-17 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-17 09:46:24] Production.INFO: count ==2145 [2024-12-17 09:46:25] Production.ERROR: pbx CDR StartTime 2024-12-17 06:46:05 - End Time 2024-12-17 09:46:05 [2024-12-17 09:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039986', 'tblTempUsageDetail_20' ) start [2024-12-17 09:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039986', 'tblTempUsageDetail_20' ) end [2024-12-17 09:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039986', 'tblTempVendorCDR_20' ) start [2024-12-17 09:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039986', 'tblTempVendorCDR_20' ) end [2024-12-17 09:46:25] Production.INFO: ProcessCDR(1,14039986,1,1,2) [2024-12-17 09:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039986', 'tblTempUsageDetail_20' ) start [2024-12-17 09:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039986', 'tblTempUsageDetail_20' ) end [2024-12-17 09:46:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:46:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:46:29] Production.INFO: ==13670== Releasing lock... [2024-12-17 09:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:46:29] Production.INFO: 44.5 MB #Memory Used# [2024-12-17 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:47:05 [end_date_ymd] => 2024-12-17 09:47:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:47:05' and `end` < '2024-12-17 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-17 09:47:24] Production.INFO: count ==2205 [2024-12-17 09:47:25] Production.ERROR: pbx CDR StartTime 2024-12-17 06:47:05 - End Time 2024-12-17 09:47:05 [2024-12-17 09:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039991', 'tblTempUsageDetail_20' ) start [2024-12-17 09:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039991', 'tblTempUsageDetail_20' ) end [2024-12-17 09:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039991', 'tblTempVendorCDR_20' ) start [2024-12-17 09:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039991', 'tblTempVendorCDR_20' ) end [2024-12-17 09:47:25] Production.INFO: ProcessCDR(1,14039991,1,1,2) [2024-12-17 09:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039991', 'tblTempUsageDetail_20' ) start [2024-12-17 09:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039991', 'tblTempUsageDetail_20' ) end [2024-12-17 09:47:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:47:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:47:29] Production.INFO: ==13752== Releasing lock... [2024-12-17 09:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:47:29] Production.INFO: 45 MB #Memory Used# [2024-12-17 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:48:04 [end_date_ymd] => 2024-12-17 09:48:04 [RateCDR] => 1 ) [2024-12-17 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-17 06:48:04' and `end` < '2024-12-17 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-17 09:48:20] Production.INFO: count ==2224 [2024-12-17 09:48:21] Production.ERROR: pbx CDR StartTime 2024-12-17 06:48:04 - End Time 2024-12-17 09:48:04 [2024-12-17 09:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039996', 'tblTempUsageDetail_20' ) start [2024-12-17 09:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14039996', 'tblTempUsageDetail_20' ) end [2024-12-17 09:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039996', 'tblTempVendorCDR_20' ) start [2024-12-17 09:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14039996', 'tblTempVendorCDR_20' ) end [2024-12-17 09:48:21] Production.INFO: ProcessCDR(1,14039996,1,1,2) [2024-12-17 09:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14039996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14039996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14039996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14039996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039996', 'tblTempUsageDetail_20' ) start [2024-12-17 09:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14039996', 'tblTempUsageDetail_20' ) end [2024-12-17 09:48:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:48:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:48:26] Production.INFO: ==13832== Releasing lock... [2024-12-17 09:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:48:26] Production.INFO: 45 MB #Memory Used# [2024-12-17 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:49:05 [end_date_ymd] => 2024-12-17 09:49:05 [RateCDR] => 1 ) [2024-12-17 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 06:49:05' and `end` < '2024-12-17 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 09:49:22] Production.INFO: count ==2262 [2024-12-17 09:49:23] Production.ERROR: pbx CDR StartTime 2024-12-17 06:49:05 - End Time 2024-12-17 09:49:05 [2024-12-17 09:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040001', 'tblTempUsageDetail_20' ) start [2024-12-17 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040001', 'tblTempUsageDetail_20' ) end [2024-12-17 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040001', 'tblTempVendorCDR_20' ) start [2024-12-17 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040001', 'tblTempVendorCDR_20' ) end [2024-12-17 09:49:23] Production.INFO: ProcessCDR(1,14040001,1,1,2) [2024-12-17 09:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040001', 'tblTempUsageDetail_20' ) start [2024-12-17 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040001', 'tblTempUsageDetail_20' ) end [2024-12-17 09:49:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:49:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:49:26] Production.INFO: ==13909== Releasing lock... [2024-12-17 09:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:49:26] Production.INFO: 45.25 MB #Memory Used# [2024-12-17 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:50:05 [end_date_ymd] => 2024-12-17 09:50:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:50:05' and `end` < '2024-12-17 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-17 09:50:22] Production.INFO: count ==2272 [2024-12-17 09:50:23] Production.ERROR: pbx CDR StartTime 2024-12-17 06:50:05 - End Time 2024-12-17 09:50:05 [2024-12-17 09:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040007', 'tblTempUsageDetail_20' ) start [2024-12-17 09:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040007', 'tblTempUsageDetail_20' ) end [2024-12-17 09:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040007', 'tblTempVendorCDR_20' ) start [2024-12-17 09:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040007', 'tblTempVendorCDR_20' ) end [2024-12-17 09:50:23] Production.INFO: ProcessCDR(1,14040007,1,1,2) [2024-12-17 09:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040007', 'tblTempUsageDetail_20' ) start [2024-12-17 09:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040007', 'tblTempUsageDetail_20' ) end [2024-12-17 09:50:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:50:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:50:28] Production.INFO: ==14029== Releasing lock... [2024-12-17 09:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:50:28] Production.INFO: 45.25 MB #Memory Used# [2024-12-17 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:51:05 [end_date_ymd] => 2024-12-17 09:51:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:51:05' and `end` < '2024-12-17 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-17 09:51:18] Production.INFO: count ==2329 [2024-12-17 09:51:19] Production.ERROR: pbx CDR StartTime 2024-12-17 06:51:05 - End Time 2024-12-17 09:51:05 [2024-12-17 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040012', 'tblTempUsageDetail_20' ) start [2024-12-17 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040012', 'tblTempUsageDetail_20' ) end [2024-12-17 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040012', 'tblTempVendorCDR_20' ) start [2024-12-17 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040012', 'tblTempVendorCDR_20' ) end [2024-12-17 09:51:19] Production.INFO: ProcessCDR(1,14040012,1,1,2) [2024-12-17 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040012', 'tblTempUsageDetail_20' ) start [2024-12-17 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040012', 'tblTempUsageDetail_20' ) end [2024-12-17 09:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:51:22] Production.INFO: ==14113== Releasing lock... [2024-12-17 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:51:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-17 09:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:52:04 [end_date_ymd] => 2024-12-17 09:52:04 [RateCDR] => 1 ) [2024-12-17 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-17 06:52:04' and `end` < '2024-12-17 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-17 09:52:26] Production.INFO: count ==2333 [2024-12-17 09:52:27] Production.ERROR: pbx CDR StartTime 2024-12-17 06:52:04 - End Time 2024-12-17 09:52:04 [2024-12-17 09:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040017', 'tblTempUsageDetail_20' ) start [2024-12-17 09:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040017', 'tblTempUsageDetail_20' ) end [2024-12-17 09:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040017', 'tblTempVendorCDR_20' ) start [2024-12-17 09:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040017', 'tblTempVendorCDR_20' ) end [2024-12-17 09:52:27] Production.INFO: ProcessCDR(1,14040017,1,1,2) [2024-12-17 09:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040017', 'tblTempUsageDetail_20' ) start [2024-12-17 09:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040017', 'tblTempUsageDetail_20' ) end [2024-12-17 09:52:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:52:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:52:32] Production.INFO: ==14189== Releasing lock... [2024-12-17 09:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:52:32] Production.INFO: 45.5 MB #Memory Used# [2024-12-17 09:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:53:04 [end_date_ymd] => 2024-12-17 09:53:04 [RateCDR] => 1 ) [2024-12-17 09: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-17 06:53:04' and `end` < '2024-12-17 09: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-17 09:53:21] Production.INFO: count ==2373 [2024-12-17 09:53:22] Production.ERROR: pbx CDR StartTime 2024-12-17 06:53:04 - End Time 2024-12-17 09:53:04 [2024-12-17 09:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040022', 'tblTempUsageDetail_20' ) start [2024-12-17 09:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040022', 'tblTempUsageDetail_20' ) end [2024-12-17 09:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040022', 'tblTempVendorCDR_20' ) start [2024-12-17 09:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040022', 'tblTempVendorCDR_20' ) end [2024-12-17 09:53:22] Production.INFO: ProcessCDR(1,14040022,1,1,2) [2024-12-17 09:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040022', 'tblTempUsageDetail_20' ) start [2024-12-17 09:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040022', 'tblTempUsageDetail_20' ) end [2024-12-17 09:53:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:53:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:53:27] Production.INFO: ==14270== Releasing lock... [2024-12-17 09:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:53:27] Production.INFO: 46 MB #Memory Used# [2024-12-17 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:54:05 [end_date_ymd] => 2024-12-17 09:54:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:54:05' and `end` < '2024-12-17 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-17 09:54:20] Production.INFO: count ==2375 [2024-12-17 09:54:21] Production.ERROR: pbx CDR StartTime 2024-12-17 06:54:05 - End Time 2024-12-17 09:54:05 [2024-12-17 09:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040027', 'tblTempUsageDetail_20' ) start [2024-12-17 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040027', 'tblTempUsageDetail_20' ) end [2024-12-17 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040027', 'tblTempVendorCDR_20' ) start [2024-12-17 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040027', 'tblTempVendorCDR_20' ) end [2024-12-17 09:54:21] Production.INFO: ProcessCDR(1,14040027,1,1,2) [2024-12-17 09:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040027', 'tblTempUsageDetail_20' ) start [2024-12-17 09:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040027', 'tblTempUsageDetail_20' ) end [2024-12-17 09:54:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:54:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:54:26] Production.INFO: ==14355== Releasing lock... [2024-12-17 09:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:54:26] Production.INFO: 46 MB #Memory Used# [2024-12-17 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:55:05 [end_date_ymd] => 2024-12-17 09:55:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:55:05' and `end` < '2024-12-17 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-17 09:55:27] Production.INFO: count ==2395 [2024-12-17 09:55:28] Production.ERROR: pbx CDR StartTime 2024-12-17 06:55:05 - End Time 2024-12-17 09:55:05 [2024-12-17 09:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040032', 'tblTempUsageDetail_20' ) start [2024-12-17 09:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040032', 'tblTempUsageDetail_20' ) end [2024-12-17 09:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040032', 'tblTempVendorCDR_20' ) start [2024-12-17 09:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040032', 'tblTempVendorCDR_20' ) end [2024-12-17 09:55:28] Production.INFO: ProcessCDR(1,14040032,1,1,2) [2024-12-17 09:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040032', 'tblTempUsageDetail_20' ) start [2024-12-17 09:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040032', 'tblTempUsageDetail_20' ) end [2024-12-17 09:55:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:55:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:55:33] Production.INFO: ==14434== Releasing lock... [2024-12-17 09:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:55:33] Production.INFO: 46 MB #Memory Used# [2024-12-17 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:56:05 [end_date_ymd] => 2024-12-17 09:56:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:56:05' and `end` < '2024-12-17 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-17 09:56:21] Production.INFO: count ==2408 [2024-12-17 09:56:22] Production.ERROR: pbx CDR StartTime 2024-12-17 06:56:05 - End Time 2024-12-17 09:56:05 [2024-12-17 09:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040037', 'tblTempUsageDetail_20' ) start [2024-12-17 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040037', 'tblTempUsageDetail_20' ) end [2024-12-17 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040037', 'tblTempVendorCDR_20' ) start [2024-12-17 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040037', 'tblTempVendorCDR_20' ) end [2024-12-17 09:56:22] Production.INFO: ProcessCDR(1,14040037,1,1,2) [2024-12-17 09:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040037', 'tblTempUsageDetail_20' ) start [2024-12-17 09:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040037', 'tblTempUsageDetail_20' ) end [2024-12-17 09:56:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:56:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:56:27] Production.INFO: ==14513== Releasing lock... [2024-12-17 09:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:56:27] Production.INFO: 46.25 MB #Memory Used# [2024-12-17 09:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:57:04 [end_date_ymd] => 2024-12-17 09:57:04 [RateCDR] => 1 ) [2024-12-17 09: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 06:57:04' and `end` < '2024-12-17 09: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-17 09:57:17] Production.INFO: count ==2436 [2024-12-17 09:57:18] Production.ERROR: pbx CDR StartTime 2024-12-17 06:57:04 - End Time 2024-12-17 09:57:04 [2024-12-17 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040042', 'tblTempUsageDetail_20' ) start [2024-12-17 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040042', 'tblTempUsageDetail_20' ) end [2024-12-17 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040042', 'tblTempVendorCDR_20' ) start [2024-12-17 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040042', 'tblTempVendorCDR_20' ) end [2024-12-17 09:57:18] Production.INFO: ProcessCDR(1,14040042,1,1,2) [2024-12-17 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040042', 'tblTempUsageDetail_20' ) start [2024-12-17 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040042', 'tblTempUsageDetail_20' ) end [2024-12-17 09:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:57:23] Production.INFO: ==14590== Releasing lock... [2024-12-17 09:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:57:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-17 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:58:05 [end_date_ymd] => 2024-12-17 09:58:05 [RateCDR] => 1 ) [2024-12-17 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-17 06:58:05' and `end` < '2024-12-17 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-17 09:58:21] Production.INFO: count ==2454 [2024-12-17 09:58:22] Production.ERROR: pbx CDR StartTime 2024-12-17 06:58:05 - End Time 2024-12-17 09:58:05 [2024-12-17 09:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040047', 'tblTempUsageDetail_20' ) start [2024-12-17 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040047', 'tblTempUsageDetail_20' ) end [2024-12-17 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040047', 'tblTempVendorCDR_20' ) start [2024-12-17 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040047', 'tblTempVendorCDR_20' ) end [2024-12-17 09:58:22] Production.INFO: ProcessCDR(1,14040047,1,1,2) [2024-12-17 09:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040047', 'tblTempUsageDetail_20' ) start [2024-12-17 09:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040047', 'tblTempUsageDetail_20' ) end [2024-12-17 09:58:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:58:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:58:27] Production.INFO: ==14667== Releasing lock... [2024-12-17 09:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:58:27] Production.INFO: 46.5 MB #Memory Used# [2024-12-17 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 06:59:05 [end_date_ymd] => 2024-12-17 09:59:05 [RateCDR] => 1 ) [2024-12-17 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 06:59:05' and `end` < '2024-12-17 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 09:59:17] Production.INFO: count ==2470 [2024-12-17 09:59:18] Production.ERROR: pbx CDR StartTime 2024-12-17 06:59:05 - End Time 2024-12-17 09:59:05 [2024-12-17 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040052', 'tblTempUsageDetail_20' ) start [2024-12-17 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040052', 'tblTempUsageDetail_20' ) end [2024-12-17 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040052', 'tblTempVendorCDR_20' ) start [2024-12-17 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040052', 'tblTempVendorCDR_20' ) end [2024-12-17 09:59:19] Production.INFO: ProcessCDR(1,14040052,1,1,2) [2024-12-17 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040052', 'tblTempUsageDetail_20' ) start [2024-12-17 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040052', 'tblTempUsageDetail_20' ) end [2024-12-17 09:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 09:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 09:59:23] Production.INFO: ==14748== Releasing lock... [2024-12-17 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 09:59:23] Production.INFO: 46.5 MB #Memory Used# [2024-12-17 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:00:06 [end_date_ymd] => 2024-12-17 10:00:06 [RateCDR] => 1 ) [2024-12-17 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-17 07:00:06' and `end` < '2024-12-17 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-17 10:00:19] Production.INFO: count ==2482 [2024-12-17 10:00:20] Production.ERROR: pbx CDR StartTime 2024-12-17 07:00:06 - End Time 2024-12-17 10:00:06 [2024-12-17 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040058', 'tblTempUsageDetail_20' ) start [2024-12-17 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040058', 'tblTempUsageDetail_20' ) end [2024-12-17 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040058', 'tblTempVendorCDR_20' ) start [2024-12-17 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040058', 'tblTempVendorCDR_20' ) end [2024-12-17 10:00:20] Production.INFO: ProcessCDR(1,14040058,1,1,2) [2024-12-17 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040058', 'tblTempUsageDetail_20' ) start [2024-12-17 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040058', 'tblTempUsageDetail_20' ) end [2024-12-17 10:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:00:25] Production.INFO: ==14877== Releasing lock... [2024-12-17 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:00:25] Production.INFO: 47 MB #Memory Used# [2024-12-17 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:01:04 [end_date_ymd] => 2024-12-17 10:01:04 [RateCDR] => 1 ) [2024-12-17 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-17 07:01:04' and `end` < '2024-12-17 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-17 10:01:18] Production.INFO: count ==2592 [2024-12-17 10:01:19] Production.ERROR: pbx CDR StartTime 2024-12-17 07:01:04 - End Time 2024-12-17 10:01:04 [2024-12-17 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040063', 'tblTempUsageDetail_20' ) start [2024-12-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040063', 'tblTempUsageDetail_20' ) end [2024-12-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040063', 'tblTempVendorCDR_20' ) start [2024-12-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040063', 'tblTempVendorCDR_20' ) end [2024-12-17 10:01:19] Production.INFO: ProcessCDR(1,14040063,1,1,2) [2024-12-17 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040063', 'tblTempUsageDetail_20' ) start [2024-12-17 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040063', 'tblTempUsageDetail_20' ) end [2024-12-17 10:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:01:24] Production.INFO: ==15024== Releasing lock... [2024-12-17 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:01:24] Production.INFO: 47.5 MB #Memory Used# [2024-12-17 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:02:05 [end_date_ymd] => 2024-12-17 10:02:05 [RateCDR] => 1 ) [2024-12-17 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 07:02:05' and `end` < '2024-12-17 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 10:02:21] Production.INFO: count ==2617 [2024-12-17 10:02:22] Production.ERROR: pbx CDR StartTime 2024-12-17 07:02:05 - End Time 2024-12-17 10:02:05 [2024-12-17 10:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040068', 'tblTempUsageDetail_20' ) start [2024-12-17 10:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040068', 'tblTempUsageDetail_20' ) end [2024-12-17 10:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040068', 'tblTempVendorCDR_20' ) start [2024-12-17 10:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040068', 'tblTempVendorCDR_20' ) end [2024-12-17 10:02:22] Production.INFO: ProcessCDR(1,14040068,1,1,2) [2024-12-17 10:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040068', 'tblTempUsageDetail_20' ) start [2024-12-17 10:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040068', 'tblTempUsageDetail_20' ) end [2024-12-17 10:02:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:02:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:02:27] Production.INFO: ==15159== Releasing lock... [2024-12-17 10:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:02:27] Production.INFO: 47.75 MB #Memory Used# [2024-12-17 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:03:05 [end_date_ymd] => 2024-12-17 10:03:05 [RateCDR] => 1 ) [2024-12-17 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 07:03:05' and `end` < '2024-12-17 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 10:03:25] Production.INFO: count ==2646 [2024-12-17 10:03:26] Production.ERROR: pbx CDR StartTime 2024-12-17 07:03:05 - End Time 2024-12-17 10:03:05 [2024-12-17 10:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040073', 'tblTempUsageDetail_20' ) start [2024-12-17 10:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040073', 'tblTempUsageDetail_20' ) end [2024-12-17 10:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040073', 'tblTempVendorCDR_20' ) start [2024-12-17 10:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040073', 'tblTempVendorCDR_20' ) end [2024-12-17 10:03:27] Production.INFO: ProcessCDR(1,14040073,1,1,2) [2024-12-17 10:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040073', 'tblTempUsageDetail_20' ) start [2024-12-17 10:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040073', 'tblTempUsageDetail_20' ) end [2024-12-17 10:03:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:03:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:03:31] Production.INFO: ==15295== Releasing lock... [2024-12-17 10:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:03:31] Production.INFO: 47.75 MB #Memory Used# [2024-12-17 10:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:04:04 [end_date_ymd] => 2024-12-17 10:04:04 [RateCDR] => 1 ) [2024-12-17 10: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 07:04:04' and `end` < '2024-12-17 10: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-17 10:04:21] Production.INFO: count ==2658 [2024-12-17 10:04:22] Production.ERROR: pbx CDR StartTime 2024-12-17 07:04:04 - End Time 2024-12-17 10:04:04 [2024-12-17 10:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040078', 'tblTempUsageDetail_20' ) start [2024-12-17 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040078', 'tblTempUsageDetail_20' ) end [2024-12-17 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040078', 'tblTempVendorCDR_20' ) start [2024-12-17 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040078', 'tblTempVendorCDR_20' ) end [2024-12-17 10:04:22] Production.INFO: ProcessCDR(1,14040078,1,1,2) [2024-12-17 10:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040078', 'tblTempUsageDetail_20' ) start [2024-12-17 10:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040078', 'tblTempUsageDetail_20' ) end [2024-12-17 10:04:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:04:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:04:27] Production.INFO: ==15431== Releasing lock... [2024-12-17 10:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:04:27] Production.INFO: 48 MB #Memory Used# [2024-12-17 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:05:05 [end_date_ymd] => 2024-12-17 10:05:05 [RateCDR] => 1 ) [2024-12-17 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 07:05:05' and `end` < '2024-12-17 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 10:05:27] Production.INFO: count ==2681 [2024-12-17 10:05:28] Production.ERROR: pbx CDR StartTime 2024-12-17 07:05:05 - End Time 2024-12-17 10:05:05 [2024-12-17 10:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040083', 'tblTempUsageDetail_20' ) start [2024-12-17 10:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040083', 'tblTempUsageDetail_20' ) end [2024-12-17 10:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040083', 'tblTempVendorCDR_20' ) start [2024-12-17 10:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040083', 'tblTempVendorCDR_20' ) end [2024-12-17 10:05:28] Production.INFO: ProcessCDR(1,14040083,1,1,2) [2024-12-17 10:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040083', 'tblTempUsageDetail_20' ) start [2024-12-17 10:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040083', 'tblTempUsageDetail_20' ) end [2024-12-17 10:05:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:05:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:05:33] Production.INFO: ==15562== Releasing lock... [2024-12-17 10:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:05:33] Production.INFO: 48.25 MB #Memory Used# [2024-12-17 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:06:05 [end_date_ymd] => 2024-12-17 10:06:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:06:05' and `end` < '2024-12-17 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-17 10:06:20] Production.INFO: count ==2698 [2024-12-17 10:06:22] Production.ERROR: pbx CDR StartTime 2024-12-17 07:06:05 - End Time 2024-12-17 10:06:05 [2024-12-17 10:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040088', 'tblTempUsageDetail_20' ) start [2024-12-17 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040088', 'tblTempUsageDetail_20' ) end [2024-12-17 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040088', 'tblTempVendorCDR_20' ) start [2024-12-17 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040088', 'tblTempVendorCDR_20' ) end [2024-12-17 10:06:22] Production.INFO: ProcessCDR(1,14040088,1,1,2) [2024-12-17 10:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040088', 'tblTempUsageDetail_20' ) start [2024-12-17 10:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040088', 'tblTempUsageDetail_20' ) end [2024-12-17 10:06:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:06:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:06:27] Production.INFO: ==15732== Releasing lock... [2024-12-17 10:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:06:27] Production.INFO: 48.5 MB #Memory Used# [2024-12-17 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:07:05 [end_date_ymd] => 2024-12-17 10:07:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:07:05' and `end` < '2024-12-17 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-17 10:07:22] Production.INFO: count ==2735 [2024-12-17 10:07:23] Production.ERROR: pbx CDR StartTime 2024-12-17 07:07:05 - End Time 2024-12-17 10:07:05 [2024-12-17 10:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040093', 'tblTempUsageDetail_20' ) start [2024-12-17 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040093', 'tblTempUsageDetail_20' ) end [2024-12-17 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040093', 'tblTempVendorCDR_20' ) start [2024-12-17 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040093', 'tblTempVendorCDR_20' ) end [2024-12-17 10:07:23] Production.INFO: ProcessCDR(1,14040093,1,1,2) [2024-12-17 10:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040093', 'tblTempUsageDetail_20' ) start [2024-12-17 10:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040093', 'tblTempUsageDetail_20' ) end [2024-12-17 10:07:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:07:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:07:28] Production.INFO: ==15861== Releasing lock... [2024-12-17 10:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:07:28] Production.INFO: 48.75 MB #Memory Used# [2024-12-17 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:08:05 [end_date_ymd] => 2024-12-17 10:08:05 [RateCDR] => 1 ) [2024-12-17 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 07:08:05' and `end` < '2024-12-17 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 10:08:24] Production.INFO: count ==2758 [2024-12-17 10:08:25] Production.ERROR: pbx CDR StartTime 2024-12-17 07:08:05 - End Time 2024-12-17 10:08:05 [2024-12-17 10:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040098', 'tblTempUsageDetail_20' ) start [2024-12-17 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040098', 'tblTempUsageDetail_20' ) end [2024-12-17 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040098', 'tblTempVendorCDR_20' ) start [2024-12-17 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040098', 'tblTempVendorCDR_20' ) end [2024-12-17 10:08:25] Production.INFO: ProcessCDR(1,14040098,1,1,2) [2024-12-17 10:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040098', 'tblTempUsageDetail_20' ) start [2024-12-17 10:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040098', 'tblTempUsageDetail_20' ) end [2024-12-17 10:08:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:08:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:08:30] Production.INFO: ==16004== Releasing lock... [2024-12-17 10:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:08:30] Production.INFO: 49.25 MB #Memory Used# [2024-12-17 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:09:05 [end_date_ymd] => 2024-12-17 10:09:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:09:05' and `end` < '2024-12-17 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-17 10:09:21] Production.INFO: count ==2768 [2024-12-17 10:09:23] Production.ERROR: pbx CDR StartTime 2024-12-17 07:09:05 - End Time 2024-12-17 10:09:05 [2024-12-17 10:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040103', 'tblTempUsageDetail_20' ) start [2024-12-17 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040103', 'tblTempUsageDetail_20' ) end [2024-12-17 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040103', 'tblTempVendorCDR_20' ) start [2024-12-17 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040103', 'tblTempVendorCDR_20' ) end [2024-12-17 10:09:23] Production.INFO: ProcessCDR(1,14040103,1,1,2) [2024-12-17 10:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040103', 'tblTempUsageDetail_20' ) start [2024-12-17 10:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040103', 'tblTempUsageDetail_20' ) end [2024-12-17 10:09:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:09:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:09:27] Production.INFO: ==16140== Releasing lock... [2024-12-17 10:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:09:27] Production.INFO: 49.5 MB #Memory Used# [2024-12-17 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:10:06 [end_date_ymd] => 2024-12-17 10:10:06 [RateCDR] => 1 ) [2024-12-17 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 07:10:06' and `end` < '2024-12-17 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 10:10:25] Production.INFO: count ==2794 [2024-12-17 10:10:26] Production.ERROR: pbx CDR StartTime 2024-12-17 07:10:06 - End Time 2024-12-17 10:10:06 [2024-12-17 10:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040109', 'tblTempUsageDetail_20' ) start [2024-12-17 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040109', 'tblTempUsageDetail_20' ) end [2024-12-17 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040109', 'tblTempVendorCDR_20' ) start [2024-12-17 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040109', 'tblTempVendorCDR_20' ) end [2024-12-17 10:10:26] Production.INFO: ProcessCDR(1,14040109,1,1,2) [2024-12-17 10:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040109', 'tblTempUsageDetail_20' ) start [2024-12-17 10:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040109', 'tblTempUsageDetail_20' ) end [2024-12-17 10:10:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:10:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:10:32] Production.INFO: ==16280== Releasing lock... [2024-12-17 10:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:10:32] Production.INFO: 49.5 MB #Memory Used# [2024-12-17 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:11:05 [end_date_ymd] => 2024-12-17 10:11:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:11:05' and `end` < '2024-12-17 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-17 10:11:20] Production.INFO: count ==2897 [2024-12-17 10:11:21] Production.ERROR: pbx CDR StartTime 2024-12-17 07:11:05 - End Time 2024-12-17 10:11:05 [2024-12-17 10:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040114', 'tblTempUsageDetail_20' ) start [2024-12-17 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040114', 'tblTempUsageDetail_20' ) end [2024-12-17 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040114', 'tblTempVendorCDR_20' ) start [2024-12-17 10:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040114', 'tblTempVendorCDR_20' ) end [2024-12-17 10:11:22] Production.INFO: ProcessCDR(1,14040114,1,1,2) [2024-12-17 10:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040114', 'tblTempUsageDetail_20' ) start [2024-12-17 10:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040114', 'tblTempUsageDetail_20' ) end [2024-12-17 10:11:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:11:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:11:27] Production.INFO: ==16417== Releasing lock... [2024-12-17 10:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:11:27] Production.INFO: 49.5 MB #Memory Used# [2024-12-17 10:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:12:04 [end_date_ymd] => 2024-12-17 10:12:04 [RateCDR] => 1 ) [2024-12-17 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-17 07:12:04' and `end` < '2024-12-17 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-17 10:12:20] Production.INFO: count ==2902 [2024-12-17 10:12:21] Production.ERROR: pbx CDR StartTime 2024-12-17 07:12:04 - End Time 2024-12-17 10:12:04 [2024-12-17 10:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040119', 'tblTempUsageDetail_20' ) start [2024-12-17 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040119', 'tblTempUsageDetail_20' ) end [2024-12-17 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040119', 'tblTempVendorCDR_20' ) start [2024-12-17 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040119', 'tblTempVendorCDR_20' ) end [2024-12-17 10:12:21] Production.INFO: ProcessCDR(1,14040119,1,1,2) [2024-12-17 10:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040119', 'tblTempUsageDetail_20' ) start [2024-12-17 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040119', 'tblTempUsageDetail_20' ) end [2024-12-17 10:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:12:25] Production.INFO: ==16549== Releasing lock... [2024-12-17 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:12:25] Production.INFO: 49.75 MB #Memory Used# [2024-12-17 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:13:05 [end_date_ymd] => 2024-12-17 10:13:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:13:05' and `end` < '2024-12-17 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-17 10:13:19] Production.INFO: count ==2915 [2024-12-17 10:13:20] Production.ERROR: pbx CDR StartTime 2024-12-17 07:13:05 - End Time 2024-12-17 10:13:05 [2024-12-17 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040124', 'tblTempUsageDetail_20' ) start [2024-12-17 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040124', 'tblTempUsageDetail_20' ) end [2024-12-17 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040124', 'tblTempVendorCDR_20' ) start [2024-12-17 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040124', 'tblTempVendorCDR_20' ) end [2024-12-17 10:13:20] Production.INFO: ProcessCDR(1,14040124,1,1,2) [2024-12-17 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040124', 'tblTempUsageDetail_20' ) start [2024-12-17 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040124', 'tblTempUsageDetail_20' ) end [2024-12-17 10:13:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:13:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:13:25] Production.INFO: ==16676== Releasing lock... [2024-12-17 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:13:25] Production.INFO: 49.75 MB #Memory Used# [2024-12-17 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:14:05 [end_date_ymd] => 2024-12-17 10:14:05 [RateCDR] => 1 ) [2024-12-17 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 07:14:05' and `end` < '2024-12-17 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 10:14:21] Production.INFO: count ==2922 [2024-12-17 10:14:22] Production.ERROR: pbx CDR StartTime 2024-12-17 07:14:05 - End Time 2024-12-17 10:14:05 [2024-12-17 10:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040129', 'tblTempUsageDetail_20' ) start [2024-12-17 10:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040129', 'tblTempUsageDetail_20' ) end [2024-12-17 10:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040129', 'tblTempVendorCDR_20' ) start [2024-12-17 10:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040129', 'tblTempVendorCDR_20' ) end [2024-12-17 10:14:22] Production.INFO: ProcessCDR(1,14040129,1,1,2) [2024-12-17 10:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040129', 'tblTempUsageDetail_20' ) start [2024-12-17 10:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040129', 'tblTempUsageDetail_20' ) end [2024-12-17 10:14:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:14:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:14:27] Production.INFO: ==16809== Releasing lock... [2024-12-17 10:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:14:27] Production.INFO: 49.75 MB #Memory Used# [2024-12-17 10:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:15:04 [end_date_ymd] => 2024-12-17 10:15:04 [RateCDR] => 1 ) [2024-12-17 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-17 07:15:04' and `end` < '2024-12-17 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-17 10:15:19] Production.INFO: count ==2939 [2024-12-17 10:15:20] Production.ERROR: pbx CDR StartTime 2024-12-17 07:15:04 - End Time 2024-12-17 10:15:04 [2024-12-17 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040134', 'tblTempUsageDetail_20' ) start [2024-12-17 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040134', 'tblTempUsageDetail_20' ) end [2024-12-17 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040134', 'tblTempVendorCDR_20' ) start [2024-12-17 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040134', 'tblTempVendorCDR_20' ) end [2024-12-17 10:15:20] Production.INFO: ProcessCDR(1,14040134,1,1,2) [2024-12-17 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040134', 'tblTempUsageDetail_20' ) start [2024-12-17 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040134', 'tblTempUsageDetail_20' ) end [2024-12-17 10:15:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:15:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:15:25] Production.INFO: ==16888== Releasing lock... [2024-12-17 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:15:25] Production.INFO: 50.25 MB #Memory Used# [2024-12-17 10:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:16:04 [end_date_ymd] => 2024-12-17 10:16:04 [RateCDR] => 1 ) [2024-12-17 10: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-17 07:16:04' and `end` < '2024-12-17 10: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-17 10:16:21] Production.INFO: count ==2946 [2024-12-17 10:16:22] Production.ERROR: pbx CDR StartTime 2024-12-17 07:16:04 - End Time 2024-12-17 10:16:04 [2024-12-17 10:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040139', 'tblTempUsageDetail_20' ) start [2024-12-17 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040139', 'tblTempUsageDetail_20' ) end [2024-12-17 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040139', 'tblTempVendorCDR_20' ) start [2024-12-17 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040139', 'tblTempVendorCDR_20' ) end [2024-12-17 10:16:22] Production.INFO: ProcessCDR(1,14040139,1,1,2) [2024-12-17 10:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040139', 'tblTempUsageDetail_20' ) start [2024-12-17 10:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040139', 'tblTempUsageDetail_20' ) end [2024-12-17 10:16:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:16:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:16:27] Production.INFO: ==16958== Releasing lock... [2024-12-17 10:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:16:27] Production.INFO: 50 MB #Memory Used# [2024-12-17 10:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:17:04 [end_date_ymd] => 2024-12-17 10:17:04 [RateCDR] => 1 ) [2024-12-17 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-17 07:17:04' and `end` < '2024-12-17 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-17 10:17:17] Production.INFO: count ==2959 [2024-12-17 10:17:18] Production.ERROR: pbx CDR StartTime 2024-12-17 07:17:04 - End Time 2024-12-17 10:17:04 [2024-12-17 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040144', 'tblTempUsageDetail_20' ) start [2024-12-17 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040144', 'tblTempUsageDetail_20' ) end [2024-12-17 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040144', 'tblTempVendorCDR_20' ) start [2024-12-17 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040144', 'tblTempVendorCDR_20' ) end [2024-12-17 10:17:18] Production.INFO: ProcessCDR(1,14040144,1,1,2) [2024-12-17 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040144', 'tblTempUsageDetail_20' ) start [2024-12-17 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040144', 'tblTempUsageDetail_20' ) end [2024-12-17 10:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:17:23] Production.INFO: ==17036== Releasing lock... [2024-12-17 10:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:17:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-17 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:18:05 [end_date_ymd] => 2024-12-17 10:18:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:18:05' and `end` < '2024-12-17 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-17 10:18:21] Production.INFO: count ==2983 [2024-12-17 10:18:22] Production.ERROR: pbx CDR StartTime 2024-12-17 07:18:05 - End Time 2024-12-17 10:18:05 [2024-12-17 10:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040149', 'tblTempUsageDetail_20' ) start [2024-12-17 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040149', 'tblTempUsageDetail_20' ) end [2024-12-17 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040149', 'tblTempVendorCDR_20' ) start [2024-12-17 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040149', 'tblTempVendorCDR_20' ) end [2024-12-17 10:18:22] Production.INFO: ProcessCDR(1,14040149,1,1,2) [2024-12-17 10:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040149', 'tblTempUsageDetail_20' ) start [2024-12-17 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040149', 'tblTempUsageDetail_20' ) end [2024-12-17 10:18:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:18:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:18:26] Production.INFO: ==17105== Releasing lock... [2024-12-17 10:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:18:26] Production.INFO: 50.25 MB #Memory Used# [2024-12-17 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:19:05 [end_date_ymd] => 2024-12-17 10:19:05 [RateCDR] => 1 ) [2024-12-17 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 07:19:05' and `end` < '2024-12-17 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 10:19:22] Production.INFO: count ==3007 [2024-12-17 10:19:23] Production.ERROR: pbx CDR StartTime 2024-12-17 07:19:05 - End Time 2024-12-17 10:19:05 [2024-12-17 10:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040154', 'tblTempUsageDetail_20' ) start [2024-12-17 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040154', 'tblTempUsageDetail_20' ) end [2024-12-17 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040154', 'tblTempVendorCDR_20' ) start [2024-12-17 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040154', 'tblTempVendorCDR_20' ) end [2024-12-17 10:19:24] Production.INFO: ProcessCDR(1,14040154,1,1,2) [2024-12-17 10:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040154', 'tblTempUsageDetail_20' ) start [2024-12-17 10:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040154', 'tblTempUsageDetail_20' ) end [2024-12-17 10:19:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:19:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:19:28] Production.INFO: ==17177== Releasing lock... [2024-12-17 10:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:19:28] Production.INFO: 51 MB #Memory Used# [2024-12-17 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:20:05 [end_date_ymd] => 2024-12-17 10:20:05 [RateCDR] => 1 ) [2024-12-17 10: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 07:20:05' and `end` < '2024-12-17 10: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-17 10:20:19] Production.INFO: count ==3024 [2024-12-17 10:20:20] Production.ERROR: pbx CDR StartTime 2024-12-17 07:20:05 - End Time 2024-12-17 10:20:05 [2024-12-17 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040160', 'tblTempUsageDetail_20' ) start [2024-12-17 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040160', 'tblTempUsageDetail_20' ) end [2024-12-17 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040160', 'tblTempVendorCDR_20' ) start [2024-12-17 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040160', 'tblTempVendorCDR_20' ) end [2024-12-17 10:20:21] Production.INFO: ProcessCDR(1,14040160,1,1,2) [2024-12-17 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040160', 'tblTempUsageDetail_20' ) start [2024-12-17 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040160', 'tblTempUsageDetail_20' ) end [2024-12-17 10:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:20:25] Production.INFO: ==17251== Releasing lock... [2024-12-17 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:20:25] Production.INFO: 51 MB #Memory Used# [2024-12-17 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:21:04 [end_date_ymd] => 2024-12-17 10:21:04 [RateCDR] => 1 ) [2024-12-17 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-17 07:21:04' and `end` < '2024-12-17 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-17 10:21:25] Production.INFO: count ==3114 [2024-12-17 10:21:26] Production.ERROR: pbx CDR StartTime 2024-12-17 07:21:04 - End Time 2024-12-17 10:21:04 [2024-12-17 10:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040165', 'tblTempUsageDetail_20' ) start [2024-12-17 10:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040165', 'tblTempUsageDetail_20' ) end [2024-12-17 10:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040165', 'tblTempVendorCDR_20' ) start [2024-12-17 10:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040165', 'tblTempVendorCDR_20' ) end [2024-12-17 10:21:26] Production.INFO: ProcessCDR(1,14040165,1,1,2) [2024-12-17 10:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040165', 'tblTempUsageDetail_20' ) start [2024-12-17 10:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040165', 'tblTempUsageDetail_20' ) end [2024-12-17 10:21:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:21:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:21:31] Production.INFO: ==17327== Releasing lock... [2024-12-17 10:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:21:31] Production.INFO: 51.5 MB #Memory Used# [2024-12-17 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:22:05 [end_date_ymd] => 2024-12-17 10:22:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:22:05' and `end` < '2024-12-17 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-17 10:22:21] Production.INFO: count ==3121 [2024-12-17 10:22:22] Production.ERROR: pbx CDR StartTime 2024-12-17 07:22:05 - End Time 2024-12-17 10:22:05 [2024-12-17 10:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040170', 'tblTempUsageDetail_20' ) start [2024-12-17 10:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040170', 'tblTempUsageDetail_20' ) end [2024-12-17 10:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040170', 'tblTempVendorCDR_20' ) start [2024-12-17 10:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040170', 'tblTempVendorCDR_20' ) end [2024-12-17 10:22:22] Production.INFO: ProcessCDR(1,14040170,1,1,2) [2024-12-17 10:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040170', 'tblTempUsageDetail_20' ) start [2024-12-17 10:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040170', 'tblTempUsageDetail_20' ) end [2024-12-17 10:22:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:22:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:22:27] Production.INFO: ==17436== Releasing lock... [2024-12-17 10:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:22:27] Production.INFO: 51.75 MB #Memory Used# [2024-12-17 10:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:23:04 [end_date_ymd] => 2024-12-17 10:23:04 [RateCDR] => 1 ) [2024-12-17 10: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 07:23:04' and `end` < '2024-12-17 10: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-17 10:23:17] Production.INFO: count ==3128 [2024-12-17 10:23:18] Production.ERROR: pbx CDR StartTime 2024-12-17 07:23:04 - End Time 2024-12-17 10:23:04 [2024-12-17 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040175', 'tblTempUsageDetail_20' ) start [2024-12-17 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040175', 'tblTempUsageDetail_20' ) end [2024-12-17 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040175', 'tblTempVendorCDR_20' ) start [2024-12-17 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040175', 'tblTempVendorCDR_20' ) end [2024-12-17 10:23:18] Production.INFO: ProcessCDR(1,14040175,1,1,2) [2024-12-17 10:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040175', 'tblTempUsageDetail_20' ) start [2024-12-17 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040175', 'tblTempUsageDetail_20' ) end [2024-12-17 10:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:23:23] Production.INFO: ==17510== Releasing lock... [2024-12-17 10:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:23:23] Production.INFO: 51.75 MB #Memory Used# [2024-12-17 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:24:05 [end_date_ymd] => 2024-12-17 10:24:05 [RateCDR] => 1 ) [2024-12-17 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 07:24:05' and `end` < '2024-12-17 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 10:24:18] Production.INFO: count ==3140 [2024-12-17 10:24:19] Production.ERROR: pbx CDR StartTime 2024-12-17 07:24:05 - End Time 2024-12-17 10:24:05 [2024-12-17 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040180', 'tblTempUsageDetail_20' ) start [2024-12-17 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040180', 'tblTempUsageDetail_20' ) end [2024-12-17 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040180', 'tblTempVendorCDR_20' ) start [2024-12-17 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040180', 'tblTempVendorCDR_20' ) end [2024-12-17 10:24:19] Production.INFO: ProcessCDR(1,14040180,1,1,2) [2024-12-17 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040180', 'tblTempUsageDetail_20' ) start [2024-12-17 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040180', 'tblTempUsageDetail_20' ) end [2024-12-17 10:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:24:24] Production.INFO: ==17582== Releasing lock... [2024-12-17 10:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:24:24] Production.INFO: 52 MB #Memory Used# [2024-12-17 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:25:05 [end_date_ymd] => 2024-12-17 10:25:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:25:05' and `end` < '2024-12-17 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-17 10:25:24] Production.INFO: count ==3153 [2024-12-17 10:25:25] Production.ERROR: pbx CDR StartTime 2024-12-17 07:25:05 - End Time 2024-12-17 10:25:05 [2024-12-17 10:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040185', 'tblTempUsageDetail_20' ) start [2024-12-17 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040185', 'tblTempUsageDetail_20' ) end [2024-12-17 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040185', 'tblTempVendorCDR_20' ) start [2024-12-17 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040185', 'tblTempVendorCDR_20' ) end [2024-12-17 10:25:25] Production.INFO: ProcessCDR(1,14040185,1,1,2) [2024-12-17 10:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040185', 'tblTempUsageDetail_20' ) start [2024-12-17 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040185', 'tblTempUsageDetail_20' ) end [2024-12-17 10:25:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:25:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:25:30] Production.INFO: ==17656== Releasing lock... [2024-12-17 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:25:30] Production.INFO: 52 MB #Memory Used# [2024-12-17 10:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:26:04 [end_date_ymd] => 2024-12-17 10:26:04 [RateCDR] => 1 ) [2024-12-17 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-17 07:26:04' and `end` < '2024-12-17 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-17 10:26:18] Production.INFO: count ==3179 [2024-12-17 10:26:19] Production.ERROR: pbx CDR StartTime 2024-12-17 07:26:04 - End Time 2024-12-17 10:26:04 [2024-12-17 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040190', 'tblTempUsageDetail_20' ) start [2024-12-17 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040190', 'tblTempUsageDetail_20' ) end [2024-12-17 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040190', 'tblTempVendorCDR_20' ) start [2024-12-17 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040190', 'tblTempVendorCDR_20' ) end [2024-12-17 10:26:19] Production.INFO: ProcessCDR(1,14040190,1,1,2) [2024-12-17 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040190', 'tblTempUsageDetail_20' ) start [2024-12-17 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040190', 'tblTempUsageDetail_20' ) end [2024-12-17 10:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:26:24] Production.INFO: ==17732== Releasing lock... [2024-12-17 10:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:26:24] Production.INFO: 51.75 MB #Memory Used# [2024-12-17 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:27:05 [end_date_ymd] => 2024-12-17 10:27:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:27:05' and `end` < '2024-12-17 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-17 10:27:24] Production.INFO: count ==3209 [2024-12-17 10:27:25] Production.ERROR: pbx CDR StartTime 2024-12-17 07:27:05 - End Time 2024-12-17 10:27:05 [2024-12-17 10:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040195', 'tblTempUsageDetail_20' ) start [2024-12-17 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040195', 'tblTempUsageDetail_20' ) end [2024-12-17 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040195', 'tblTempVendorCDR_20' ) start [2024-12-17 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040195', 'tblTempVendorCDR_20' ) end [2024-12-17 10:27:26] Production.INFO: ProcessCDR(1,14040195,1,1,2) [2024-12-17 10:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040195', 'tblTempUsageDetail_20' ) start [2024-12-17 10:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040195', 'tblTempUsageDetail_20' ) end [2024-12-17 10:27:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:27:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:27:30] Production.INFO: ==17803== Releasing lock... [2024-12-17 10:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:27:30] Production.INFO: 52 MB #Memory Used# [2024-12-17 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:28:05 [end_date_ymd] => 2024-12-17 10:28:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:28:05' and `end` < '2024-12-17 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-17 10:28:24] Production.INFO: count ==3227 [2024-12-17 10:28:25] Production.ERROR: pbx CDR StartTime 2024-12-17 07:28:05 - End Time 2024-12-17 10:28:05 [2024-12-17 10:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040200', 'tblTempUsageDetail_20' ) start [2024-12-17 10:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040200', 'tblTempUsageDetail_20' ) end [2024-12-17 10:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040200', 'tblTempVendorCDR_20' ) start [2024-12-17 10:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040200', 'tblTempVendorCDR_20' ) end [2024-12-17 10:28:26] Production.INFO: ProcessCDR(1,14040200,1,1,2) [2024-12-17 10:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040200', 'tblTempUsageDetail_20' ) start [2024-12-17 10:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040200', 'tblTempUsageDetail_20' ) end [2024-12-17 10:28:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:28:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:28:30] Production.INFO: ==17878== Releasing lock... [2024-12-17 10:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:28:30] Production.INFO: 52.5 MB #Memory Used# [2024-12-17 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:29:05 [end_date_ymd] => 2024-12-17 10:29:05 [RateCDR] => 1 ) [2024-12-17 10: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 07:29:05' and `end` < '2024-12-17 10: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-17 10:29:21] Production.INFO: count ==3232 [2024-12-17 10:29:22] Production.ERROR: pbx CDR StartTime 2024-12-17 07:29:05 - End Time 2024-12-17 10:29:05 [2024-12-17 10:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040205', 'tblTempUsageDetail_20' ) start [2024-12-17 10:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040205', 'tblTempUsageDetail_20' ) end [2024-12-17 10:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040205', 'tblTempVendorCDR_20' ) start [2024-12-17 10:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040205', 'tblTempVendorCDR_20' ) end [2024-12-17 10:29:22] Production.INFO: ProcessCDR(1,14040205,1,1,2) [2024-12-17 10:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040205', 'tblTempUsageDetail_20' ) start [2024-12-17 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040205', 'tblTempUsageDetail_20' ) end [2024-12-17 10:29:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:29:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:29:27] Production.INFO: ==17950== Releasing lock... [2024-12-17 10:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:29:27] Production.INFO: 52 MB #Memory Used# [2024-12-17 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:30:05 [end_date_ymd] => 2024-12-17 10:30:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:30:05' and `end` < '2024-12-17 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-17 10:30:18] Production.INFO: count ==3252 [2024-12-17 10:30:19] Production.ERROR: pbx CDR StartTime 2024-12-17 07:30:05 - End Time 2024-12-17 10:30:05 [2024-12-17 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040210', 'tblTempUsageDetail_20' ) start [2024-12-17 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040210', 'tblTempUsageDetail_20' ) end [2024-12-17 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040210', 'tblTempVendorCDR_20' ) start [2024-12-17 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040210', 'tblTempVendorCDR_20' ) end [2024-12-17 10:30:19] Production.INFO: ProcessCDR(1,14040210,1,1,2) [2024-12-17 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040210', 'tblTempUsageDetail_20' ) start [2024-12-17 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040210', 'tblTempUsageDetail_20' ) end [2024-12-17 10:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:30:24] Production.INFO: ==18026== Releasing lock... [2024-12-17 10:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:30:24] Production.INFO: 52.75 MB #Memory Used# [2024-12-17 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:31:05 [end_date_ymd] => 2024-12-17 10:31:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:31:05' and `end` < '2024-12-17 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-17 10:31:21] Production.INFO: count ==3324 [2024-12-17 10:31:23] Production.ERROR: pbx CDR StartTime 2024-12-17 07:31:05 - End Time 2024-12-17 10:31:05 [2024-12-17 10:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040216', 'tblTempUsageDetail_20' ) start [2024-12-17 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040216', 'tblTempUsageDetail_20' ) end [2024-12-17 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040216', 'tblTempVendorCDR_20' ) start [2024-12-17 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040216', 'tblTempVendorCDR_20' ) end [2024-12-17 10:31:23] Production.INFO: ProcessCDR(1,14040216,1,1,2) [2024-12-17 10:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040216', 'tblTempUsageDetail_20' ) start [2024-12-17 10:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040216', 'tblTempUsageDetail_20' ) end [2024-12-17 10:31:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:31:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:31:27] Production.INFO: ==18107== Releasing lock... [2024-12-17 10:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:31:27] Production.INFO: 54.75 MB #Memory Used# [2024-12-17 10:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:32:04 [end_date_ymd] => 2024-12-17 10:32:04 [RateCDR] => 1 ) [2024-12-17 10: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 07:32:04' and `end` < '2024-12-17 10: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-17 10:32:20] Production.INFO: count ==3324 [2024-12-17 10:32:21] Production.ERROR: pbx CDR StartTime 2024-12-17 07:32:04 - End Time 2024-12-17 10:32:04 [2024-12-17 10:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040221', 'tblTempUsageDetail_20' ) start [2024-12-17 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040221', 'tblTempUsageDetail_20' ) end [2024-12-17 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040221', 'tblTempVendorCDR_20' ) start [2024-12-17 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040221', 'tblTempVendorCDR_20' ) end [2024-12-17 10:32:21] Production.INFO: ProcessCDR(1,14040221,1,1,2) [2024-12-17 10:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040221', 'tblTempUsageDetail_20' ) start [2024-12-17 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040221', 'tblTempUsageDetail_20' ) end [2024-12-17 10:32:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:32:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:32:26] Production.INFO: ==18179== Releasing lock... [2024-12-17 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:32:26] Production.INFO: 53.25 MB #Memory Used# [2024-12-17 10:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:33:04 [end_date_ymd] => 2024-12-17 10:33:04 [RateCDR] => 1 ) [2024-12-17 10: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 07:33:04' and `end` < '2024-12-17 10: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-17 10:33:24] Production.INFO: count ==3343 [2024-12-17 10:33:25] Production.ERROR: pbx CDR StartTime 2024-12-17 07:33:04 - End Time 2024-12-17 10:33:04 [2024-12-17 10:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040226', 'tblTempUsageDetail_20' ) start [2024-12-17 10:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040226', 'tblTempUsageDetail_20' ) end [2024-12-17 10:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040226', 'tblTempVendorCDR_20' ) start [2024-12-17 10:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040226', 'tblTempVendorCDR_20' ) end [2024-12-17 10:33:26] Production.INFO: ProcessCDR(1,14040226,1,1,2) [2024-12-17 10:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040226', 'tblTempUsageDetail_20' ) start [2024-12-17 10:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040226', 'tblTempUsageDetail_20' ) end [2024-12-17 10:33:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:33:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:33:30] Production.INFO: ==18255== Releasing lock... [2024-12-17 10:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:33:30] Production.INFO: 53.5 MB #Memory Used# [2024-12-17 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:34:05 [end_date_ymd] => 2024-12-17 10:34:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:34:05' and `end` < '2024-12-17 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-17 10:34:23] Production.INFO: count ==3352 [2024-12-17 10:34:24] Production.ERROR: pbx CDR StartTime 2024-12-17 07:34:05 - End Time 2024-12-17 10:34:05 [2024-12-17 10:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040231', 'tblTempUsageDetail_20' ) start [2024-12-17 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040231', 'tblTempUsageDetail_20' ) end [2024-12-17 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040231', 'tblTempVendorCDR_20' ) start [2024-12-17 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040231', 'tblTempVendorCDR_20' ) end [2024-12-17 10:34:24] Production.INFO: ProcessCDR(1,14040231,1,1,2) [2024-12-17 10:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040231', 'tblTempUsageDetail_20' ) start [2024-12-17 10:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040231', 'tblTempUsageDetail_20' ) end [2024-12-17 10:34:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:34:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:34:29] Production.INFO: ==18326== Releasing lock... [2024-12-17 10:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:34:29] Production.INFO: 53.25 MB #Memory Used# [2024-12-17 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:35:05 [end_date_ymd] => 2024-12-17 10:35:05 [RateCDR] => 1 ) [2024-12-17 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 07:35:05' and `end` < '2024-12-17 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 10:35:22] Production.INFO: count ==3374 [2024-12-17 10:35:23] Production.ERROR: pbx CDR StartTime 2024-12-17 07:35:05 - End Time 2024-12-17 10:35:05 [2024-12-17 10:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040236', 'tblTempUsageDetail_20' ) start [2024-12-17 10:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040236', 'tblTempUsageDetail_20' ) end [2024-12-17 10:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040236', 'tblTempVendorCDR_20' ) start [2024-12-17 10:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040236', 'tblTempVendorCDR_20' ) end [2024-12-17 10:35:23] Production.INFO: ProcessCDR(1,14040236,1,1,2) [2024-12-17 10:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040236', 'tblTempUsageDetail_20' ) start [2024-12-17 10:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040236', 'tblTempUsageDetail_20' ) end [2024-12-17 10:35:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:35:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:35:27] Production.INFO: ==18400== Releasing lock... [2024-12-17 10:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:35:27] Production.INFO: 53.5 MB #Memory Used# [2024-12-17 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:36:05 [end_date_ymd] => 2024-12-17 10:36:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:36:05' and `end` < '2024-12-17 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-17 10:36:22] Production.INFO: count ==3406 [2024-12-17 10:36:23] Production.ERROR: pbx CDR StartTime 2024-12-17 07:36:05 - End Time 2024-12-17 10:36:05 [2024-12-17 10:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040241', 'tblTempUsageDetail_20' ) start [2024-12-17 10:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040241', 'tblTempUsageDetail_20' ) end [2024-12-17 10:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040241', 'tblTempVendorCDR_20' ) start [2024-12-17 10:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040241', 'tblTempVendorCDR_20' ) end [2024-12-17 10:36:23] Production.INFO: ProcessCDR(1,14040241,1,1,2) [2024-12-17 10:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040241', 'tblTempUsageDetail_20' ) start [2024-12-17 10:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040241', 'tblTempUsageDetail_20' ) end [2024-12-17 10:36:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:36:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:36:28] Production.INFO: ==18474== Releasing lock... [2024-12-17 10:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:36:28] Production.INFO: 54 MB #Memory Used# [2024-12-17 10:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:37:04 [end_date_ymd] => 2024-12-17 10:37:04 [RateCDR] => 1 ) [2024-12-17 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-17 07:37:04' and `end` < '2024-12-17 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-17 10:37:23] Production.INFO: count ==3418 [2024-12-17 10:37:24] Production.ERROR: pbx CDR StartTime 2024-12-17 07:37:04 - End Time 2024-12-17 10:37:04 [2024-12-17 10:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040246', 'tblTempUsageDetail_20' ) start [2024-12-17 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040246', 'tblTempUsageDetail_20' ) end [2024-12-17 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040246', 'tblTempVendorCDR_20' ) start [2024-12-17 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040246', 'tblTempVendorCDR_20' ) end [2024-12-17 10:37:24] Production.INFO: ProcessCDR(1,14040246,1,1,2) [2024-12-17 10:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040246', 'tblTempUsageDetail_20' ) start [2024-12-17 10:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040246', 'tblTempUsageDetail_20' ) end [2024-12-17 10:37:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:37:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:37:29] Production.INFO: ==18585== Releasing lock... [2024-12-17 10:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:37:29] Production.INFO: 54 MB #Memory Used# [2024-12-17 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:38:05 [end_date_ymd] => 2024-12-17 10:38:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:38:05' and `end` < '2024-12-17 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-17 10:38:24] Production.INFO: count ==3440 [2024-12-17 10:38:25] Production.ERROR: pbx CDR StartTime 2024-12-17 07:38:05 - End Time 2024-12-17 10:38:05 [2024-12-17 10:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040251', 'tblTempUsageDetail_20' ) start [2024-12-17 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040251', 'tblTempUsageDetail_20' ) end [2024-12-17 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040251', 'tblTempVendorCDR_20' ) start [2024-12-17 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040251', 'tblTempVendorCDR_20' ) end [2024-12-17 10:38:25] Production.INFO: ProcessCDR(1,14040251,1,1,2) [2024-12-17 10:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040251', 'tblTempUsageDetail_20' ) start [2024-12-17 10:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040251', 'tblTempUsageDetail_20' ) end [2024-12-17 10:38:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:38:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:38:30] Production.INFO: ==18660== Releasing lock... [2024-12-17 10:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:38:30] Production.INFO: 53.75 MB #Memory Used# [2024-12-17 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:39:05 [end_date_ymd] => 2024-12-17 10:39:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:39:05' and `end` < '2024-12-17 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-17 10:39:20] Production.INFO: count ==3452 [2024-12-17 10:39:21] Production.ERROR: pbx CDR StartTime 2024-12-17 07:39:05 - End Time 2024-12-17 10:39:05 [2024-12-17 10:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040256', 'tblTempUsageDetail_20' ) start [2024-12-17 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040256', 'tblTempUsageDetail_20' ) end [2024-12-17 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040256', 'tblTempVendorCDR_20' ) start [2024-12-17 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040256', 'tblTempVendorCDR_20' ) end [2024-12-17 10:39:21] Production.INFO: ProcessCDR(1,14040256,1,1,2) [2024-12-17 10:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040256', 'tblTempUsageDetail_20' ) start [2024-12-17 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040256', 'tblTempUsageDetail_20' ) end [2024-12-17 10:39:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:39:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:39:26] Production.INFO: ==18733== Releasing lock... [2024-12-17 10:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:39:26] Production.INFO: 54.5 MB #Memory Used# [2024-12-17 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:40:05 [end_date_ymd] => 2024-12-17 10:40:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:40:05' and `end` < '2024-12-17 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-17 10:40:21] Production.INFO: count ==3462 [2024-12-17 10:40:22] Production.ERROR: pbx CDR StartTime 2024-12-17 07:40:05 - End Time 2024-12-17 10:40:05 [2024-12-17 10:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040262', 'tblTempUsageDetail_20' ) start [2024-12-17 10:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040262', 'tblTempUsageDetail_20' ) end [2024-12-17 10:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040262', 'tblTempVendorCDR_20' ) start [2024-12-17 10:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040262', 'tblTempVendorCDR_20' ) end [2024-12-17 10:40:23] Production.INFO: ProcessCDR(1,14040262,1,1,2) [2024-12-17 10:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040262', 'tblTempUsageDetail_20' ) start [2024-12-17 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040262', 'tblTempUsageDetail_20' ) end [2024-12-17 10:40:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:40:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:40:27] Production.INFO: ==18814== Releasing lock... [2024-12-17 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:40:27] Production.INFO: 54.25 MB #Memory Used# [2024-12-17 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:41:05 [end_date_ymd] => 2024-12-17 10:41:05 [RateCDR] => 1 ) [2024-12-17 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 07:41:05' and `end` < '2024-12-17 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 10:41:18] Production.INFO: count ==3550 [2024-12-17 10:41:19] Production.ERROR: pbx CDR StartTime 2024-12-17 07:41:05 - End Time 2024-12-17 10:41:05 [2024-12-17 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040267', 'tblTempUsageDetail_20' ) start [2024-12-17 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040267', 'tblTempUsageDetail_20' ) end [2024-12-17 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040267', 'tblTempVendorCDR_20' ) start [2024-12-17 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040267', 'tblTempVendorCDR_20' ) end [2024-12-17 10:41:19] Production.INFO: ProcessCDR(1,14040267,1,1,2) [2024-12-17 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040267', 'tblTempUsageDetail_20' ) start [2024-12-17 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040267', 'tblTempUsageDetail_20' ) end [2024-12-17 10:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:41:24] Production.INFO: ==18889== Releasing lock... [2024-12-17 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:41:24] Production.INFO: 55 MB #Memory Used# [2024-12-17 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:42:04 [end_date_ymd] => 2024-12-17 10:42:04 [RateCDR] => 1 ) [2024-12-17 10: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 07:42:04' and `end` < '2024-12-17 10: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-17 10:42:24] Production.INFO: count ==3557 [2024-12-17 10:42:25] Production.ERROR: pbx CDR StartTime 2024-12-17 07:42:04 - End Time 2024-12-17 10:42:04 [2024-12-17 10:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040272', 'tblTempUsageDetail_20' ) start [2024-12-17 10:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040272', 'tblTempUsageDetail_20' ) end [2024-12-17 10:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040272', 'tblTempVendorCDR_20' ) start [2024-12-17 10:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040272', 'tblTempVendorCDR_20' ) end [2024-12-17 10:42:25] Production.INFO: ProcessCDR(1,14040272,1,1,2) [2024-12-17 10:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040272', 'tblTempUsageDetail_20' ) start [2024-12-17 10:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040272', 'tblTempUsageDetail_20' ) end [2024-12-17 10:42:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:42:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:42:30] Production.INFO: ==18967== Releasing lock... [2024-12-17 10:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:42:30] Production.INFO: 55 MB #Memory Used# [2024-12-17 10:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:43:04 [end_date_ymd] => 2024-12-17 10:43:04 [RateCDR] => 1 ) [2024-12-17 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-17 07:43:04' and `end` < '2024-12-17 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-17 10:43:24] Production.INFO: count ==3586 [2024-12-17 10:43:26] Production.ERROR: pbx CDR StartTime 2024-12-17 07:43:04 - End Time 2024-12-17 10:43:04 [2024-12-17 10:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040277', 'tblTempUsageDetail_20' ) start [2024-12-17 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040277', 'tblTempUsageDetail_20' ) end [2024-12-17 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040277', 'tblTempVendorCDR_20' ) start [2024-12-17 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040277', 'tblTempVendorCDR_20' ) end [2024-12-17 10:43:26] Production.INFO: ProcessCDR(1,14040277,1,1,2) [2024-12-17 10:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040277', 'tblTempUsageDetail_20' ) start [2024-12-17 10:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040277', 'tblTempUsageDetail_20' ) end [2024-12-17 10:43:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:43:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:43:31] Production.INFO: ==19047== Releasing lock... [2024-12-17 10:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:43:31] Production.INFO: 55.25 MB #Memory Used# [2024-12-17 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:44:05 [end_date_ymd] => 2024-12-17 10:44:05 [RateCDR] => 1 ) [2024-12-17 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 07:44:05' and `end` < '2024-12-17 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 10:44:25] Production.INFO: count ==3596 [2024-12-17 10:44:26] Production.ERROR: pbx CDR StartTime 2024-12-17 07:44:05 - End Time 2024-12-17 10:44:05 [2024-12-17 10:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040282', 'tblTempUsageDetail_20' ) start [2024-12-17 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040282', 'tblTempUsageDetail_20' ) end [2024-12-17 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040282', 'tblTempVendorCDR_20' ) start [2024-12-17 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040282', 'tblTempVendorCDR_20' ) end [2024-12-17 10:44:26] Production.INFO: ProcessCDR(1,14040282,1,1,2) [2024-12-17 10:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040282', 'tblTempUsageDetail_20' ) start [2024-12-17 10:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040282', 'tblTempUsageDetail_20' ) end [2024-12-17 10:44:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:44:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:44:31] Production.INFO: ==19127== Releasing lock... [2024-12-17 10:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:44:31] Production.INFO: 55.25 MB #Memory Used# [2024-12-17 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:45:05 [end_date_ymd] => 2024-12-17 10:45:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:45:05' and `end` < '2024-12-17 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-17 10:45:27] Production.INFO: count ==3619 [2024-12-17 10:45:29] Production.ERROR: pbx CDR StartTime 2024-12-17 07:45:05 - End Time 2024-12-17 10:45:05 [2024-12-17 10:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040287', 'tblTempUsageDetail_20' ) start [2024-12-17 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040287', 'tblTempUsageDetail_20' ) end [2024-12-17 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040287', 'tblTempVendorCDR_20' ) start [2024-12-17 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040287', 'tblTempVendorCDR_20' ) end [2024-12-17 10:45:29] Production.INFO: ProcessCDR(1,14040287,1,1,2) [2024-12-17 10:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040287', 'tblTempUsageDetail_20' ) start [2024-12-17 10:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040287', 'tblTempUsageDetail_20' ) end [2024-12-17 10:45:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:45:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:45:33] Production.INFO: ==19203== Releasing lock... [2024-12-17 10:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:45:33] Production.INFO: 55 MB #Memory Used# [2024-12-17 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:46:05 [end_date_ymd] => 2024-12-17 10:46:05 [RateCDR] => 1 ) [2024-12-17 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 07:46:05' and `end` < '2024-12-17 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 10:46:30] Production.INFO: count ==3663 [2024-12-17 10:46:32] Production.ERROR: pbx CDR StartTime 2024-12-17 07:46:05 - End Time 2024-12-17 10:46:05 [2024-12-17 10:46:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040292', 'tblTempUsageDetail_20' ) start [2024-12-17 10:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040292', 'tblTempUsageDetail_20' ) end [2024-12-17 10:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040292', 'tblTempVendorCDR_20' ) start [2024-12-17 10:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040292', 'tblTempVendorCDR_20' ) end [2024-12-17 10:46:32] Production.INFO: ProcessCDR(1,14040292,1,1,2) [2024-12-17 10:46:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:46:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:46:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:46:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:46:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040292', 'tblTempUsageDetail_20' ) start [2024-12-17 10:46:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040292', 'tblTempUsageDetail_20' ) end [2024-12-17 10:46:37] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:46:37] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:46:37] Production.INFO: ==19281== Releasing lock... [2024-12-17 10:46:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:46:37] Production.INFO: 55.25 MB #Memory Used# [2024-12-17 10:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:47:04 [end_date_ymd] => 2024-12-17 10:47:04 [RateCDR] => 1 ) [2024-12-17 10: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 07:47:04' and `end` < '2024-12-17 10: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-17 10:47:31] Production.INFO: count ==3700 [2024-12-17 10:47:32] Production.ERROR: pbx CDR StartTime 2024-12-17 07:47:04 - End Time 2024-12-17 10:47:04 [2024-12-17 10:47:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040297', 'tblTempUsageDetail_20' ) start [2024-12-17 10:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040297', 'tblTempUsageDetail_20' ) end [2024-12-17 10:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040297', 'tblTempVendorCDR_20' ) start [2024-12-17 10:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040297', 'tblTempVendorCDR_20' ) end [2024-12-17 10:47:32] Production.INFO: ProcessCDR(1,14040297,1,1,2) [2024-12-17 10:47:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:47:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:47:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:47:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:47:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040297', 'tblTempUsageDetail_20' ) start [2024-12-17 10:47:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040297', 'tblTempUsageDetail_20' ) end [2024-12-17 10:47:37] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:47:37] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:47:37] Production.INFO: ==19358== Releasing lock... [2024-12-17 10:47:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:47:37] Production.INFO: 55.5 MB #Memory Used# [2024-12-17 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:48:05 [end_date_ymd] => 2024-12-17 10:48:05 [RateCDR] => 1 ) [2024-12-17 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 07:48:05' and `end` < '2024-12-17 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 10:48:30] Production.INFO: count ==3718 [2024-12-17 10:48:32] Production.ERROR: pbx CDR StartTime 2024-12-17 07:48:05 - End Time 2024-12-17 10:48:05 [2024-12-17 10:48:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040302', 'tblTempUsageDetail_20' ) start [2024-12-17 10:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040302', 'tblTempUsageDetail_20' ) end [2024-12-17 10:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040302', 'tblTempVendorCDR_20' ) start [2024-12-17 10:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040302', 'tblTempVendorCDR_20' ) end [2024-12-17 10:48:32] Production.INFO: ProcessCDR(1,14040302,1,1,2) [2024-12-17 10:48:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:48:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:48:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:48:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040302', 'tblTempUsageDetail_20' ) start [2024-12-17 10:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040302', 'tblTempUsageDetail_20' ) end [2024-12-17 10:48:36] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:48:36] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:48:36] Production.INFO: ==19441== Releasing lock... [2024-12-17 10:48:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:48:36] Production.INFO: 56.25 MB #Memory Used# [2024-12-17 10:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:49:04 [end_date_ymd] => 2024-12-17 10:49:04 [RateCDR] => 1 ) [2024-12-17 10: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 07:49:04' and `end` < '2024-12-17 10: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-17 10:49:28] Production.INFO: count ==3736 [2024-12-17 10:49:29] Production.ERROR: pbx CDR StartTime 2024-12-17 07:49:04 - End Time 2024-12-17 10:49:04 [2024-12-17 10:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040307', 'tblTempUsageDetail_20' ) start [2024-12-17 10:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040307', 'tblTempUsageDetail_20' ) end [2024-12-17 10:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040307', 'tblTempVendorCDR_20' ) start [2024-12-17 10:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040307', 'tblTempVendorCDR_20' ) end [2024-12-17 10:49:30] Production.INFO: ProcessCDR(1,14040307,1,1,2) [2024-12-17 10:49:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:49:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:49:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:49:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040307', 'tblTempUsageDetail_20' ) start [2024-12-17 10:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040307', 'tblTempUsageDetail_20' ) end [2024-12-17 10:49:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:49:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:49:34] Production.INFO: ==19522== Releasing lock... [2024-12-17 10:49:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:49:34] Production.INFO: 56 MB #Memory Used# [2024-12-17 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:50:05 [end_date_ymd] => 2024-12-17 10:50:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:50:05' and `end` < '2024-12-17 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-17 10:50:31] Production.INFO: count ==3769 [2024-12-17 10:50:32] Production.ERROR: pbx CDR StartTime 2024-12-17 07:50:05 - End Time 2024-12-17 10:50:05 [2024-12-17 10:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040313', 'tblTempUsageDetail_20' ) start [2024-12-17 10:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040313', 'tblTempUsageDetail_20' ) end [2024-12-17 10:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040313', 'tblTempVendorCDR_20' ) start [2024-12-17 10:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040313', 'tblTempVendorCDR_20' ) end [2024-12-17 10:50:32] Production.INFO: ProcessCDR(1,14040313,1,1,2) [2024-12-17 10:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040313', 'tblTempUsageDetail_20' ) start [2024-12-17 10:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040313', 'tblTempUsageDetail_20' ) end [2024-12-17 10:50:37] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:50:37] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:50:37] Production.INFO: ==19610== Releasing lock... [2024-12-17 10:50:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:50:37] Production.INFO: 56.5 MB #Memory Used# [2024-12-17 10:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:51:04 [end_date_ymd] => 2024-12-17 10:51:04 [RateCDR] => 1 ) [2024-12-17 10: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 07:51:04' and `end` < '2024-12-17 10: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-17 10:51:24] Production.INFO: count ==3901 [2024-12-17 10:51:25] Production.ERROR: pbx CDR StartTime 2024-12-17 07:51:04 - End Time 2024-12-17 10:51:04 [2024-12-17 10:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040318', 'tblTempUsageDetail_20' ) start [2024-12-17 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040318', 'tblTempUsageDetail_20' ) end [2024-12-17 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040318', 'tblTempVendorCDR_20' ) start [2024-12-17 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040318', 'tblTempVendorCDR_20' ) end [2024-12-17 10:51:25] Production.INFO: ProcessCDR(1,14040318,1,1,2) [2024-12-17 10:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040318', 'tblTempUsageDetail_20' ) start [2024-12-17 10:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040318', 'tblTempUsageDetail_20' ) end [2024-12-17 10:51:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:51:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:51:29] Production.INFO: ==19690== Releasing lock... [2024-12-17 10:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:51:29] Production.INFO: 57 MB #Memory Used# [2024-12-17 10:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:52:04 [end_date_ymd] => 2024-12-17 10:52:04 [RateCDR] => 1 ) [2024-12-17 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-17 07:52:04' and `end` < '2024-12-17 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-17 10:52:24] Production.INFO: count ==3917 [2024-12-17 10:52:25] Production.ERROR: pbx CDR StartTime 2024-12-17 07:52:04 - End Time 2024-12-17 10:52:04 [2024-12-17 10:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040323', 'tblTempUsageDetail_20' ) start [2024-12-17 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040323', 'tblTempUsageDetail_20' ) end [2024-12-17 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040323', 'tblTempVendorCDR_20' ) start [2024-12-17 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040323', 'tblTempVendorCDR_20' ) end [2024-12-17 10:52:25] Production.INFO: ProcessCDR(1,14040323,1,1,2) [2024-12-17 10:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040323', 'tblTempUsageDetail_20' ) start [2024-12-17 10:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040323', 'tblTempUsageDetail_20' ) end [2024-12-17 10:52:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:52:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:52:29] Production.INFO: ==19769== Releasing lock... [2024-12-17 10:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:52:29] Production.INFO: 57.5 MB #Memory Used# [2024-12-17 10:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:53:04 [end_date_ymd] => 2024-12-17 10:53:04 [RateCDR] => 1 ) [2024-12-17 10: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-17 07:53:04' and `end` < '2024-12-17 10: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-17 10:53:23] Production.INFO: count ==3946 [2024-12-17 10:53:24] Production.ERROR: pbx CDR StartTime 2024-12-17 07:53:04 - End Time 2024-12-17 10:53:04 [2024-12-17 10:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040328', 'tblTempUsageDetail_20' ) start [2024-12-17 10:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040328', 'tblTempUsageDetail_20' ) end [2024-12-17 10:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040328', 'tblTempVendorCDR_20' ) start [2024-12-17 10:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040328', 'tblTempVendorCDR_20' ) end [2024-12-17 10:53:24] Production.INFO: ProcessCDR(1,14040328,1,1,2) [2024-12-17 10:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040328', 'tblTempUsageDetail_20' ) start [2024-12-17 10:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040328', 'tblTempUsageDetail_20' ) end [2024-12-17 10:53:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:53:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:53:29] Production.INFO: ==19890== Releasing lock... [2024-12-17 10:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:53:29] Production.INFO: 58 MB #Memory Used# [2024-12-17 10:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:54:04 [end_date_ymd] => 2024-12-17 10:54:04 [RateCDR] => 1 ) [2024-12-17 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-17 07:54:04' and `end` < '2024-12-17 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-17 10:54:18] Production.INFO: count ==3957 [2024-12-17 10:54:20] Production.ERROR: pbx CDR StartTime 2024-12-17 07:54:04 - End Time 2024-12-17 10:54:04 [2024-12-17 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040333', 'tblTempUsageDetail_20' ) start [2024-12-17 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040333', 'tblTempUsageDetail_20' ) end [2024-12-17 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040333', 'tblTempVendorCDR_20' ) start [2024-12-17 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040333', 'tblTempVendorCDR_20' ) end [2024-12-17 10:54:20] Production.INFO: ProcessCDR(1,14040333,1,1,2) [2024-12-17 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040333', 'tblTempUsageDetail_20' ) start [2024-12-17 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040333', 'tblTempUsageDetail_20' ) end [2024-12-17 10:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:54:24] Production.INFO: ==19978== Releasing lock... [2024-12-17 10:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:54:24] Production.INFO: 57.75 MB #Memory Used# [2024-12-17 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:55:05 [end_date_ymd] => 2024-12-17 10:55:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:55:05' and `end` < '2024-12-17 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-17 10:55:23] Production.INFO: count ==3970 [2024-12-17 10:55:25] Production.ERROR: pbx CDR StartTime 2024-12-17 07:55:05 - End Time 2024-12-17 10:55:05 [2024-12-17 10:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040338', 'tblTempUsageDetail_20' ) start [2024-12-17 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040338', 'tblTempUsageDetail_20' ) end [2024-12-17 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040338', 'tblTempVendorCDR_20' ) start [2024-12-17 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040338', 'tblTempVendorCDR_20' ) end [2024-12-17 10:55:25] Production.INFO: ProcessCDR(1,14040338,1,1,2) [2024-12-17 10:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040338', 'tblTempUsageDetail_20' ) start [2024-12-17 10:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040338', 'tblTempUsageDetail_20' ) end [2024-12-17 10:55:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:55:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:55:30] Production.INFO: ==20058== Releasing lock... [2024-12-17 10:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:55:30] Production.INFO: 57.75 MB #Memory Used# [2024-12-17 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:56:05 [end_date_ymd] => 2024-12-17 10:56:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:56:05' and `end` < '2024-12-17 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-17 10:56:26] Production.INFO: count ==4037 [2024-12-17 10:56:28] Production.ERROR: pbx CDR StartTime 2024-12-17 07:56:05 - End Time 2024-12-17 10:56:05 [2024-12-17 10:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040343', 'tblTempUsageDetail_20' ) start [2024-12-17 10:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040343', 'tblTempUsageDetail_20' ) end [2024-12-17 10:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040343', 'tblTempVendorCDR_20' ) start [2024-12-17 10:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040343', 'tblTempVendorCDR_20' ) end [2024-12-17 10:56:28] Production.INFO: ProcessCDR(1,14040343,1,1,2) [2024-12-17 10:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040343', 'tblTempUsageDetail_20' ) start [2024-12-17 10:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040343', 'tblTempUsageDetail_20' ) end [2024-12-17 10:56:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:56:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:56:33] Production.INFO: ==20137== Releasing lock... [2024-12-17 10:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:56:33] Production.INFO: 58.25 MB #Memory Used# [2024-12-17 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:57:05 [end_date_ymd] => 2024-12-17 10:57:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:57:05' and `end` < '2024-12-17 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-17 10:57:26] Production.INFO: count ==4068 [2024-12-17 10:57:27] Production.ERROR: pbx CDR StartTime 2024-12-17 07:57:05 - End Time 2024-12-17 10:57:05 [2024-12-17 10:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040348', 'tblTempUsageDetail_20' ) start [2024-12-17 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040348', 'tblTempUsageDetail_20' ) end [2024-12-17 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040348', 'tblTempVendorCDR_20' ) start [2024-12-17 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040348', 'tblTempVendorCDR_20' ) end [2024-12-17 10:57:27] Production.INFO: ProcessCDR(1,14040348,1,1,2) [2024-12-17 10:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040348', 'tblTempUsageDetail_20' ) start [2024-12-17 10:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040348', 'tblTempUsageDetail_20' ) end [2024-12-17 10:57:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:57:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:57:32] Production.INFO: ==20216== Releasing lock... [2024-12-17 10:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:57:32] Production.INFO: 58.25 MB #Memory Used# [2024-12-17 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:58:05 [end_date_ymd] => 2024-12-17 10:58:05 [RateCDR] => 1 ) [2024-12-17 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-17 07:58:05' and `end` < '2024-12-17 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-17 10:58:23] Production.INFO: count ==4110 [2024-12-17 10:58:24] Production.ERROR: pbx CDR StartTime 2024-12-17 07:58:05 - End Time 2024-12-17 10:58:05 [2024-12-17 10:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040353', 'tblTempUsageDetail_20' ) start [2024-12-17 10:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040353', 'tblTempUsageDetail_20' ) end [2024-12-17 10:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040353', 'tblTempVendorCDR_20' ) start [2024-12-17 10:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040353', 'tblTempVendorCDR_20' ) end [2024-12-17 10:58:24] Production.INFO: ProcessCDR(1,14040353,1,1,2) [2024-12-17 10:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040353', 'tblTempUsageDetail_20' ) start [2024-12-17 10:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040353', 'tblTempUsageDetail_20' ) end [2024-12-17 10:58:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:58:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:58:29] Production.INFO: ==20300== Releasing lock... [2024-12-17 10:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:58:29] Production.INFO: 58.75 MB #Memory Used# [2024-12-17 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 07:59:04 [end_date_ymd] => 2024-12-17 10:59:04 [RateCDR] => 1 ) [2024-12-17 10: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 07:59:04' and `end` < '2024-12-17 10: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-17 10:59:24] Production.INFO: count ==4128 [2024-12-17 10:59:26] Production.ERROR: pbx CDR StartTime 2024-12-17 07:59:04 - End Time 2024-12-17 10:59:04 [2024-12-17 10:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 10:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040358', 'tblTempUsageDetail_20' ) start [2024-12-17 10:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040358', 'tblTempUsageDetail_20' ) end [2024-12-17 10:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040358', 'tblTempVendorCDR_20' ) start [2024-12-17 10:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040358', 'tblTempVendorCDR_20' ) end [2024-12-17 10:59:26] Production.INFO: ProcessCDR(1,14040358,1,1,2) [2024-12-17 10:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 10:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 10:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040358', 'tblTempUsageDetail_20' ) start [2024-12-17 10:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040358', 'tblTempUsageDetail_20' ) end [2024-12-17 10:59:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 10:59:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 10:59:30] Production.INFO: ==20376== Releasing lock... [2024-12-17 10:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 10:59:30] Production.INFO: 58.75 MB #Memory Used# [2024-12-17 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:00:05 [end_date_ymd] => 2024-12-17 11:00:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:00:05' and `end` < '2024-12-17 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-17 11:00:25] Production.INFO: count ==4138 [2024-12-17 11:00:27] Production.ERROR: pbx CDR StartTime 2024-12-17 08:00:05 - End Time 2024-12-17 11:00:05 [2024-12-17 11:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040364', 'tblTempUsageDetail_20' ) start [2024-12-17 11:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040364', 'tblTempUsageDetail_20' ) end [2024-12-17 11:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040364', 'tblTempVendorCDR_20' ) start [2024-12-17 11:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040364', 'tblTempVendorCDR_20' ) end [2024-12-17 11:00:27] Production.INFO: ProcessCDR(1,14040364,1,1,2) [2024-12-17 11:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040364', 'tblTempUsageDetail_20' ) start [2024-12-17 11:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040364', 'tblTempUsageDetail_20' ) end [2024-12-17 11:00:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:00:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:00:32] Production.INFO: ==20471== Releasing lock... [2024-12-17 11:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:00:32] Production.INFO: 59 MB #Memory Used# [2024-12-17 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:01:05 [end_date_ymd] => 2024-12-17 11:01:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:01:05' and `end` < '2024-12-17 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-17 11:01:24] Production.INFO: count ==4255 [2024-12-17 11:01:26] Production.ERROR: pbx CDR StartTime 2024-12-17 08:01:05 - End Time 2024-12-17 11:01:05 [2024-12-17 11:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040369', 'tblTempUsageDetail_20' ) start [2024-12-17 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040369', 'tblTempUsageDetail_20' ) end [2024-12-17 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040369', 'tblTempVendorCDR_20' ) start [2024-12-17 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040369', 'tblTempVendorCDR_20' ) end [2024-12-17 11:01:26] Production.INFO: ProcessCDR(1,14040369,1,1,2) [2024-12-17 11:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040369', 'tblTempUsageDetail_20' ) start [2024-12-17 11:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040369', 'tblTempUsageDetail_20' ) end [2024-12-17 11:01:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:01:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:01:30] Production.INFO: ==20566== Releasing lock... [2024-12-17 11:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:01:30] Production.INFO: 59.75 MB #Memory Used# [2024-12-17 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:02:05 [end_date_ymd] => 2024-12-17 11:02:05 [RateCDR] => 1 ) [2024-12-17 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:02:05' and `end` < '2024-12-17 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:02:24] Production.INFO: count ==4266 [2024-12-17 11:02:25] Production.ERROR: pbx CDR StartTime 2024-12-17 08:02:05 - End Time 2024-12-17 11:02:05 [2024-12-17 11:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040374', 'tblTempUsageDetail_20' ) start [2024-12-17 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040374', 'tblTempUsageDetail_20' ) end [2024-12-17 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040374', 'tblTempVendorCDR_20' ) start [2024-12-17 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040374', 'tblTempVendorCDR_20' ) end [2024-12-17 11:02:25] Production.INFO: ProcessCDR(1,14040374,1,1,2) [2024-12-17 11:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040374', 'tblTempUsageDetail_20' ) start [2024-12-17 11:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040374', 'tblTempUsageDetail_20' ) end [2024-12-17 11:02:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:02:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:02:30] Production.INFO: ==20723== Releasing lock... [2024-12-17 11:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:02:30] Production.INFO: 60 MB #Memory Used# [2024-12-17 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:03:05 [end_date_ymd] => 2024-12-17 11:03:05 [RateCDR] => 1 ) [2024-12-17 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:03:05' and `end` < '2024-12-17 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:03:24] Production.INFO: count ==4262 [2024-12-17 11:03:26] Production.ERROR: pbx CDR StartTime 2024-12-17 08:03:05 - End Time 2024-12-17 11:03:05 [2024-12-17 11:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040379', 'tblTempUsageDetail_20' ) start [2024-12-17 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040379', 'tblTempUsageDetail_20' ) end [2024-12-17 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040379', 'tblTempVendorCDR_20' ) start [2024-12-17 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040379', 'tblTempVendorCDR_20' ) end [2024-12-17 11:03:26] Production.INFO: ProcessCDR(1,14040379,1,1,2) [2024-12-17 11:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040379', 'tblTempUsageDetail_20' ) start [2024-12-17 11:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040379', 'tblTempUsageDetail_20' ) end [2024-12-17 11:03:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:03:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:03:31] Production.INFO: ==20800== Releasing lock... [2024-12-17 11:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:03:31] Production.INFO: 59.75 MB #Memory Used# [2024-12-17 11:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:04:04 [end_date_ymd] => 2024-12-17 11:04:04 [RateCDR] => 1 ) [2024-12-17 11: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 08:04:04' and `end` < '2024-12-17 11: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-17 11:04:32] Production.INFO: count ==4285 [2024-12-17 11:04:34] Production.ERROR: pbx CDR StartTime 2024-12-17 08:04:04 - End Time 2024-12-17 11:04:04 [2024-12-17 11:04:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040384', 'tblTempUsageDetail_20' ) start [2024-12-17 11:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040384', 'tblTempUsageDetail_20' ) end [2024-12-17 11:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040384', 'tblTempVendorCDR_20' ) start [2024-12-17 11:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040384', 'tblTempVendorCDR_20' ) end [2024-12-17 11:04:34] Production.INFO: ProcessCDR(1,14040384,1,1,2) [2024-12-17 11:04:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:04:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:04:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:04:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040384', 'tblTempUsageDetail_20' ) start [2024-12-17 11:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040384', 'tblTempUsageDetail_20' ) end [2024-12-17 11:04:39] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:04:39] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:04:39] Production.INFO: ==20880== Releasing lock... [2024-12-17 11:04:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:04:39] Production.INFO: 60 MB #Memory Used# [2024-12-17 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:05:05 [end_date_ymd] => 2024-12-17 11:05:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:05:05' and `end` < '2024-12-17 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-17 11:05:27] Production.INFO: count ==4299 [2024-12-17 11:05:29] Production.ERROR: pbx CDR StartTime 2024-12-17 08:05:05 - End Time 2024-12-17 11:05:05 [2024-12-17 11:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040389', 'tblTempUsageDetail_20' ) start [2024-12-17 11:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040389', 'tblTempUsageDetail_20' ) end [2024-12-17 11:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040389', 'tblTempVendorCDR_20' ) start [2024-12-17 11:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040389', 'tblTempVendorCDR_20' ) end [2024-12-17 11:05:29] Production.INFO: ProcessCDR(1,14040389,1,1,2) [2024-12-17 11:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040389', 'tblTempUsageDetail_20' ) start [2024-12-17 11:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040389', 'tblTempUsageDetail_20' ) end [2024-12-17 11:05:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:05:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:05:34] Production.INFO: ==21038== Releasing lock... [2024-12-17 11:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:05:34] Production.INFO: 60.25 MB #Memory Used# [2024-12-17 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:06:05 [end_date_ymd] => 2024-12-17 11:06:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:06:05' and `end` < '2024-12-17 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-17 11:06:31] Production.INFO: count ==4322 [2024-12-17 11:06:33] Production.ERROR: pbx CDR StartTime 2024-12-17 08:06:05 - End Time 2024-12-17 11:06:05 [2024-12-17 11:06:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040394', 'tblTempUsageDetail_20' ) start [2024-12-17 11:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040394', 'tblTempUsageDetail_20' ) end [2024-12-17 11:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040394', 'tblTempVendorCDR_20' ) start [2024-12-17 11:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040394', 'tblTempVendorCDR_20' ) end [2024-12-17 11:06:33] Production.INFO: ProcessCDR(1,14040394,1,1,2) [2024-12-17 11:06:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:06:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:06:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:06:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040394', 'tblTempUsageDetail_20' ) start [2024-12-17 11:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040394', 'tblTempUsageDetail_20' ) end [2024-12-17 11:06:38] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:06:38] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:06:38] Production.INFO: ==21114== Releasing lock... [2024-12-17 11:06:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:06:38] Production.INFO: 60.5 MB #Memory Used# [2024-12-17 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:07:05 [end_date_ymd] => 2024-12-17 11:07:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:07:05' and `end` < '2024-12-17 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-17 11:07:34] Production.INFO: count ==4333 [2024-12-17 11:07:36] Production.ERROR: pbx CDR StartTime 2024-12-17 08:07:05 - End Time 2024-12-17 11:07:05 [2024-12-17 11:07:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040399', 'tblTempUsageDetail_20' ) start [2024-12-17 11:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040399', 'tblTempUsageDetail_20' ) end [2024-12-17 11:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040399', 'tblTempVendorCDR_20' ) start [2024-12-17 11:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040399', 'tblTempVendorCDR_20' ) end [2024-12-17 11:07:36] Production.INFO: ProcessCDR(1,14040399,1,1,2) [2024-12-17 11:07:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:07:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:07:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:07:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:07:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040399', 'tblTempUsageDetail_20' ) start [2024-12-17 11:07:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040399', 'tblTempUsageDetail_20' ) end [2024-12-17 11:07:40] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:07:41] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:07:41] Production.INFO: ==21198== Releasing lock... [2024-12-17 11:07:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:07:41] Production.INFO: 60.5 MB #Memory Used# [2024-12-17 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:08:05 [end_date_ymd] => 2024-12-17 11:08:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:08:05' and `end` < '2024-12-17 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-17 11:08:29] Production.INFO: count ==4356 [2024-12-17 11:08:31] Production.ERROR: pbx CDR StartTime 2024-12-17 08:08:05 - End Time 2024-12-17 11:08:05 [2024-12-17 11:08:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040404', 'tblTempUsageDetail_20' ) start [2024-12-17 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040404', 'tblTempUsageDetail_20' ) end [2024-12-17 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040404', 'tblTempVendorCDR_20' ) start [2024-12-17 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040404', 'tblTempVendorCDR_20' ) end [2024-12-17 11:08:31] Production.INFO: ProcessCDR(1,14040404,1,1,2) [2024-12-17 11:08:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:08:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:08:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:08:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040404', 'tblTempUsageDetail_20' ) start [2024-12-17 11:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040404', 'tblTempUsageDetail_20' ) end [2024-12-17 11:08:36] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:08:36] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:08:36] Production.INFO: ==21358== Releasing lock... [2024-12-17 11:08:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:08:36] Production.INFO: 60.5 MB #Memory Used# [2024-12-17 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:09:05 [end_date_ymd] => 2024-12-17 11:09:05 [RateCDR] => 1 ) [2024-12-17 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:09:05' and `end` < '2024-12-17 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:09:27] Production.INFO: count ==4360 [2024-12-17 11:09:29] Production.ERROR: pbx CDR StartTime 2024-12-17 08:09:05 - End Time 2024-12-17 11:09:05 [2024-12-17 11:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040409', 'tblTempUsageDetail_20' ) start [2024-12-17 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040409', 'tblTempUsageDetail_20' ) end [2024-12-17 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040409', 'tblTempVendorCDR_20' ) start [2024-12-17 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040409', 'tblTempVendorCDR_20' ) end [2024-12-17 11:09:29] Production.INFO: ProcessCDR(1,14040409,1,1,2) [2024-12-17 11:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:09:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:09:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:09:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040409', 'tblTempUsageDetail_20' ) start [2024-12-17 11:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040409', 'tblTempUsageDetail_20' ) end [2024-12-17 11:09:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:09:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:09:34] Production.INFO: ==21473== Releasing lock... [2024-12-17 11:09:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:09:34] Production.INFO: 60.5 MB #Memory Used# [2024-12-17 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:10:06 [end_date_ymd] => 2024-12-17 11:10:06 [RateCDR] => 1 ) [2024-12-17 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:10:06' and `end` < '2024-12-17 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:10:35] Production.INFO: count ==4397 [2024-12-17 11:10:37] Production.ERROR: pbx CDR StartTime 2024-12-17 08:10:06 - End Time 2024-12-17 11:10:06 [2024-12-17 11:10:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040415', 'tblTempUsageDetail_20' ) start [2024-12-17 11:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040415', 'tblTempUsageDetail_20' ) end [2024-12-17 11:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040415', 'tblTempVendorCDR_20' ) start [2024-12-17 11:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040415', 'tblTempVendorCDR_20' ) end [2024-12-17 11:10:37] Production.INFO: ProcessCDR(1,14040415,1,1,2) [2024-12-17 11:10:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:10:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:10:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:10:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040415', 'tblTempUsageDetail_20' ) start [2024-12-17 11:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040415', 'tblTempUsageDetail_20' ) end [2024-12-17 11:10:42] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:10:42] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:10:42] Production.INFO: ==21554== Releasing lock... [2024-12-17 11:10:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:10:42] Production.INFO: 60.75 MB #Memory Used# [2024-12-17 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:11:05 [end_date_ymd] => 2024-12-17 11:11:05 [RateCDR] => 1 ) [2024-12-17 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:11:05' and `end` < '2024-12-17 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:11:34] Production.INFO: count ==4464 [2024-12-17 11:11:36] Production.ERROR: pbx CDR StartTime 2024-12-17 08:11:05 - End Time 2024-12-17 11:11:05 [2024-12-17 11:11:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:11:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040420', 'tblTempUsageDetail_20' ) start [2024-12-17 11:11:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040420', 'tblTempUsageDetail_20' ) end [2024-12-17 11:11:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040420', 'tblTempVendorCDR_20' ) start [2024-12-17 11:11:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040420', 'tblTempVendorCDR_20' ) end [2024-12-17 11:11:36] Production.INFO: ProcessCDR(1,14040420,1,1,2) [2024-12-17 11:11:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:11:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:11:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:11:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:11:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040420', 'tblTempUsageDetail_20' ) start [2024-12-17 11:11:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040420', 'tblTempUsageDetail_20' ) end [2024-12-17 11:11:41] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:11:41] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:11:41] Production.INFO: ==21636== Releasing lock... [2024-12-17 11:11:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:11:41] Production.INFO: 61.25 MB #Memory Used# [2024-12-17 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:12:05 [end_date_ymd] => 2024-12-17 11:12:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:12:05' and `end` < '2024-12-17 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-17 11:12:25] Production.INFO: count ==4465 [2024-12-17 11:12:27] Production.ERROR: pbx CDR StartTime 2024-12-17 08:12:05 - End Time 2024-12-17 11:12:05 [2024-12-17 11:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040425', 'tblTempUsageDetail_20' ) start [2024-12-17 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040425', 'tblTempUsageDetail_20' ) end [2024-12-17 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040425', 'tblTempVendorCDR_20' ) start [2024-12-17 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040425', 'tblTempVendorCDR_20' ) end [2024-12-17 11:12:27] Production.INFO: ProcessCDR(1,14040425,1,1,2) [2024-12-17 11:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040425', 'tblTempUsageDetail_20' ) start [2024-12-17 11:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040425', 'tblTempUsageDetail_20' ) end [2024-12-17 11:12:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:12:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:12:31] Production.INFO: ==21791== Releasing lock... [2024-12-17 11:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:12:31] Production.INFO: 61.25 MB #Memory Used# [2024-12-17 11:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:13:04 [end_date_ymd] => 2024-12-17 11:13:04 [RateCDR] => 1 ) [2024-12-17 11: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 08:13:04' and `end` < '2024-12-17 11: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-17 11:13:25] Production.INFO: count ==4471 [2024-12-17 11:13:27] Production.ERROR: pbx CDR StartTime 2024-12-17 08:13:04 - End Time 2024-12-17 11:13:04 [2024-12-17 11:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040430', 'tblTempUsageDetail_20' ) start [2024-12-17 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040430', 'tblTempUsageDetail_20' ) end [2024-12-17 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040430', 'tblTempVendorCDR_20' ) start [2024-12-17 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040430', 'tblTempVendorCDR_20' ) end [2024-12-17 11:13:27] Production.INFO: ProcessCDR(1,14040430,1,1,2) [2024-12-17 11:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040430', 'tblTempUsageDetail_20' ) start [2024-12-17 11:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040430', 'tblTempUsageDetail_20' ) end [2024-12-17 11:13:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:13:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:13:32] Production.INFO: ==21867== Releasing lock... [2024-12-17 11:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:13:32] Production.INFO: 61.5 MB #Memory Used# [2024-12-17 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:14:05 [end_date_ymd] => 2024-12-17 11:14:05 [RateCDR] => 1 ) [2024-12-17 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:14:05' and `end` < '2024-12-17 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:14:23] Production.INFO: count ==4474 [2024-12-17 11:14:25] Production.ERROR: pbx CDR StartTime 2024-12-17 08:14:05 - End Time 2024-12-17 11:14:05 [2024-12-17 11:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040435', 'tblTempUsageDetail_20' ) start [2024-12-17 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040435', 'tblTempUsageDetail_20' ) end [2024-12-17 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040435', 'tblTempVendorCDR_20' ) start [2024-12-17 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040435', 'tblTempVendorCDR_20' ) end [2024-12-17 11:14:25] Production.INFO: ProcessCDR(1,14040435,1,1,2) [2024-12-17 11:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040435', 'tblTempUsageDetail_20' ) start [2024-12-17 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040435', 'tblTempUsageDetail_20' ) end [2024-12-17 11:14:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:14:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:14:30] Production.INFO: ==21948== Releasing lock... [2024-12-17 11:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:14:30] Production.INFO: 61.5 MB #Memory Used# [2024-12-17 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:15:05 [end_date_ymd] => 2024-12-17 11:15:05 [RateCDR] => 1 ) [2024-12-17 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:15:05' and `end` < '2024-12-17 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:15:18] Production.INFO: count ==4485 [2024-12-17 11:15:20] Production.ERROR: pbx CDR StartTime 2024-12-17 08:15:05 - End Time 2024-12-17 11:15:05 [2024-12-17 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040440', 'tblTempUsageDetail_20' ) start [2024-12-17 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040440', 'tblTempUsageDetail_20' ) end [2024-12-17 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040440', 'tblTempVendorCDR_20' ) start [2024-12-17 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040440', 'tblTempVendorCDR_20' ) end [2024-12-17 11:15:20] Production.INFO: ProcessCDR(1,14040440,1,1,2) [2024-12-17 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040440', 'tblTempUsageDetail_20' ) start [2024-12-17 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040440', 'tblTempUsageDetail_20' ) end [2024-12-17 11:15:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:15:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:15:25] Production.INFO: ==22101== Releasing lock... [2024-12-17 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:15:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-17 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:16:05 [end_date_ymd] => 2024-12-17 11:16:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:16:05' and `end` < '2024-12-17 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-17 11:16:26] Production.INFO: count ==4497 [2024-12-17 11:16:28] Production.ERROR: pbx CDR StartTime 2024-12-17 08:16:05 - End Time 2024-12-17 11:16:05 [2024-12-17 11:16:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040445', 'tblTempUsageDetail_20' ) start [2024-12-17 11:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040445', 'tblTempUsageDetail_20' ) end [2024-12-17 11:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040445', 'tblTempVendorCDR_20' ) start [2024-12-17 11:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040445', 'tblTempVendorCDR_20' ) end [2024-12-17 11:16:28] Production.INFO: ProcessCDR(1,14040445,1,1,2) [2024-12-17 11:16:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:16:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:16:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:16:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040445', 'tblTempUsageDetail_20' ) start [2024-12-17 11:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040445', 'tblTempUsageDetail_20' ) end [2024-12-17 11:16:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:16:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:16:33] Production.INFO: ==22181== Releasing lock... [2024-12-17 11:16:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:16:33] Production.INFO: 61.5 MB #Memory Used# [2024-12-17 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:17:05 [end_date_ymd] => 2024-12-17 11:17:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:17:05' and `end` < '2024-12-17 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-17 11:17:27] Production.INFO: count ==4506 [2024-12-17 11:17:29] Production.ERROR: pbx CDR StartTime 2024-12-17 08:17:05 - End Time 2024-12-17 11:17:05 [2024-12-17 11:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040450', 'tblTempUsageDetail_20' ) start [2024-12-17 11:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040450', 'tblTempUsageDetail_20' ) end [2024-12-17 11:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040450', 'tblTempVendorCDR_20' ) start [2024-12-17 11:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040450', 'tblTempVendorCDR_20' ) end [2024-12-17 11:17:29] Production.INFO: ProcessCDR(1,14040450,1,1,2) [2024-12-17 11:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040450', 'tblTempUsageDetail_20' ) start [2024-12-17 11:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040450', 'tblTempUsageDetail_20' ) end [2024-12-17 11:17:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:17:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:17:34] Production.INFO: ==22254== Releasing lock... [2024-12-17 11:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:17:34] Production.INFO: 61.75 MB #Memory Used# [2024-12-17 11:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:18:04 [end_date_ymd] => 2024-12-17 11:18:04 [RateCDR] => 1 ) [2024-12-17 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-17 08:18:04' and `end` < '2024-12-17 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-17 11:18:26] Production.INFO: count ==4502 [2024-12-17 11:18:28] Production.ERROR: pbx CDR StartTime 2024-12-17 08:18:04 - End Time 2024-12-17 11:18:04 [2024-12-17 11:18:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040455', 'tblTempUsageDetail_20' ) start [2024-12-17 11:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040455', 'tblTempUsageDetail_20' ) end [2024-12-17 11:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040455', 'tblTempVendorCDR_20' ) start [2024-12-17 11:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040455', 'tblTempVendorCDR_20' ) end [2024-12-17 11:18:28] Production.INFO: ProcessCDR(1,14040455,1,1,2) [2024-12-17 11:18:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040455', 'tblTempUsageDetail_20' ) start [2024-12-17 11:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040455', 'tblTempUsageDetail_20' ) end [2024-12-17 11:18:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:18:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:18:33] Production.INFO: ==22334== Releasing lock... [2024-12-17 11:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:18:33] Production.INFO: 61.75 MB #Memory Used# [2024-12-17 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:19:04 [end_date_ymd] => 2024-12-17 11:19:04 [RateCDR] => 1 ) [2024-12-17 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-17 08:19:04' and `end` < '2024-12-17 11:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:19:21] Production.INFO: count ==4505 [2024-12-17 11:19:23] Production.ERROR: pbx CDR StartTime 2024-12-17 08:19:04 - End Time 2024-12-17 11:19:04 [2024-12-17 11:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040460', 'tblTempUsageDetail_20' ) start [2024-12-17 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040460', 'tblTempUsageDetail_20' ) end [2024-12-17 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040460', 'tblTempVendorCDR_20' ) start [2024-12-17 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040460', 'tblTempVendorCDR_20' ) end [2024-12-17 11:19:23] Production.INFO: ProcessCDR(1,14040460,1,1,2) [2024-12-17 11:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040460', 'tblTempUsageDetail_20' ) start [2024-12-17 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040460', 'tblTempUsageDetail_20' ) end [2024-12-17 11:19:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:19:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:19:28] Production.INFO: ==22406== Releasing lock... [2024-12-17 11:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:19:28] Production.INFO: 61.75 MB #Memory Used# [2024-12-17 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:20:05 [end_date_ymd] => 2024-12-17 11:20:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:20:05' and `end` < '2024-12-17 11: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-17 11:20:27] Production.INFO: count ==4519 [2024-12-17 11:20:29] Production.ERROR: pbx CDR StartTime 2024-12-17 08:20:05 - End Time 2024-12-17 11:20:05 [2024-12-17 11:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040465', 'tblTempUsageDetail_20' ) start [2024-12-17 11:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040465', 'tblTempUsageDetail_20' ) end [2024-12-17 11:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040465', 'tblTempVendorCDR_20' ) start [2024-12-17 11:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040465', 'tblTempVendorCDR_20' ) end [2024-12-17 11:20:29] Production.INFO: ProcessCDR(1,14040465,1,1,2) [2024-12-17 11:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040465', 'tblTempUsageDetail_20' ) start [2024-12-17 11:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040465', 'tblTempUsageDetail_20' ) end [2024-12-17 11:20:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:20:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:20:34] Production.INFO: ==22484== Releasing lock... [2024-12-17 11:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:20:34] Production.INFO: 61.75 MB #Memory Used# [2024-12-17 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:21:05 [end_date_ymd] => 2024-12-17 11:21:05 [RateCDR] => 1 ) [2024-12-17 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:21:05' and `end` < '2024-12-17 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:21:24] Production.INFO: count ==4598 [2024-12-17 11:21:26] Production.ERROR: pbx CDR StartTime 2024-12-17 08:21:05 - End Time 2024-12-17 11:21:05 [2024-12-17 11:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040471', 'tblTempUsageDetail_20' ) start [2024-12-17 11:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040471', 'tblTempUsageDetail_20' ) end [2024-12-17 11:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040471', 'tblTempVendorCDR_20' ) start [2024-12-17 11:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040471', 'tblTempVendorCDR_20' ) end [2024-12-17 11:21:26] Production.INFO: ProcessCDR(1,14040471,1,1,2) [2024-12-17 11:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040471', 'tblTempUsageDetail_20' ) start [2024-12-17 11:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040471', 'tblTempUsageDetail_20' ) end [2024-12-17 11:21:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:21:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:21:31] Production.INFO: ==22564== Releasing lock... [2024-12-17 11:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:21:31] Production.INFO: 62.25 MB #Memory Used# [2024-12-17 11:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:22:04 [end_date_ymd] => 2024-12-17 11:22:04 [RateCDR] => 1 ) [2024-12-17 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-17 08:22:04' and `end` < '2024-12-17 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-17 11:22:19] Production.INFO: count ==4600 [2024-12-17 11:22:21] Production.ERROR: pbx CDR StartTime 2024-12-17 08:22:04 - End Time 2024-12-17 11:22:04 [2024-12-17 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040476', 'tblTempUsageDetail_20' ) start [2024-12-17 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040476', 'tblTempUsageDetail_20' ) end [2024-12-17 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040476', 'tblTempVendorCDR_20' ) start [2024-12-17 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040476', 'tblTempVendorCDR_20' ) end [2024-12-17 11:22:21] Production.INFO: ProcessCDR(1,14040476,1,1,2) [2024-12-17 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040476', 'tblTempUsageDetail_20' ) start [2024-12-17 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040476', 'tblTempUsageDetail_20' ) end [2024-12-17 11:22:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:22:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:22:26] Production.INFO: ==22639== Releasing lock... [2024-12-17 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:22:26] Production.INFO: 62.5 MB #Memory Used# [2024-12-17 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:23:05 [end_date_ymd] => 2024-12-17 11:23:05 [RateCDR] => 1 ) [2024-12-17 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:23:05' and `end` < '2024-12-17 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:23:26] Production.INFO: count ==4605 [2024-12-17 11:23:27] Production.ERROR: pbx CDR StartTime 2024-12-17 08:23:05 - End Time 2024-12-17 11:23:05 [2024-12-17 11:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040481', 'tblTempUsageDetail_20' ) start [2024-12-17 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040481', 'tblTempUsageDetail_20' ) end [2024-12-17 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040481', 'tblTempVendorCDR_20' ) start [2024-12-17 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040481', 'tblTempVendorCDR_20' ) end [2024-12-17 11:23:27] Production.INFO: ProcessCDR(1,14040481,1,1,2) [2024-12-17 11:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040481', 'tblTempUsageDetail_20' ) start [2024-12-17 11:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040481', 'tblTempUsageDetail_20' ) end [2024-12-17 11:23:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:23:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:23:32] Production.INFO: ==22714== Releasing lock... [2024-12-17 11:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:23:32] Production.INFO: 62.5 MB #Memory Used# [2024-12-17 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:24:05 [end_date_ymd] => 2024-12-17 11:24:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:24:05' and `end` < '2024-12-17 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-17 11:24:21] Production.INFO: count ==4613 [2024-12-17 11:24:23] Production.ERROR: pbx CDR StartTime 2024-12-17 08:24:05 - End Time 2024-12-17 11:24:05 [2024-12-17 11:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040486', 'tblTempUsageDetail_20' ) start [2024-12-17 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040486', 'tblTempUsageDetail_20' ) end [2024-12-17 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040486', 'tblTempVendorCDR_20' ) start [2024-12-17 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040486', 'tblTempVendorCDR_20' ) end [2024-12-17 11:24:23] Production.INFO: ProcessCDR(1,14040486,1,1,2) [2024-12-17 11:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040486', 'tblTempUsageDetail_20' ) start [2024-12-17 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040486', 'tblTempUsageDetail_20' ) end [2024-12-17 11:24:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:24:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:24:27] Production.INFO: ==22830== Releasing lock... [2024-12-17 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:24:27] Production.INFO: 62.5 MB #Memory Used# [2024-12-17 11:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:25:04 [end_date_ymd] => 2024-12-17 11:25:04 [RateCDR] => 1 ) [2024-12-17 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-17 08:25:04' and `end` < '2024-12-17 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-17 11:25:25] Production.INFO: count ==4599 [2024-12-17 11:25:26] Production.ERROR: pbx CDR StartTime 2024-12-17 08:25:04 - End Time 2024-12-17 11:25:04 [2024-12-17 11:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040491', 'tblTempUsageDetail_20' ) start [2024-12-17 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040491', 'tblTempUsageDetail_20' ) end [2024-12-17 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040491', 'tblTempVendorCDR_20' ) start [2024-12-17 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040491', 'tblTempVendorCDR_20' ) end [2024-12-17 11:25:26] Production.INFO: ProcessCDR(1,14040491,1,1,2) [2024-12-17 11:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040491', 'tblTempUsageDetail_20' ) start [2024-12-17 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040491', 'tblTempUsageDetail_20' ) end [2024-12-17 11:25:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:25:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:25:31] Production.INFO: ==22904== Releasing lock... [2024-12-17 11:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:25:31] Production.INFO: 62.5 MB #Memory Used# [2024-12-17 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:26:04 [end_date_ymd] => 2024-12-17 11:26:04 [RateCDR] => 1 ) [2024-12-17 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-17 08:26:04' and `end` < '2024-12-17 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-17 11:26:23] Production.INFO: count ==4598 [2024-12-17 11:26:24] Production.ERROR: pbx CDR StartTime 2024-12-17 08:26:04 - End Time 2024-12-17 11:26:04 [2024-12-17 11:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040494', 'tblTempUsageDetail_20' ) start [2024-12-17 11:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040494', 'tblTempUsageDetail_20' ) end [2024-12-17 11:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040494', 'tblTempVendorCDR_20' ) start [2024-12-17 11:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040494', 'tblTempVendorCDR_20' ) end [2024-12-17 11:26:24] Production.INFO: ProcessCDR(1,14040494,1,1,2) [2024-12-17 11:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040494', 'tblTempUsageDetail_20' ) start [2024-12-17 11:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040494', 'tblTempUsageDetail_20' ) end [2024-12-17 11:26:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:26:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:26:29] Production.INFO: ==22975== Releasing lock... [2024-12-17 11:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:26:29] Production.INFO: 62.5 MB #Memory Used# [2024-12-17 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:27:05 [end_date_ymd] => 2024-12-17 11:27:05 [RateCDR] => 1 ) [2024-12-17 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:27:05' and `end` < '2024-12-17 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:27:21] Production.INFO: count ==4603 [2024-12-17 11:27:23] Production.ERROR: pbx CDR StartTime 2024-12-17 08:27:05 - End Time 2024-12-17 11:27:05 [2024-12-17 11:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040501', 'tblTempUsageDetail_20' ) start [2024-12-17 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040501', 'tblTempUsageDetail_20' ) end [2024-12-17 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040501', 'tblTempVendorCDR_20' ) start [2024-12-17 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040501', 'tblTempVendorCDR_20' ) end [2024-12-17 11:27:23] Production.INFO: ProcessCDR(1,14040501,1,1,2) [2024-12-17 11:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040501', 'tblTempUsageDetail_20' ) start [2024-12-17 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040501', 'tblTempUsageDetail_20' ) end [2024-12-17 11:27:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:27:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:27:28] Production.INFO: ==23048== Releasing lock... [2024-12-17 11:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:27:28] Production.INFO: 62.5 MB #Memory Used# [2024-12-17 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:28:05 [end_date_ymd] => 2024-12-17 11:28:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:28:05' and `end` < '2024-12-17 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-17 11:28:18] Production.INFO: count ==4603 [2024-12-17 11:28:19] Production.ERROR: pbx CDR StartTime 2024-12-17 08:28:05 - End Time 2024-12-17 11:28:05 [2024-12-17 11:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040506', 'tblTempUsageDetail_20' ) start [2024-12-17 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040506', 'tblTempUsageDetail_20' ) end [2024-12-17 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040506', 'tblTempVendorCDR_20' ) start [2024-12-17 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040506', 'tblTempVendorCDR_20' ) end [2024-12-17 11:28:19] Production.INFO: ProcessCDR(1,14040506,1,1,2) [2024-12-17 11:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040506', 'tblTempUsageDetail_20' ) start [2024-12-17 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040506', 'tblTempUsageDetail_20' ) end [2024-12-17 11:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:28:24] Production.INFO: ==23123== Releasing lock... [2024-12-17 11:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:28:24] Production.INFO: 62.5 MB #Memory Used# [2024-12-17 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:29:04 [end_date_ymd] => 2024-12-17 11:29:04 [RateCDR] => 1 ) [2024-12-17 11:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:29:04' and `end` < '2024-12-17 11:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:29:20] Production.INFO: count ==4595 [2024-12-17 11:29:21] Production.ERROR: pbx CDR StartTime 2024-12-17 08:29:04 - End Time 2024-12-17 11:29:04 [2024-12-17 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040511', 'tblTempUsageDetail_20' ) start [2024-12-17 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040511', 'tblTempUsageDetail_20' ) end [2024-12-17 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040511', 'tblTempVendorCDR_20' ) start [2024-12-17 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040511', 'tblTempVendorCDR_20' ) end [2024-12-17 11:29:21] Production.INFO: ProcessCDR(1,14040511,1,1,2) [2024-12-17 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040511', 'tblTempUsageDetail_20' ) start [2024-12-17 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040511', 'tblTempUsageDetail_20' ) end [2024-12-17 11:29:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:29:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:29:26] Production.INFO: ==23197== Releasing lock... [2024-12-17 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:29:26] Production.INFO: 62.25 MB #Memory Used# [2024-12-17 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:30:05 [end_date_ymd] => 2024-12-17 11:30:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:30:05' and `end` < '2024-12-17 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-17 11:30:19] Production.INFO: count ==4586 [2024-12-17 11:30:21] Production.ERROR: pbx CDR StartTime 2024-12-17 08:30:05 - End Time 2024-12-17 11:30:05 [2024-12-17 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040517', 'tblTempUsageDetail_20' ) start [2024-12-17 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040517', 'tblTempUsageDetail_20' ) end [2024-12-17 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040517', 'tblTempVendorCDR_20' ) start [2024-12-17 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040517', 'tblTempVendorCDR_20' ) end [2024-12-17 11:30:21] Production.INFO: ProcessCDR(1,14040517,1,1,2) [2024-12-17 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040517', 'tblTempUsageDetail_20' ) start [2024-12-17 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040517', 'tblTempUsageDetail_20' ) end [2024-12-17 11:30:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:30:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:30:26] Production.INFO: ==23281== Releasing lock... [2024-12-17 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:30:26] Production.INFO: 62.25 MB #Memory Used# [2024-12-17 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:31:04 [end_date_ymd] => 2024-12-17 11:31:04 [RateCDR] => 1 ) [2024-12-17 11: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 08:31:04' and `end` < '2024-12-17 11: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-17 11:31:22] Production.INFO: count ==4645 [2024-12-17 11:31:24] Production.ERROR: pbx CDR StartTime 2024-12-17 08:31:04 - End Time 2024-12-17 11:31:04 [2024-12-17 11:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040522', 'tblTempUsageDetail_20' ) start [2024-12-17 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040522', 'tblTempUsageDetail_20' ) end [2024-12-17 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040522', 'tblTempVendorCDR_20' ) start [2024-12-17 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040522', 'tblTempVendorCDR_20' ) end [2024-12-17 11:31:24] Production.INFO: ProcessCDR(1,14040522,1,1,2) [2024-12-17 11:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040522', 'tblTempUsageDetail_20' ) start [2024-12-17 11:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040522', 'tblTempUsageDetail_20' ) end [2024-12-17 11:31:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:31:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:31:29] Production.INFO: ==23358== Releasing lock... [2024-12-17 11:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:31:29] Production.INFO: 62.75 MB #Memory Used# [2024-12-17 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:32:05 [end_date_ymd] => 2024-12-17 11:32:05 [RateCDR] => 1 ) [2024-12-17 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:32:05' and `end` < '2024-12-17 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:32:24] Production.INFO: count ==4647 [2024-12-17 11:32:26] Production.ERROR: pbx CDR StartTime 2024-12-17 08:32:05 - End Time 2024-12-17 11:32:05 [2024-12-17 11:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040527', 'tblTempUsageDetail_20' ) start [2024-12-17 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040527', 'tblTempUsageDetail_20' ) end [2024-12-17 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040527', 'tblTempVendorCDR_20' ) start [2024-12-17 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040527', 'tblTempVendorCDR_20' ) end [2024-12-17 11:32:26] Production.INFO: ProcessCDR(1,14040527,1,1,2) [2024-12-17 11:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040527', 'tblTempUsageDetail_20' ) start [2024-12-17 11:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040527', 'tblTempUsageDetail_20' ) end [2024-12-17 11:32:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:32:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:32:30] Production.INFO: ==23433== Releasing lock... [2024-12-17 11:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:32:30] Production.INFO: 62.75 MB #Memory Used# [2024-12-17 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:33:05 [end_date_ymd] => 2024-12-17 11:33:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:33:05' and `end` < '2024-12-17 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-17 11:33:25] Production.INFO: count ==4649 [2024-12-17 11:33:26] Production.ERROR: pbx CDR StartTime 2024-12-17 08:33:05 - End Time 2024-12-17 11:33:05 [2024-12-17 11:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040532', 'tblTempUsageDetail_20' ) start [2024-12-17 11:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040532', 'tblTempUsageDetail_20' ) end [2024-12-17 11:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040532', 'tblTempVendorCDR_20' ) start [2024-12-17 11:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040532', 'tblTempVendorCDR_20' ) end [2024-12-17 11:33:26] Production.INFO: ProcessCDR(1,14040532,1,1,2) [2024-12-17 11:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040532', 'tblTempUsageDetail_20' ) start [2024-12-17 11:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040532', 'tblTempUsageDetail_20' ) end [2024-12-17 11:33:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:33:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:33:31] Production.INFO: ==23507== Releasing lock... [2024-12-17 11:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:33:31] Production.INFO: 62.75 MB #Memory Used# [2024-12-17 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:34:04 [end_date_ymd] => 2024-12-17 11:34:04 [RateCDR] => 1 ) [2024-12-17 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-17 08:34:04' and `end` < '2024-12-17 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-17 11:34:20] Production.INFO: count ==4638 [2024-12-17 11:34:22] Production.ERROR: pbx CDR StartTime 2024-12-17 08:34:04 - End Time 2024-12-17 11:34:04 [2024-12-17 11:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040537', 'tblTempUsageDetail_20' ) start [2024-12-17 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040537', 'tblTempUsageDetail_20' ) end [2024-12-17 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040537', 'tblTempVendorCDR_20' ) start [2024-12-17 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040537', 'tblTempVendorCDR_20' ) end [2024-12-17 11:34:22] Production.INFO: ProcessCDR(1,14040537,1,1,2) [2024-12-17 11:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040537', 'tblTempUsageDetail_20' ) start [2024-12-17 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040537', 'tblTempUsageDetail_20' ) end [2024-12-17 11:34:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:34:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:34:27] Production.INFO: ==23582== Releasing lock... [2024-12-17 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:34:27] Production.INFO: 62.75 MB #Memory Used# [2024-12-17 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:35:04 [end_date_ymd] => 2024-12-17 11:35:04 [RateCDR] => 1 ) [2024-12-17 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-17 08:35:04' and `end` < '2024-12-17 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-17 11:35:18] Production.INFO: count ==4629 [2024-12-17 11:35:20] Production.ERROR: pbx CDR StartTime 2024-12-17 08:35:04 - End Time 2024-12-17 11:35:04 [2024-12-17 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040542', 'tblTempUsageDetail_20' ) start [2024-12-17 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040542', 'tblTempUsageDetail_20' ) end [2024-12-17 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040542', 'tblTempVendorCDR_20' ) start [2024-12-17 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040542', 'tblTempVendorCDR_20' ) end [2024-12-17 11:35:20] Production.INFO: ProcessCDR(1,14040542,1,1,2) [2024-12-17 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040542', 'tblTempUsageDetail_20' ) start [2024-12-17 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040542', 'tblTempUsageDetail_20' ) end [2024-12-17 11:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:35:23] Production.INFO: ==23669== Releasing lock... [2024-12-17 11:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:35:23] Production.INFO: 62.5 MB #Memory Used# [2024-12-17 11:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:36:04 [end_date_ymd] => 2024-12-17 11:36:04 [RateCDR] => 1 ) [2024-12-17 11: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-17 08:36:04' and `end` < '2024-12-17 11: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-17 11:36:20] Production.INFO: count ==4639 [2024-12-17 11:36:22] Production.ERROR: pbx CDR StartTime 2024-12-17 08:36:04 - End Time 2024-12-17 11:36:04 [2024-12-17 11:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040547', 'tblTempUsageDetail_20' ) start [2024-12-17 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040547', 'tblTempUsageDetail_20' ) end [2024-12-17 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040547', 'tblTempVendorCDR_20' ) start [2024-12-17 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040547', 'tblTempVendorCDR_20' ) end [2024-12-17 11:36:22] Production.INFO: ProcessCDR(1,14040547,1,1,2) [2024-12-17 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040547', 'tblTempUsageDetail_20' ) start [2024-12-17 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040547', 'tblTempUsageDetail_20' ) end [2024-12-17 11:36:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:36:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:36:26] Production.INFO: ==23752== Releasing lock... [2024-12-17 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:36:26] Production.INFO: 62.75 MB #Memory Used# [2024-12-17 11:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:37:04 [end_date_ymd] => 2024-12-17 11:37:04 [RateCDR] => 1 ) [2024-12-17 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-17 08:37:04' and `end` < '2024-12-17 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-17 11:37:33] Production.INFO: count ==4686 [2024-12-17 11:37:35] Production.ERROR: pbx CDR StartTime 2024-12-17 08:37:04 - End Time 2024-12-17 11:37:04 [2024-12-17 11:37:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:37:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040552', 'tblTempUsageDetail_20' ) start [2024-12-17 11:37:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040552', 'tblTempUsageDetail_20' ) end [2024-12-17 11:37:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040552', 'tblTempVendorCDR_20' ) start [2024-12-17 11:37:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040552', 'tblTempVendorCDR_20' ) end [2024-12-17 11:37:35] Production.INFO: ProcessCDR(1,14040552,1,1,2) [2024-12-17 11:37:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:37:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:37:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:37:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:37:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040552', 'tblTempUsageDetail_20' ) start [2024-12-17 11:37:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040552', 'tblTempUsageDetail_20' ) end [2024-12-17 11:37:39] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:37:39] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:37:39] Production.INFO: ==23832== Releasing lock... [2024-12-17 11:37:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:37:39] Production.INFO: 63 MB #Memory Used# [2024-12-17 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:38:05 [end_date_ymd] => 2024-12-17 11:38:05 [RateCDR] => 1 ) [2024-12-17 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:38:05' and `end` < '2024-12-17 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:38:28] Production.INFO: count ==4698 [2024-12-17 11:38:30] Production.ERROR: pbx CDR StartTime 2024-12-17 08:38:05 - End Time 2024-12-17 11:38:05 [2024-12-17 11:38:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040557', 'tblTempUsageDetail_20' ) start [2024-12-17 11:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040557', 'tblTempUsageDetail_20' ) end [2024-12-17 11:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040557', 'tblTempVendorCDR_20' ) start [2024-12-17 11:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040557', 'tblTempVendorCDR_20' ) end [2024-12-17 11:38:30] Production.INFO: ProcessCDR(1,14040557,1,1,2) [2024-12-17 11:38:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:38:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:38:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:38:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040557', 'tblTempUsageDetail_20' ) start [2024-12-17 11:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040557', 'tblTempUsageDetail_20' ) end [2024-12-17 11:38:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:38:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:38:34] Production.INFO: ==23922== Releasing lock... [2024-12-17 11:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:38:34] Production.INFO: 63.25 MB #Memory Used# [2024-12-17 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:39:04 [end_date_ymd] => 2024-12-17 11:39:04 [RateCDR] => 1 ) [2024-12-17 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-17 08:39:04' and `end` < '2024-12-17 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-17 11:39:22] Production.INFO: count ==4702 [2024-12-17 11:39:23] Production.ERROR: pbx CDR StartTime 2024-12-17 08:39:04 - End Time 2024-12-17 11:39:04 [2024-12-17 11:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040562', 'tblTempUsageDetail_20' ) start [2024-12-17 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040562', 'tblTempUsageDetail_20' ) end [2024-12-17 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040562', 'tblTempVendorCDR_20' ) start [2024-12-17 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040562', 'tblTempVendorCDR_20' ) end [2024-12-17 11:39:24] Production.INFO: ProcessCDR(1,14040562,1,1,2) [2024-12-17 11:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040562', 'tblTempUsageDetail_20' ) start [2024-12-17 11:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040562', 'tblTempUsageDetail_20' ) end [2024-12-17 11:39:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:39:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:39:28] Production.INFO: ==24009== Releasing lock... [2024-12-17 11:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:39:28] Production.INFO: 63.25 MB #Memory Used# [2024-12-17 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:40:05 [end_date_ymd] => 2024-12-17 11:40:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:40:05' and `end` < '2024-12-17 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-17 11:40:27] Production.INFO: count ==4699 [2024-12-17 11:40:29] Production.ERROR: pbx CDR StartTime 2024-12-17 08:40:05 - End Time 2024-12-17 11:40:05 [2024-12-17 11:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040568', 'tblTempUsageDetail_20' ) start [2024-12-17 11:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040568', 'tblTempUsageDetail_20' ) end [2024-12-17 11:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040568', 'tblTempVendorCDR_20' ) start [2024-12-17 11:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040568', 'tblTempVendorCDR_20' ) end [2024-12-17 11:40:29] Production.INFO: ProcessCDR(1,14040568,1,1,2) [2024-12-17 11:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040568', 'tblTempUsageDetail_20' ) start [2024-12-17 11:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040568', 'tblTempUsageDetail_20' ) end [2024-12-17 11:40:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:40:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:40:34] Production.INFO: ==24132== Releasing lock... [2024-12-17 11:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:40:34] Production.INFO: 63.25 MB #Memory Used# [2024-12-17 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:41:05 [end_date_ymd] => 2024-12-17 11:41:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:41:05' and `end` < '2024-12-17 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-17 11:41:28] Production.INFO: count ==4789 [2024-12-17 11:41:30] Production.ERROR: pbx CDR StartTime 2024-12-17 08:41:05 - End Time 2024-12-17 11:41:05 [2024-12-17 11:41:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040573', 'tblTempUsageDetail_20' ) start [2024-12-17 11:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040573', 'tblTempUsageDetail_20' ) end [2024-12-17 11:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040573', 'tblTempVendorCDR_20' ) start [2024-12-17 11:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040573', 'tblTempVendorCDR_20' ) end [2024-12-17 11:41:30] Production.INFO: ProcessCDR(1,14040573,1,1,2) [2024-12-17 11:41:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:41:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:41:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:41:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040573', 'tblTempUsageDetail_20' ) start [2024-12-17 11:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040573', 'tblTempUsageDetail_20' ) end [2024-12-17 11:41:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:41:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:41:34] Production.INFO: ==24221== Releasing lock... [2024-12-17 11:41:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:41:34] Production.INFO: 63.75 MB #Memory Used# [2024-12-17 11:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:42:04 [end_date_ymd] => 2024-12-17 11:42:04 [RateCDR] => 1 ) [2024-12-17 11: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 08:42:04' and `end` < '2024-12-17 11: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-17 11:42:24] Production.INFO: count ==4797 [2024-12-17 11:42:25] Production.ERROR: pbx CDR StartTime 2024-12-17 08:42:04 - End Time 2024-12-17 11:42:04 [2024-12-17 11:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040578', 'tblTempUsageDetail_20' ) start [2024-12-17 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040578', 'tblTempUsageDetail_20' ) end [2024-12-17 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040578', 'tblTempVendorCDR_20' ) start [2024-12-17 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040578', 'tblTempVendorCDR_20' ) end [2024-12-17 11:42:25] Production.INFO: ProcessCDR(1,14040578,1,1,2) [2024-12-17 11:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040578', 'tblTempUsageDetail_20' ) start [2024-12-17 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040578', 'tblTempUsageDetail_20' ) end [2024-12-17 11:42:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:42:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:42:30] Production.INFO: ==24300== Releasing lock... [2024-12-17 11:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:42:30] Production.INFO: 64 MB #Memory Used# [2024-12-17 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:43:05 [end_date_ymd] => 2024-12-17 11:43:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:43:05' and `end` < '2024-12-17 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-17 11:43:18] Production.INFO: count ==4825 [2024-12-17 11:43:19] Production.ERROR: pbx CDR StartTime 2024-12-17 08:43:05 - End Time 2024-12-17 11:43:05 [2024-12-17 11:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040583', 'tblTempUsageDetail_20' ) start [2024-12-17 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040583', 'tblTempUsageDetail_20' ) end [2024-12-17 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040583', 'tblTempVendorCDR_20' ) start [2024-12-17 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040583', 'tblTempVendorCDR_20' ) end [2024-12-17 11:43:20] Production.INFO: ProcessCDR(1,14040583,1,1,2) [2024-12-17 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040583', 'tblTempUsageDetail_20' ) start [2024-12-17 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040583', 'tblTempUsageDetail_20' ) end [2024-12-17 11:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:43:24] Production.INFO: ==24387== Releasing lock... [2024-12-17 11:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:43:24] Production.INFO: 64 MB #Memory Used# [2024-12-17 11:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:44:04 [end_date_ymd] => 2024-12-17 11:44:04 [RateCDR] => 1 ) [2024-12-17 11: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 08:44:04' and `end` < '2024-12-17 11: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-17 11:44:18] Production.INFO: count ==4825 [2024-12-17 11:44:19] Production.ERROR: pbx CDR StartTime 2024-12-17 08:44:04 - End Time 2024-12-17 11:44:04 [2024-12-17 11:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040588', 'tblTempUsageDetail_20' ) start [2024-12-17 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040588', 'tblTempUsageDetail_20' ) end [2024-12-17 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040588', 'tblTempVendorCDR_20' ) start [2024-12-17 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040588', 'tblTempVendorCDR_20' ) end [2024-12-17 11:44:19] Production.INFO: ProcessCDR(1,14040588,1,1,2) [2024-12-17 11:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040588', 'tblTempUsageDetail_20' ) start [2024-12-17 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040588', 'tblTempUsageDetail_20' ) end [2024-12-17 11:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:44:23] Production.INFO: ==24466== Releasing lock... [2024-12-17 11:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:44:23] Production.INFO: 64 MB #Memory Used# [2024-12-17 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:45:05 [end_date_ymd] => 2024-12-17 11:45:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:45:05' and `end` < '2024-12-17 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-17 11:45:19] Production.INFO: count ==4856 [2024-12-17 11:45:21] Production.ERROR: pbx CDR StartTime 2024-12-17 08:45:05 - End Time 2024-12-17 11:45:05 [2024-12-17 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040593', 'tblTempUsageDetail_20' ) start [2024-12-17 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040593', 'tblTempUsageDetail_20' ) end [2024-12-17 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040593', 'tblTempVendorCDR_20' ) start [2024-12-17 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040593', 'tblTempVendorCDR_20' ) end [2024-12-17 11:45:22] Production.INFO: ProcessCDR(1,14040593,1,1,2) [2024-12-17 11:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040593', 'tblTempUsageDetail_20' ) start [2024-12-17 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040593', 'tblTempUsageDetail_20' ) end [2024-12-17 11:45:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:45:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:45:26] Production.INFO: ==24553== Releasing lock... [2024-12-17 11:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:45:26] Production.INFO: 64.25 MB #Memory Used# [2024-12-17 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:46:05 [end_date_ymd] => 2024-12-17 11:46:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:46:05' and `end` < '2024-12-17 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-17 11:46:18] Production.INFO: count ==4870 [2024-12-17 11:46:20] Production.ERROR: pbx CDR StartTime 2024-12-17 08:46:05 - End Time 2024-12-17 11:46:05 [2024-12-17 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040598', 'tblTempUsageDetail_20' ) start [2024-12-17 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040598', 'tblTempUsageDetail_20' ) end [2024-12-17 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040598', 'tblTempVendorCDR_20' ) start [2024-12-17 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040598', 'tblTempVendorCDR_20' ) end [2024-12-17 11:46:20] Production.INFO: ProcessCDR(1,14040598,1,1,2) [2024-12-17 11:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040598', 'tblTempUsageDetail_20' ) start [2024-12-17 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040598', 'tblTempUsageDetail_20' ) end [2024-12-17 11:46:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:46:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:46:25] Production.INFO: ==24636== Releasing lock... [2024-12-17 11:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:46:25] Production.INFO: 64.5 MB #Memory Used# [2024-12-17 11:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:47:04 [end_date_ymd] => 2024-12-17 11:47:04 [RateCDR] => 1 ) [2024-12-17 11: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 08:47:04' and `end` < '2024-12-17 11: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-17 11:47:20] Production.INFO: count ==4877 [2024-12-17 11:47:22] Production.ERROR: pbx CDR StartTime 2024-12-17 08:47:04 - End Time 2024-12-17 11:47:04 [2024-12-17 11:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040603', 'tblTempUsageDetail_20' ) start [2024-12-17 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040603', 'tblTempUsageDetail_20' ) end [2024-12-17 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040603', 'tblTempVendorCDR_20' ) start [2024-12-17 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040603', 'tblTempVendorCDR_20' ) end [2024-12-17 11:47:22] Production.INFO: ProcessCDR(1,14040603,1,1,2) [2024-12-17 11:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040603', 'tblTempUsageDetail_20' ) start [2024-12-17 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040603', 'tblTempUsageDetail_20' ) end [2024-12-17 11:47:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:47:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:47:27] Production.INFO: ==24723== Releasing lock... [2024-12-17 11:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:47:27] Production.INFO: 64.5 MB #Memory Used# [2024-12-17 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:48:05 [end_date_ymd] => 2024-12-17 11:48:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:48:05' and `end` < '2024-12-17 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-17 11:48:27] Production.INFO: count ==4890 [2024-12-17 11:48:28] Production.ERROR: pbx CDR StartTime 2024-12-17 08:48:05 - End Time 2024-12-17 11:48:05 [2024-12-17 11:48:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040608', 'tblTempUsageDetail_20' ) start [2024-12-17 11:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040608', 'tblTempUsageDetail_20' ) end [2024-12-17 11:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040608', 'tblTempVendorCDR_20' ) start [2024-12-17 11:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040608', 'tblTempVendorCDR_20' ) end [2024-12-17 11:48:28] Production.INFO: ProcessCDR(1,14040608,1,1,2) [2024-12-17 11:48:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:48:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:48:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040608', 'tblTempUsageDetail_20' ) start [2024-12-17 11:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040608', 'tblTempUsageDetail_20' ) end [2024-12-17 11:48:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:48:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:48:33] Production.INFO: ==24802== Releasing lock... [2024-12-17 11:48:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:48:33] Production.INFO: 64.5 MB #Memory Used# [2024-12-17 11:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:49:04 [end_date_ymd] => 2024-12-17 11:49:04 [RateCDR] => 1 ) [2024-12-17 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-17 08:49:04' and `end` < '2024-12-17 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-17 11:49:21] Production.INFO: count ==4911 [2024-12-17 11:49:23] Production.ERROR: pbx CDR StartTime 2024-12-17 08:49:04 - End Time 2024-12-17 11:49:04 [2024-12-17 11:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040613', 'tblTempUsageDetail_20' ) start [2024-12-17 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040613', 'tblTempUsageDetail_20' ) end [2024-12-17 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040613', 'tblTempVendorCDR_20' ) start [2024-12-17 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040613', 'tblTempVendorCDR_20' ) end [2024-12-17 11:49:23] Production.INFO: ProcessCDR(1,14040613,1,1,2) [2024-12-17 11:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040613', 'tblTempUsageDetail_20' ) start [2024-12-17 11:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040613', 'tblTempUsageDetail_20' ) end [2024-12-17 11:49:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:49:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:49:28] Production.INFO: ==24886== Releasing lock... [2024-12-17 11:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:49:28] Production.INFO: 64.75 MB #Memory Used# [2024-12-17 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:50:06 [end_date_ymd] => 2024-12-17 11:50:06 [RateCDR] => 1 ) [2024-12-17 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-17 08:50:06' and `end` < '2024-12-17 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-17 11:50:20] Production.INFO: count ==4929 [2024-12-17 11:50:22] Production.ERROR: pbx CDR StartTime 2024-12-17 08:50:06 - End Time 2024-12-17 11:50:06 [2024-12-17 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040619', 'tblTempUsageDetail_20' ) start [2024-12-17 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040619', 'tblTempUsageDetail_20' ) end [2024-12-17 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040619', 'tblTempVendorCDR_20' ) start [2024-12-17 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040619', 'tblTempVendorCDR_20' ) end [2024-12-17 11:50:22] Production.INFO: ProcessCDR(1,14040619,1,1,2) [2024-12-17 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040619', 'tblTempUsageDetail_20' ) start [2024-12-17 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040619', 'tblTempUsageDetail_20' ) end [2024-12-17 11:50:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:50:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:50:27] Production.INFO: ==24967== Releasing lock... [2024-12-17 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:50:27] Production.INFO: 65 MB #Memory Used# [2024-12-17 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:51:05 [end_date_ymd] => 2024-12-17 11:51:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:51:05' and `end` < '2024-12-17 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-17 11:51:24] Production.INFO: count ==4995 [2024-12-17 11:51:26] Production.ERROR: pbx CDR StartTime 2024-12-17 08:51:05 - End Time 2024-12-17 11:51:05 [2024-12-17 11:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040624', 'tblTempUsageDetail_20' ) start [2024-12-17 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040624', 'tblTempUsageDetail_20' ) end [2024-12-17 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040624', 'tblTempVendorCDR_20' ) start [2024-12-17 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040624', 'tblTempVendorCDR_20' ) end [2024-12-17 11:51:26] Production.INFO: ProcessCDR(1,14040624,1,1,2) [2024-12-17 11:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040624', 'tblTempUsageDetail_20' ) start [2024-12-17 11:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040624', 'tblTempUsageDetail_20' ) end [2024-12-17 11:51:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:51:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:51:31] Production.INFO: ==25049== Releasing lock... [2024-12-17 11:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:51:31] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 11:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:52:04 [end_date_ymd] => 2024-12-17 11:52:04 [RateCDR] => 1 ) [2024-12-17 11: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 08:52:04' and `end` < '2024-12-17 11: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-17 11:52:21] Production.INFO: count ==4987 [2024-12-17 11:52:23] Production.ERROR: pbx CDR StartTime 2024-12-17 08:52:04 - End Time 2024-12-17 11:52:04 [2024-12-17 11:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040629', 'tblTempUsageDetail_20' ) start [2024-12-17 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040629', 'tblTempUsageDetail_20' ) end [2024-12-17 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040629', 'tblTempVendorCDR_20' ) start [2024-12-17 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040629', 'tblTempVendorCDR_20' ) end [2024-12-17 11:52:23] Production.INFO: ProcessCDR(1,14040629,1,1,2) [2024-12-17 11:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040629', 'tblTempUsageDetail_20' ) start [2024-12-17 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040629', 'tblTempUsageDetail_20' ) end [2024-12-17 11:52:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:52:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:52:28] Production.INFO: ==25143== Releasing lock... [2024-12-17 11:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:52:28] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:53:05 [end_date_ymd] => 2024-12-17 11:53:05 [RateCDR] => 1 ) [2024-12-17 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:53:05' and `end` < '2024-12-17 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:53:19] Production.INFO: count ==4990 [2024-12-17 11:53:21] Production.ERROR: pbx CDR StartTime 2024-12-17 08:53:05 - End Time 2024-12-17 11:53:05 [2024-12-17 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040634', 'tblTempUsageDetail_20' ) start [2024-12-17 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040634', 'tblTempUsageDetail_20' ) end [2024-12-17 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040634', 'tblTempVendorCDR_20' ) start [2024-12-17 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040634', 'tblTempVendorCDR_20' ) end [2024-12-17 11:53:21] Production.INFO: ProcessCDR(1,14040634,1,1,2) [2024-12-17 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040634', 'tblTempUsageDetail_20' ) start [2024-12-17 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040634', 'tblTempUsageDetail_20' ) end [2024-12-17 11:53:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:53:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:53:26] Production.INFO: ==25233== Releasing lock... [2024-12-17 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:53:26] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:54:05 [end_date_ymd] => 2024-12-17 11:54:05 [RateCDR] => 1 ) [2024-12-17 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:54:05' and `end` < '2024-12-17 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:54:19] Production.INFO: count ==4990 [2024-12-17 11:54:21] Production.ERROR: pbx CDR StartTime 2024-12-17 08:54:05 - End Time 2024-12-17 11:54:05 [2024-12-17 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040639', 'tblTempUsageDetail_20' ) start [2024-12-17 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040639', 'tblTempUsageDetail_20' ) end [2024-12-17 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040639', 'tblTempVendorCDR_20' ) start [2024-12-17 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040639', 'tblTempVendorCDR_20' ) end [2024-12-17 11:54:21] Production.INFO: ProcessCDR(1,14040639,1,1,2) [2024-12-17 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040639', 'tblTempUsageDetail_20' ) start [2024-12-17 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040639', 'tblTempUsageDetail_20' ) end [2024-12-17 11:54:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:54:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:54:25] Production.INFO: ==25312== Releasing lock... [2024-12-17 11:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:54:25] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:55:05 [end_date_ymd] => 2024-12-17 11:55:05 [RateCDR] => 1 ) [2024-12-17 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 08:55:05' and `end` < '2024-12-17 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 11:55:19] Production.INFO: count ==4993 [2024-12-17 11:55:20] Production.ERROR: pbx CDR StartTime 2024-12-17 08:55:05 - End Time 2024-12-17 11:55:05 [2024-12-17 11:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040644', 'tblTempUsageDetail_20' ) start [2024-12-17 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040644', 'tblTempUsageDetail_20' ) end [2024-12-17 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040644', 'tblTempVendorCDR_20' ) start [2024-12-17 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040644', 'tblTempVendorCDR_20' ) end [2024-12-17 11:55:21] Production.INFO: ProcessCDR(1,14040644,1,1,2) [2024-12-17 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040644', 'tblTempUsageDetail_20' ) start [2024-12-17 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040644', 'tblTempUsageDetail_20' ) end [2024-12-17 11:55:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:55:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:55:25] Production.INFO: ==25390== Releasing lock... [2024-12-17 11:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:55:25] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:56:05 [end_date_ymd] => 2024-12-17 11:56:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:56:05' and `end` < '2024-12-17 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-17 11:56:20] Production.INFO: count ==4994 [2024-12-17 11:56:22] Production.ERROR: pbx CDR StartTime 2024-12-17 08:56:05 - End Time 2024-12-17 11:56:05 [2024-12-17 11:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040649', 'tblTempUsageDetail_20' ) start [2024-12-17 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040649', 'tblTempUsageDetail_20' ) end [2024-12-17 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040649', 'tblTempVendorCDR_20' ) start [2024-12-17 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040649', 'tblTempVendorCDR_20' ) end [2024-12-17 11:56:22] Production.INFO: ProcessCDR(1,14040649,1,1,2) [2024-12-17 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040649', 'tblTempUsageDetail_20' ) start [2024-12-17 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040649', 'tblTempUsageDetail_20' ) end [2024-12-17 11:56:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:56:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:56:27] Production.INFO: ==25516== Releasing lock... [2024-12-17 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:56:27] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 11:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:57:04 [end_date_ymd] => 2024-12-17 11:57:04 [RateCDR] => 1 ) [2024-12-17 11: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 08:57:04' and `end` < '2024-12-17 11: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-17 11:57:19] Production.INFO: count ==5014 [2024-12-17 11:57:21] Production.ERROR: pbx CDR StartTime 2024-12-17 08:57:04 - End Time 2024-12-17 11:57:04 [2024-12-17 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040654', 'tblTempUsageDetail_20' ) start [2024-12-17 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040654', 'tblTempUsageDetail_20' ) end [2024-12-17 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040654', 'tblTempVendorCDR_20' ) start [2024-12-17 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040654', 'tblTempVendorCDR_20' ) end [2024-12-17 11:57:21] Production.INFO: ProcessCDR(1,14040654,1,1,2) [2024-12-17 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040654', 'tblTempUsageDetail_20' ) start [2024-12-17 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040654', 'tblTempUsageDetail_20' ) end [2024-12-17 11:57:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:57:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:57:26] Production.INFO: ==25600== Releasing lock... [2024-12-17 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:57:26] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:58:05 [end_date_ymd] => 2024-12-17 11:58:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:58:05' and `end` < '2024-12-17 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-17 11:58:25] Production.INFO: count ==4987 [2024-12-17 11:58:27] Production.ERROR: pbx CDR StartTime 2024-12-17 08:58:05 - End Time 2024-12-17 11:58:05 [2024-12-17 11:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040659', 'tblTempUsageDetail_20' ) start [2024-12-17 11:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040659', 'tblTempUsageDetail_20' ) end [2024-12-17 11:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040659', 'tblTempVendorCDR_20' ) start [2024-12-17 11:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040659', 'tblTempVendorCDR_20' ) end [2024-12-17 11:58:27] Production.INFO: ProcessCDR(1,14040659,1,1,2) [2024-12-17 11:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040659', 'tblTempUsageDetail_20' ) start [2024-12-17 11:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040659', 'tblTempUsageDetail_20' ) end [2024-12-17 11:58:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:58:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:58:32] Production.INFO: ==25683== Releasing lock... [2024-12-17 11:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:58:32] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 08:59:05 [end_date_ymd] => 2024-12-17 11:59:05 [RateCDR] => 1 ) [2024-12-17 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-17 08:59:05' and `end` < '2024-12-17 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-17 11:59:18] Production.INFO: count ==4994 [2024-12-17 11:59:20] Production.ERROR: pbx CDR StartTime 2024-12-17 08:59:05 - End Time 2024-12-17 11:59:05 [2024-12-17 11:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040664', 'tblTempUsageDetail_20' ) start [2024-12-17 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040664', 'tblTempUsageDetail_20' ) end [2024-12-17 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040664', 'tblTempVendorCDR_20' ) start [2024-12-17 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040664', 'tblTempVendorCDR_20' ) end [2024-12-17 11:59:20] Production.INFO: ProcessCDR(1,14040664,1,1,2) [2024-12-17 11:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 11:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040664', 'tblTempUsageDetail_20' ) start [2024-12-17 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040664', 'tblTempUsageDetail_20' ) end [2024-12-17 11:59:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 11:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 11:59:25] Production.INFO: ==25763== Releasing lock... [2024-12-17 11:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 11:59:25] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:00:06 [end_date_ymd] => 2024-12-17 12:00:06 [RateCDR] => 1 ) [2024-12-17 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 09:00:06' and `end` < '2024-12-17 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:00:23] Production.INFO: count ==5021 [2024-12-17 12:00:25] Production.ERROR: pbx CDR StartTime 2024-12-17 09:00:06 - End Time 2024-12-17 12:00:06 [2024-12-17 12:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040670', 'tblTempUsageDetail_20' ) start [2024-12-17 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040670', 'tblTempUsageDetail_20' ) end [2024-12-17 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040670', 'tblTempVendorCDR_20' ) start [2024-12-17 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040670', 'tblTempVendorCDR_20' ) end [2024-12-17 12:00:25] Production.INFO: ProcessCDR(1,14040670,1,1,2) [2024-12-17 12:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040670', 'tblTempUsageDetail_20' ) start [2024-12-17 12:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040670', 'tblTempUsageDetail_20' ) end [2024-12-17 12:00:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:00:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:00:30] Production.INFO: ==25851== Releasing lock... [2024-12-17 12:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:00:30] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 12:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:01:04 [end_date_ymd] => 2024-12-17 12:01:04 [RateCDR] => 1 ) [2024-12-17 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-17 09:01:04' and `end` < '2024-12-17 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-17 12:01:23] Production.INFO: count ==5064 [2024-12-17 12:01:25] Production.ERROR: pbx CDR StartTime 2024-12-17 09:01:04 - End Time 2024-12-17 12:01:04 [2024-12-17 12:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040675', 'tblTempUsageDetail_20' ) start [2024-12-17 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040675', 'tblTempUsageDetail_20' ) end [2024-12-17 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040675', 'tblTempVendorCDR_20' ) start [2024-12-17 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040675', 'tblTempVendorCDR_20' ) end [2024-12-17 12:01:25] Production.INFO: ProcessCDR(1,14040675,1,1,2) [2024-12-17 12:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040675', 'tblTempUsageDetail_20' ) start [2024-12-17 12:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040675', 'tblTempUsageDetail_20' ) end [2024-12-17 12:01:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:01:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:01:29] Production.INFO: ==25951== Releasing lock... [2024-12-17 12:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:01:29] Production.INFO: 66 MB #Memory Used# [2024-12-17 12:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:02:04 [end_date_ymd] => 2024-12-17 12:02:04 [RateCDR] => 1 ) [2024-12-17 12: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 09:02:04' and `end` < '2024-12-17 12: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-17 12:02:19] Production.INFO: count ==5057 [2024-12-17 12:02:21] Production.ERROR: pbx CDR StartTime 2024-12-17 09:02:04 - End Time 2024-12-17 12:02:04 [2024-12-17 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040680', 'tblTempUsageDetail_20' ) start [2024-12-17 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040680', 'tblTempUsageDetail_20' ) end [2024-12-17 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040680', 'tblTempVendorCDR_20' ) start [2024-12-17 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040680', 'tblTempVendorCDR_20' ) end [2024-12-17 12:02:21] Production.INFO: ProcessCDR(1,14040680,1,1,2) [2024-12-17 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040680', 'tblTempUsageDetail_20' ) start [2024-12-17 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040680', 'tblTempUsageDetail_20' ) end [2024-12-17 12:02:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:02:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:02:26] Production.INFO: ==26031== Releasing lock... [2024-12-17 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:02:26] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:03:05 [end_date_ymd] => 2024-12-17 12:03:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:03:05' and `end` < '2024-12-17 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-17 12:03:20] Production.INFO: count ==5067 [2024-12-17 12:03:22] Production.ERROR: pbx CDR StartTime 2024-12-17 09:03:05 - End Time 2024-12-17 12:03:05 [2024-12-17 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040685', 'tblTempUsageDetail_20' ) start [2024-12-17 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040685', 'tblTempUsageDetail_20' ) end [2024-12-17 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040685', 'tblTempVendorCDR_20' ) start [2024-12-17 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040685', 'tblTempVendorCDR_20' ) end [2024-12-17 12:03:22] Production.INFO: ProcessCDR(1,14040685,1,1,2) [2024-12-17 12:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040685', 'tblTempUsageDetail_20' ) start [2024-12-17 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040685', 'tblTempUsageDetail_20' ) end [2024-12-17 12:03:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:03:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:03:27] Production.INFO: ==26112== Releasing lock... [2024-12-17 12:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:03:27] Production.INFO: 66 MB #Memory Used# [2024-12-17 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:04:05 [end_date_ymd] => 2024-12-17 12:04:05 [RateCDR] => 1 ) [2024-12-17 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 09:04:05' and `end` < '2024-12-17 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:04:23] Production.INFO: count ==5075 [2024-12-17 12:04:25] Production.ERROR: pbx CDR StartTime 2024-12-17 09:04:05 - End Time 2024-12-17 12:04:05 [2024-12-17 12:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040690', 'tblTempUsageDetail_20' ) start [2024-12-17 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040690', 'tblTempUsageDetail_20' ) end [2024-12-17 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040690', 'tblTempVendorCDR_20' ) start [2024-12-17 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040690', 'tblTempVendorCDR_20' ) end [2024-12-17 12:04:25] Production.INFO: ProcessCDR(1,14040690,1,1,2) [2024-12-17 12:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040690', 'tblTempUsageDetail_20' ) start [2024-12-17 12:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040690', 'tblTempUsageDetail_20' ) end [2024-12-17 12:04:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:04:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:04:30] Production.INFO: ==26185== Releasing lock... [2024-12-17 12:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:04:30] Production.INFO: 66 MB #Memory Used# [2024-12-17 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:05:05 [end_date_ymd] => 2024-12-17 12:05:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:05:05' and `end` < '2024-12-17 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-17 12:05:18] Production.INFO: count ==5080 [2024-12-17 12:05:20] Production.ERROR: pbx CDR StartTime 2024-12-17 09:05:05 - End Time 2024-12-17 12:05:05 [2024-12-17 12:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040695', 'tblTempUsageDetail_20' ) start [2024-12-17 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040695', 'tblTempUsageDetail_20' ) end [2024-12-17 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040695', 'tblTempVendorCDR_20' ) start [2024-12-17 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040695', 'tblTempVendorCDR_20' ) end [2024-12-17 12:05:20] Production.INFO: ProcessCDR(1,14040695,1,1,2) [2024-12-17 12:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040695', 'tblTempUsageDetail_20' ) start [2024-12-17 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040695', 'tblTempUsageDetail_20' ) end [2024-12-17 12:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:05:25] Production.INFO: ==26266== Releasing lock... [2024-12-17 12:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:05:25] Production.INFO: 66 MB #Memory Used# [2024-12-17 12:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:06:04 [end_date_ymd] => 2024-12-17 12:06:04 [RateCDR] => 1 ) [2024-12-17 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-17 09:06:04' and `end` < '2024-12-17 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-17 12:06:27] Production.INFO: count ==5083 [2024-12-17 12:06:29] Production.ERROR: pbx CDR StartTime 2024-12-17 09:06:04 - End Time 2024-12-17 12:06:04 [2024-12-17 12:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040700', 'tblTempUsageDetail_20' ) start [2024-12-17 12:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040700', 'tblTempUsageDetail_20' ) end [2024-12-17 12:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040700', 'tblTempVendorCDR_20' ) start [2024-12-17 12:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040700', 'tblTempVendorCDR_20' ) end [2024-12-17 12:06:29] Production.INFO: ProcessCDR(1,14040700,1,1,2) [2024-12-17 12:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040700', 'tblTempUsageDetail_20' ) start [2024-12-17 12:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040700', 'tblTempUsageDetail_20' ) end [2024-12-17 12:06:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:06:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:06:34] Production.INFO: ==26346== Releasing lock... [2024-12-17 12:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:06:34] Production.INFO: 66 MB #Memory Used# [2024-12-17 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:07:05 [end_date_ymd] => 2024-12-17 12:07:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:07:05' and `end` < '2024-12-17 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-17 12:07:25] Production.INFO: count ==5078 [2024-12-17 12:07:27] Production.ERROR: pbx CDR StartTime 2024-12-17 09:07:05 - End Time 2024-12-17 12:07:05 [2024-12-17 12:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040705', 'tblTempUsageDetail_20' ) start [2024-12-17 12:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040705', 'tblTempUsageDetail_20' ) end [2024-12-17 12:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040705', 'tblTempVendorCDR_20' ) start [2024-12-17 12:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040705', 'tblTempVendorCDR_20' ) end [2024-12-17 12:07:27] Production.INFO: ProcessCDR(1,14040705,1,1,2) [2024-12-17 12:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040705', 'tblTempUsageDetail_20' ) start [2024-12-17 12:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040705', 'tblTempUsageDetail_20' ) end [2024-12-17 12:07:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:07:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:07:31] Production.INFO: ==26422== Releasing lock... [2024-12-17 12:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:07:31] Production.INFO: 66 MB #Memory Used# [2024-12-17 12:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:08:04 [end_date_ymd] => 2024-12-17 12:08:04 [RateCDR] => 1 ) [2024-12-17 12: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 09:08:04' and `end` < '2024-12-17 12: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-17 12:08:23] Production.INFO: count ==5091 [2024-12-17 12:08:25] Production.ERROR: pbx CDR StartTime 2024-12-17 09:08:04 - End Time 2024-12-17 12:08:04 [2024-12-17 12:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040710', 'tblTempUsageDetail_20' ) start [2024-12-17 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040710', 'tblTempUsageDetail_20' ) end [2024-12-17 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040710', 'tblTempVendorCDR_20' ) start [2024-12-17 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040710', 'tblTempVendorCDR_20' ) end [2024-12-17 12:08:26] Production.INFO: ProcessCDR(1,14040710,1,1,2) [2024-12-17 12:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040710', 'tblTempUsageDetail_20' ) start [2024-12-17 12:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040710', 'tblTempUsageDetail_20' ) end [2024-12-17 12:08:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:08:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:08:30] Production.INFO: ==26504== Releasing lock... [2024-12-17 12:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:08:30] Production.INFO: 66 MB #Memory Used# [2024-12-17 12:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:09:04 [end_date_ymd] => 2024-12-17 12:09:04 [RateCDR] => 1 ) [2024-12-17 12: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 09:09:04' and `end` < '2024-12-17 12: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-17 12:09:20] Production.INFO: count ==5096 [2024-12-17 12:09:22] Production.ERROR: pbx CDR StartTime 2024-12-17 09:09:04 - End Time 2024-12-17 12:09:04 [2024-12-17 12:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040715', 'tblTempUsageDetail_20' ) start [2024-12-17 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040715', 'tblTempUsageDetail_20' ) end [2024-12-17 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040715', 'tblTempVendorCDR_20' ) start [2024-12-17 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040715', 'tblTempVendorCDR_20' ) end [2024-12-17 12:09:22] Production.INFO: ProcessCDR(1,14040715,1,1,2) [2024-12-17 12:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040715', 'tblTempUsageDetail_20' ) start [2024-12-17 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040715', 'tblTempUsageDetail_20' ) end [2024-12-17 12:09:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:09:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:09:27] Production.INFO: ==26582== Releasing lock... [2024-12-17 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:09:27] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:10:06 [end_date_ymd] => 2024-12-17 12:10:06 [RateCDR] => 1 ) [2024-12-17 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 09:10:06' and `end` < '2024-12-17 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:10:21] Production.INFO: count ==5096 [2024-12-17 12:10:23] Production.ERROR: pbx CDR StartTime 2024-12-17 09:10:06 - End Time 2024-12-17 12:10:06 [2024-12-17 12:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040721', 'tblTempUsageDetail_20' ) start [2024-12-17 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040721', 'tblTempUsageDetail_20' ) end [2024-12-17 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040721', 'tblTempVendorCDR_20' ) start [2024-12-17 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040721', 'tblTempVendorCDR_20' ) end [2024-12-17 12:10:23] Production.INFO: ProcessCDR(1,14040721,1,1,2) [2024-12-17 12:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040721', 'tblTempUsageDetail_20' ) start [2024-12-17 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040721', 'tblTempUsageDetail_20' ) end [2024-12-17 12:10:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:10:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:10:28] Production.INFO: ==26678== Releasing lock... [2024-12-17 12:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:10:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:11:04 [end_date_ymd] => 2024-12-17 12:11:04 [RateCDR] => 1 ) [2024-12-17 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-17 09:11:04' and `end` < '2024-12-17 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-17 12:11:18] Production.INFO: count ==5097 [2024-12-17 12:11:20] Production.ERROR: pbx CDR StartTime 2024-12-17 09:11:04 - End Time 2024-12-17 12:11:04 [2024-12-17 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040726', 'tblTempUsageDetail_20' ) start [2024-12-17 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040726', 'tblTempUsageDetail_20' ) end [2024-12-17 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040726', 'tblTempVendorCDR_20' ) start [2024-12-17 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040726', 'tblTempVendorCDR_20' ) end [2024-12-17 12:11:20] Production.INFO: ProcessCDR(1,14040726,1,1,2) [2024-12-17 12:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040726', 'tblTempUsageDetail_20' ) start [2024-12-17 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040726', 'tblTempUsageDetail_20' ) end [2024-12-17 12:11:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:11:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:11:25] Production.INFO: ==26752== Releasing lock... [2024-12-17 12:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:11:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 12:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:12:04 [end_date_ymd] => 2024-12-17 12:12:04 [RateCDR] => 1 ) [2024-12-17 12: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-17 09:12:04' and `end` < '2024-12-17 12: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-17 12:12:18] Production.INFO: count ==5093 [2024-12-17 12:12:20] Production.ERROR: pbx CDR StartTime 2024-12-17 09:12:04 - End Time 2024-12-17 12:12:04 [2024-12-17 12:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040731', 'tblTempUsageDetail_20' ) start [2024-12-17 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040731', 'tblTempUsageDetail_20' ) end [2024-12-17 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040731', 'tblTempVendorCDR_20' ) start [2024-12-17 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040731', 'tblTempVendorCDR_20' ) end [2024-12-17 12:12:20] Production.INFO: ProcessCDR(1,14040731,1,1,2) [2024-12-17 12:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040731', 'tblTempUsageDetail_20' ) start [2024-12-17 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040731', 'tblTempUsageDetail_20' ) end [2024-12-17 12:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:12:24] Production.INFO: ==26873== Releasing lock... [2024-12-17 12:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:12:24] Production.INFO: 66 MB #Memory Used# [2024-12-17 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:13:05 [end_date_ymd] => 2024-12-17 12:13:05 [RateCDR] => 1 ) [2024-12-17 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 09:13:05' and `end` < '2024-12-17 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:13:19] Production.INFO: count ==5087 [2024-12-17 12:13:21] Production.ERROR: pbx CDR StartTime 2024-12-17 09:13:05 - End Time 2024-12-17 12:13:05 [2024-12-17 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040736', 'tblTempUsageDetail_20' ) start [2024-12-17 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040736', 'tblTempUsageDetail_20' ) end [2024-12-17 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040736', 'tblTempVendorCDR_20' ) start [2024-12-17 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040736', 'tblTempVendorCDR_20' ) end [2024-12-17 12:13:21] Production.INFO: ProcessCDR(1,14040736,1,1,2) [2024-12-17 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040736', 'tblTempUsageDetail_20' ) start [2024-12-17 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040736', 'tblTempUsageDetail_20' ) end [2024-12-17 12:13:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:13:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:13:26] Production.INFO: ==26953== Releasing lock... [2024-12-17 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:13:26] Production.INFO: 66 MB #Memory Used# [2024-12-17 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:14:05 [end_date_ymd] => 2024-12-17 12:14:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:14:05' and `end` < '2024-12-17 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-17 12:14:18] Production.INFO: count ==5074 [2024-12-17 12:14:20] Production.ERROR: pbx CDR StartTime 2024-12-17 09:14:05 - End Time 2024-12-17 12:14:05 [2024-12-17 12:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040741', 'tblTempUsageDetail_20' ) start [2024-12-17 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040741', 'tblTempUsageDetail_20' ) end [2024-12-17 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040741', 'tblTempVendorCDR_20' ) start [2024-12-17 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040741', 'tblTempVendorCDR_20' ) end [2024-12-17 12:14:20] Production.INFO: ProcessCDR(1,14040741,1,1,2) [2024-12-17 12:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040741', 'tblTempUsageDetail_20' ) start [2024-12-17 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040741', 'tblTempUsageDetail_20' ) end [2024-12-17 12:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:14:25] Production.INFO: ==27040== Releasing lock... [2024-12-17 12:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:14:25] Production.INFO: 66 MB #Memory Used# [2024-12-17 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:15:05 [end_date_ymd] => 2024-12-17 12:15:05 [RateCDR] => 1 ) [2024-12-17 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 09:15:05' and `end` < '2024-12-17 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:15:25] Production.INFO: count ==5095 [2024-12-17 12:15:27] Production.ERROR: pbx CDR StartTime 2024-12-17 09:15:05 - End Time 2024-12-17 12:15:05 [2024-12-17 12:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040746', 'tblTempUsageDetail_20' ) start [2024-12-17 12:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040746', 'tblTempUsageDetail_20' ) end [2024-12-17 12:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040746', 'tblTempVendorCDR_20' ) start [2024-12-17 12:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040746', 'tblTempVendorCDR_20' ) end [2024-12-17 12:15:27] Production.INFO: ProcessCDR(1,14040746,1,1,2) [2024-12-17 12:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040746', 'tblTempUsageDetail_20' ) start [2024-12-17 12:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040746', 'tblTempUsageDetail_20' ) end [2024-12-17 12:15:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:15:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:15:32] Production.INFO: ==27126== Releasing lock... [2024-12-17 12:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:15:32] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:16:04 [end_date_ymd] => 2024-12-17 12:16:04 [RateCDR] => 1 ) [2024-12-17 12: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-17 09:16:04' and `end` < '2024-12-17 12: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-17 12:16:20] Production.INFO: count ==5116 [2024-12-17 12:16:22] Production.ERROR: pbx CDR StartTime 2024-12-17 09:16:04 - End Time 2024-12-17 12:16:04 [2024-12-17 12:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040751', 'tblTempUsageDetail_20' ) start [2024-12-17 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040751', 'tblTempUsageDetail_20' ) end [2024-12-17 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040751', 'tblTempVendorCDR_20' ) start [2024-12-17 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040751', 'tblTempVendorCDR_20' ) end [2024-12-17 12:16:22] Production.INFO: ProcessCDR(1,14040751,1,1,2) [2024-12-17 12:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040751', 'tblTempUsageDetail_20' ) start [2024-12-17 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040751', 'tblTempUsageDetail_20' ) end [2024-12-17 12:16:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:16:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:16:27] Production.INFO: ==27214== Releasing lock... [2024-12-17 12:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:16:27] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:17:05 [end_date_ymd] => 2024-12-17 12:17:05 [RateCDR] => 1 ) [2024-12-17 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 09:17:05' and `end` < '2024-12-17 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:17:26] Production.INFO: count ==5127 [2024-12-17 12:17:28] Production.ERROR: pbx CDR StartTime 2024-12-17 09:17:05 - End Time 2024-12-17 12:17:05 [2024-12-17 12:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040756', 'tblTempUsageDetail_20' ) start [2024-12-17 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040756', 'tblTempUsageDetail_20' ) end [2024-12-17 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040756', 'tblTempVendorCDR_20' ) start [2024-12-17 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040756', 'tblTempVendorCDR_20' ) end [2024-12-17 12:17:28] Production.INFO: ProcessCDR(1,14040756,1,1,2) [2024-12-17 12:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040756', 'tblTempUsageDetail_20' ) start [2024-12-17 12:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040756', 'tblTempUsageDetail_20' ) end [2024-12-17 12:17:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:17:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:17:33] Production.INFO: ==27311== Releasing lock... [2024-12-17 12:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:17:33] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:18:05 [end_date_ymd] => 2024-12-17 12:18:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:18:05' and `end` < '2024-12-17 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-17 12:18:21] Production.INFO: count ==5130 [2024-12-17 12:18:23] Production.ERROR: pbx CDR StartTime 2024-12-17 09:18:05 - End Time 2024-12-17 12:18:05 [2024-12-17 12:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040761', 'tblTempUsageDetail_20' ) start [2024-12-17 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040761', 'tblTempUsageDetail_20' ) end [2024-12-17 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040761', 'tblTempVendorCDR_20' ) start [2024-12-17 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040761', 'tblTempVendorCDR_20' ) end [2024-12-17 12:18:23] Production.INFO: ProcessCDR(1,14040761,1,1,2) [2024-12-17 12:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040761', 'tblTempUsageDetail_20' ) start [2024-12-17 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040761', 'tblTempUsageDetail_20' ) end [2024-12-17 12:18:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:18:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:18:28] Production.INFO: ==27403== Releasing lock... [2024-12-17 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:18:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:19:05 [end_date_ymd] => 2024-12-17 12:19:05 [RateCDR] => 1 ) [2024-12-17 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 09:19:05' and `end` < '2024-12-17 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:19:18] Production.INFO: count ==5118 [2024-12-17 12:19:20] Production.ERROR: pbx CDR StartTime 2024-12-17 09:19:05 - End Time 2024-12-17 12:19:05 [2024-12-17 12:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040766', 'tblTempUsageDetail_20' ) start [2024-12-17 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040766', 'tblTempUsageDetail_20' ) end [2024-12-17 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040766', 'tblTempVendorCDR_20' ) start [2024-12-17 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040766', 'tblTempVendorCDR_20' ) end [2024-12-17 12:19:20] Production.INFO: ProcessCDR(1,14040766,1,1,2) [2024-12-17 12:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040766', 'tblTempUsageDetail_20' ) start [2024-12-17 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040766', 'tblTempUsageDetail_20' ) end [2024-12-17 12:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:19:25] Production.INFO: ==27489== Releasing lock... [2024-12-17 12:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:19:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:20:05 [end_date_ymd] => 2024-12-17 12:20:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:20:05' and `end` < '2024-12-17 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-17 12:20:19] Production.INFO: count ==5115 [2024-12-17 12:20:21] Production.ERROR: pbx CDR StartTime 2024-12-17 09:20:05 - End Time 2024-12-17 12:20:05 [2024-12-17 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040772', 'tblTempUsageDetail_20' ) start [2024-12-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040772', 'tblTempUsageDetail_20' ) end [2024-12-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040772', 'tblTempVendorCDR_20' ) start [2024-12-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040772', 'tblTempVendorCDR_20' ) end [2024-12-17 12:20:21] Production.INFO: ProcessCDR(1,14040772,1,1,2) [2024-12-17 12:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040772', 'tblTempUsageDetail_20' ) start [2024-12-17 12:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040772', 'tblTempUsageDetail_20' ) end [2024-12-17 12:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:20:25] Production.INFO: ==27580== Releasing lock... [2024-12-17 12:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:20:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:21:05 [end_date_ymd] => 2024-12-17 12:21:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:21:05' and `end` < '2024-12-17 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-17 12:21:21] Production.INFO: count ==5181 [2024-12-17 12:21:23] Production.ERROR: pbx CDR StartTime 2024-12-17 09:21:05 - End Time 2024-12-17 12:21:05 [2024-12-17 12:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040777', 'tblTempUsageDetail_20' ) start [2024-12-17 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040777', 'tblTempUsageDetail_20' ) end [2024-12-17 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040777', 'tblTempVendorCDR_20' ) start [2024-12-17 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040777', 'tblTempVendorCDR_20' ) end [2024-12-17 12:21:23] Production.INFO: ProcessCDR(1,14040777,1,1,2) [2024-12-17 12:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040777', 'tblTempUsageDetail_20' ) start [2024-12-17 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040777', 'tblTempUsageDetail_20' ) end [2024-12-17 12:21:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:21:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:21:27] Production.INFO: ==27665== Releasing lock... [2024-12-17 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:21:27] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 12:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:22:04 [end_date_ymd] => 2024-12-17 12:22:04 [RateCDR] => 1 ) [2024-12-17 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-17 09:22:04' and `end` < '2024-12-17 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-17 12:22:23] Production.INFO: count ==5184 [2024-12-17 12:22:25] Production.ERROR: pbx CDR StartTime 2024-12-17 09:22:04 - End Time 2024-12-17 12:22:04 [2024-12-17 12:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040782', 'tblTempUsageDetail_20' ) start [2024-12-17 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040782', 'tblTempUsageDetail_20' ) end [2024-12-17 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040782', 'tblTempVendorCDR_20' ) start [2024-12-17 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040782', 'tblTempVendorCDR_20' ) end [2024-12-17 12:22:25] Production.INFO: ProcessCDR(1,14040782,1,1,2) [2024-12-17 12:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040782', 'tblTempUsageDetail_20' ) start [2024-12-17 12:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040782', 'tblTempUsageDetail_20' ) end [2024-12-17 12:22:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:22:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:22:30] Production.INFO: ==27761== Releasing lock... [2024-12-17 12:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:22:30] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:23:05 [end_date_ymd] => 2024-12-17 12:23:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:23:05' and `end` < '2024-12-17 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-17 12:23:23] Production.INFO: count ==5179 [2024-12-17 12:23:25] Production.ERROR: pbx CDR StartTime 2024-12-17 09:23:05 - End Time 2024-12-17 12:23:05 [2024-12-17 12:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040787', 'tblTempUsageDetail_20' ) start [2024-12-17 12:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040787', 'tblTempUsageDetail_20' ) end [2024-12-17 12:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040787', 'tblTempVendorCDR_20' ) start [2024-12-17 12:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040787', 'tblTempVendorCDR_20' ) end [2024-12-17 12:23:25] Production.INFO: ProcessCDR(1,14040787,1,1,2) [2024-12-17 12:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:23:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040787', 'tblTempUsageDetail_20' ) start [2024-12-17 12:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040787', 'tblTempUsageDetail_20' ) end [2024-12-17 12:23:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:23:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:23:30] Production.INFO: ==27853== Releasing lock... [2024-12-17 12:23:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:23:30] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 12:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:24:04 [end_date_ymd] => 2024-12-17 12:24:04 [RateCDR] => 1 ) [2024-12-17 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-17 09:24:04' and `end` < '2024-12-17 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-17 12:24:23] Production.INFO: count ==5164 [2024-12-17 12:24:25] Production.ERROR: pbx CDR StartTime 2024-12-17 09:24:04 - End Time 2024-12-17 12:24:04 [2024-12-17 12:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040791', 'tblTempUsageDetail_20' ) start [2024-12-17 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040791', 'tblTempUsageDetail_20' ) end [2024-12-17 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040791', 'tblTempVendorCDR_20' ) start [2024-12-17 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040791', 'tblTempVendorCDR_20' ) end [2024-12-17 12:24:25] Production.INFO: ProcessCDR(1,14040791,1,1,2) [2024-12-17 12:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040791', 'tblTempUsageDetail_20' ) start [2024-12-17 12:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040791', 'tblTempUsageDetail_20' ) end [2024-12-17 12:24:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:24:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:24:29] Production.INFO: ==27944== Releasing lock... [2024-12-17 12:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:24:29] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:25:05 [end_date_ymd] => 2024-12-17 12:25:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:25:05' and `end` < '2024-12-17 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-17 12:25:24] Production.INFO: count ==5198 [2024-12-17 12:25:26] Production.ERROR: pbx CDR StartTime 2024-12-17 09:25:05 - End Time 2024-12-17 12:25:05 [2024-12-17 12:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040797', 'tblTempUsageDetail_20' ) start [2024-12-17 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040797', 'tblTempUsageDetail_20' ) end [2024-12-17 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040797', 'tblTempVendorCDR_20' ) start [2024-12-17 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040797', 'tblTempVendorCDR_20' ) end [2024-12-17 12:25:26] Production.INFO: ProcessCDR(1,14040797,1,1,2) [2024-12-17 12:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040797', 'tblTempUsageDetail_20' ) start [2024-12-17 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040797', 'tblTempUsageDetail_20' ) end [2024-12-17 12:25:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:25:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:25:31] Production.INFO: ==28043== Releasing lock... [2024-12-17 12:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:25:31] Production.INFO: 67 MB #Memory Used# [2024-12-17 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:26:05 [end_date_ymd] => 2024-12-17 12:26:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:26:05' and `end` < '2024-12-17 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-17 12:26:30] Production.INFO: count ==5172 [2024-12-17 12:26:32] Production.ERROR: pbx CDR StartTime 2024-12-17 09:26:05 - End Time 2024-12-17 12:26:05 [2024-12-17 12:26:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040802', 'tblTempUsageDetail_20' ) start [2024-12-17 12:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040802', 'tblTempUsageDetail_20' ) end [2024-12-17 12:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040802', 'tblTempVendorCDR_20' ) start [2024-12-17 12:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040802', 'tblTempVendorCDR_20' ) end [2024-12-17 12:26:33] Production.INFO: ProcessCDR(1,14040802,1,1,2) [2024-12-17 12:26:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:26:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:26:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:26:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040802', 'tblTempUsageDetail_20' ) start [2024-12-17 12:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040802', 'tblTempUsageDetail_20' ) end [2024-12-17 12:26:37] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:26:37] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:26:37] Production.INFO: ==28130== Releasing lock... [2024-12-17 12:26:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:26:37] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:27:05 [end_date_ymd] => 2024-12-17 12:27:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:27:05' and `end` < '2024-12-17 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-17 12:27:25] Production.INFO: count ==5153 [2024-12-17 12:27:27] Production.ERROR: pbx CDR StartTime 2024-12-17 09:27:05 - End Time 2024-12-17 12:27:05 [2024-12-17 12:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040807', 'tblTempUsageDetail_20' ) start [2024-12-17 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040807', 'tblTempUsageDetail_20' ) end [2024-12-17 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040807', 'tblTempVendorCDR_20' ) start [2024-12-17 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040807', 'tblTempVendorCDR_20' ) end [2024-12-17 12:27:27] Production.INFO: ProcessCDR(1,14040807,1,1,2) [2024-12-17 12:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040807', 'tblTempUsageDetail_20' ) start [2024-12-17 12:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040807', 'tblTempUsageDetail_20' ) end [2024-12-17 12:27:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:27:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:27:31] Production.INFO: ==28260== Releasing lock... [2024-12-17 12:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:27:31] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:28:04 [end_date_ymd] => 2024-12-17 12:28:04 [RateCDR] => 1 ) [2024-12-17 12: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 09:28:04' and `end` < '2024-12-17 12: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-17 12:28:25] Production.INFO: count ==5166 [2024-12-17 12:28:27] Production.ERROR: pbx CDR StartTime 2024-12-17 09:28:04 - End Time 2024-12-17 12:28:04 [2024-12-17 12:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040808', 'tblTempUsageDetail_20' ) start [2024-12-17 12:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040808', 'tblTempUsageDetail_20' ) end [2024-12-17 12:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040808', 'tblTempVendorCDR_20' ) start [2024-12-17 12:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040808', 'tblTempVendorCDR_20' ) end [2024-12-17 12:28:28] Production.INFO: ProcessCDR(1,14040808,1,1,2) [2024-12-17 12:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:28:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040808', 'tblTempUsageDetail_20' ) start [2024-12-17 12:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040808', 'tblTempUsageDetail_20' ) end [2024-12-17 12:28:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:28:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:28:32] Production.INFO: ==28354== Releasing lock... [2024-12-17 12:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:28:32] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:29:05 [end_date_ymd] => 2024-12-17 12:29:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:29:05' and `end` < '2024-12-17 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-17 12:29:20] Production.INFO: count ==5152 [2024-12-17 12:29:22] Production.ERROR: pbx CDR StartTime 2024-12-17 09:29:05 - End Time 2024-12-17 12:29:05 [2024-12-17 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040817', 'tblTempUsageDetail_20' ) start [2024-12-17 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040817', 'tblTempUsageDetail_20' ) end [2024-12-17 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040817', 'tblTempVendorCDR_20' ) start [2024-12-17 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040817', 'tblTempVendorCDR_20' ) end [2024-12-17 12:29:23] Production.INFO: ProcessCDR(1,14040817,1,1,2) [2024-12-17 12:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040817', 'tblTempUsageDetail_20' ) start [2024-12-17 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040817', 'tblTempUsageDetail_20' ) end [2024-12-17 12:29:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:29:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:29:27] Production.INFO: ==28441== Releasing lock... [2024-12-17 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:29:27] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:30:05 [end_date_ymd] => 2024-12-17 12:30:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:30:05' and `end` < '2024-12-17 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-17 12:30:25] Production.INFO: count ==5143 [2024-12-17 12:30:28] Production.ERROR: pbx CDR StartTime 2024-12-17 09:30:05 - End Time 2024-12-17 12:30:05 [2024-12-17 12:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040822', 'tblTempUsageDetail_20' ) start [2024-12-17 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040822', 'tblTempUsageDetail_20' ) end [2024-12-17 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040822', 'tblTempVendorCDR_20' ) start [2024-12-17 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040822', 'tblTempVendorCDR_20' ) end [2024-12-17 12:30:28] Production.INFO: ProcessCDR(1,14040822,1,1,2) [2024-12-17 12:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040822', 'tblTempUsageDetail_20' ) start [2024-12-17 12:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040822', 'tblTempUsageDetail_20' ) end [2024-12-17 12:30:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:30:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:30:32] Production.INFO: ==28539== Releasing lock... [2024-12-17 12:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:30:32] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:31:05 [end_date_ymd] => 2024-12-17 12:31:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:31:05' and `end` < '2024-12-17 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-17 12:31:19] Production.INFO: count ==5139 [2024-12-17 12:31:21] Production.ERROR: pbx CDR StartTime 2024-12-17 09:31:05 - End Time 2024-12-17 12:31:05 [2024-12-17 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040828', 'tblTempUsageDetail_20' ) start [2024-12-17 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040828', 'tblTempUsageDetail_20' ) end [2024-12-17 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040828', 'tblTempVendorCDR_20' ) start [2024-12-17 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040828', 'tblTempVendorCDR_20' ) end [2024-12-17 12:31:21] Production.INFO: ProcessCDR(1,14040828,1,1,2) [2024-12-17 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040828', 'tblTempUsageDetail_20' ) start [2024-12-17 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040828', 'tblTempUsageDetail_20' ) end [2024-12-17 12:31:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:31:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:31:26] Production.INFO: ==28622== Releasing lock... [2024-12-17 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:31:26] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:32:04 [end_date_ymd] => 2024-12-17 12:32:04 [RateCDR] => 1 ) [2024-12-17 12: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 09:32:04' and `end` < '2024-12-17 12: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-17 12:32:28] Production.INFO: count ==5154 [2024-12-17 12:32:30] Production.ERROR: pbx CDR StartTime 2024-12-17 09:32:04 - End Time 2024-12-17 12:32:04 [2024-12-17 12:32:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040833', 'tblTempUsageDetail_20' ) start [2024-12-17 12:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040833', 'tblTempUsageDetail_20' ) end [2024-12-17 12:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040833', 'tblTempVendorCDR_20' ) start [2024-12-17 12:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040833', 'tblTempVendorCDR_20' ) end [2024-12-17 12:32:31] Production.INFO: ProcessCDR(1,14040833,1,1,2) [2024-12-17 12:32:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:32:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:32:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:32:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040833', 'tblTempUsageDetail_20' ) start [2024-12-17 12:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040833', 'tblTempUsageDetail_20' ) end [2024-12-17 12:32:35] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:32:35] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:32:35] Production.INFO: ==28717== Releasing lock... [2024-12-17 12:32:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:32:35] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:33:05 [end_date_ymd] => 2024-12-17 12:33:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:33:05' and `end` < '2024-12-17 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-17 12:33:23] Production.INFO: count ==5148 [2024-12-17 12:33:25] Production.ERROR: pbx CDR StartTime 2024-12-17 09:33:05 - End Time 2024-12-17 12:33:05 [2024-12-17 12:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040838', 'tblTempUsageDetail_20' ) start [2024-12-17 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040838', 'tblTempUsageDetail_20' ) end [2024-12-17 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040838', 'tblTempVendorCDR_20' ) start [2024-12-17 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040838', 'tblTempVendorCDR_20' ) end [2024-12-17 12:33:25] Production.INFO: ProcessCDR(1,14040838,1,1,2) [2024-12-17 12:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040838', 'tblTempUsageDetail_20' ) start [2024-12-17 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040838', 'tblTempUsageDetail_20' ) end [2024-12-17 12:33:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:33:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:33:30] Production.INFO: ==28806== Releasing lock... [2024-12-17 12:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:33:30] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:34:04 [end_date_ymd] => 2024-12-17 12:34:04 [RateCDR] => 1 ) [2024-12-17 12: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 09:34:04' and `end` < '2024-12-17 12: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-17 12:34:22] Production.INFO: count ==5146 [2024-12-17 12:34:24] Production.ERROR: pbx CDR StartTime 2024-12-17 09:34:04 - End Time 2024-12-17 12:34:04 [2024-12-17 12:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040843', 'tblTempUsageDetail_20' ) start [2024-12-17 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040843', 'tblTempUsageDetail_20' ) end [2024-12-17 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040843', 'tblTempVendorCDR_20' ) start [2024-12-17 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040843', 'tblTempVendorCDR_20' ) end [2024-12-17 12:34:24] Production.INFO: ProcessCDR(1,14040843,1,1,2) [2024-12-17 12:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040843', 'tblTempUsageDetail_20' ) start [2024-12-17 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040843', 'tblTempUsageDetail_20' ) end [2024-12-17 12:34:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:34:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:34:29] Production.INFO: ==28893== Releasing lock... [2024-12-17 12:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:34:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:35:05 [end_date_ymd] => 2024-12-17 12:35:05 [RateCDR] => 1 ) [2024-12-17 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 09:35:05' and `end` < '2024-12-17 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:35:18] Production.INFO: count ==5143 [2024-12-17 12:35:20] Production.ERROR: pbx CDR StartTime 2024-12-17 09:35:05 - End Time 2024-12-17 12:35:05 [2024-12-17 12:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040848', 'tblTempUsageDetail_20' ) start [2024-12-17 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040848', 'tblTempUsageDetail_20' ) end [2024-12-17 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040848', 'tblTempVendorCDR_20' ) start [2024-12-17 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040848', 'tblTempVendorCDR_20' ) end [2024-12-17 12:35:20] Production.INFO: ProcessCDR(1,14040848,1,1,2) [2024-12-17 12:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040848', 'tblTempUsageDetail_20' ) start [2024-12-17 12:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040848', 'tblTempUsageDetail_20' ) end [2024-12-17 12:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:35:24] Production.INFO: ==28982== Releasing lock... [2024-12-17 12:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:35:24] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:36:05 [end_date_ymd] => 2024-12-17 12:36:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:36:05' and `end` < '2024-12-17 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-17 12:36:25] Production.INFO: count ==5135 [2024-12-17 12:36:27] Production.ERROR: pbx CDR StartTime 2024-12-17 09:36:05 - End Time 2024-12-17 12:36:05 [2024-12-17 12:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040853', 'tblTempUsageDetail_20' ) start [2024-12-17 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040853', 'tblTempUsageDetail_20' ) end [2024-12-17 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040853', 'tblTempVendorCDR_20' ) start [2024-12-17 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040853', 'tblTempVendorCDR_20' ) end [2024-12-17 12:36:27] Production.INFO: ProcessCDR(1,14040853,1,1,2) [2024-12-17 12:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040853', 'tblTempUsageDetail_20' ) start [2024-12-17 12:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040853', 'tblTempUsageDetail_20' ) end [2024-12-17 12:36:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:36:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:36:32] Production.INFO: ==29066== Releasing lock... [2024-12-17 12:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:36:32] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:37:04 [end_date_ymd] => 2024-12-17 12:37:04 [RateCDR] => 1 ) [2024-12-17 12: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 09:37:04' and `end` < '2024-12-17 12: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-17 12:37:26] Production.INFO: count ==5138 [2024-12-17 12:37:28] Production.ERROR: pbx CDR StartTime 2024-12-17 09:37:04 - End Time 2024-12-17 12:37:04 [2024-12-17 12:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040858', 'tblTempUsageDetail_20' ) start [2024-12-17 12:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040858', 'tblTempUsageDetail_20' ) end [2024-12-17 12:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040858', 'tblTempVendorCDR_20' ) start [2024-12-17 12:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040858', 'tblTempVendorCDR_20' ) end [2024-12-17 12:37:28] Production.INFO: ProcessCDR(1,14040858,1,1,2) [2024-12-17 12:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040858', 'tblTempUsageDetail_20' ) start [2024-12-17 12:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040858', 'tblTempUsageDetail_20' ) end [2024-12-17 12:37:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:37:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:37:33] Production.INFO: ==29164== Releasing lock... [2024-12-17 12:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:37:33] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:38:05 [end_date_ymd] => 2024-12-17 12:38:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:38:05' and `end` < '2024-12-17 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-17 12:38:22] Production.INFO: count ==5135 [2024-12-17 12:38:24] Production.ERROR: pbx CDR StartTime 2024-12-17 09:38:05 - End Time 2024-12-17 12:38:05 [2024-12-17 12:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040862', 'tblTempUsageDetail_20' ) start [2024-12-17 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040862', 'tblTempUsageDetail_20' ) end [2024-12-17 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040862', 'tblTempVendorCDR_20' ) start [2024-12-17 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040862', 'tblTempVendorCDR_20' ) end [2024-12-17 12:38:25] Production.INFO: ProcessCDR(1,14040862,1,1,2) [2024-12-17 12:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040862', 'tblTempUsageDetail_20' ) start [2024-12-17 12:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040862', 'tblTempUsageDetail_20' ) end [2024-12-17 12:38:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:38:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:38:29] Production.INFO: ==29244== Releasing lock... [2024-12-17 12:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:38:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:39:05 [end_date_ymd] => 2024-12-17 12:39:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:39:05' and `end` < '2024-12-17 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-17 12:39:25] Production.INFO: count ==5150 [2024-12-17 12:39:27] Production.ERROR: pbx CDR StartTime 2024-12-17 09:39:05 - End Time 2024-12-17 12:39:05 [2024-12-17 12:39:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040868', 'tblTempUsageDetail_20' ) start [2024-12-17 12:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040868', 'tblTempUsageDetail_20' ) end [2024-12-17 12:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040868', 'tblTempVendorCDR_20' ) start [2024-12-17 12:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040868', 'tblTempVendorCDR_20' ) end [2024-12-17 12:39:27] Production.INFO: ProcessCDR(1,14040868,1,1,2) [2024-12-17 12:39:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040868', 'tblTempUsageDetail_20' ) start [2024-12-17 12:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040868', 'tblTempUsageDetail_20' ) end [2024-12-17 12:39:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:39:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:39:32] Production.INFO: ==29333== Releasing lock... [2024-12-17 12:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:39:32] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:40:05 [end_date_ymd] => 2024-12-17 12:40:05 [RateCDR] => 1 ) [2024-12-17 12:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 09:40:05' and `end` < '2024-12-17 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:40:25] Production.INFO: count ==5153 [2024-12-17 12:40:27] Production.ERROR: pbx CDR StartTime 2024-12-17 09:40:05 - End Time 2024-12-17 12:40:05 [2024-12-17 12:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040874', 'tblTempUsageDetail_20' ) start [2024-12-17 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040874', 'tblTempUsageDetail_20' ) end [2024-12-17 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040874', 'tblTempVendorCDR_20' ) start [2024-12-17 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040874', 'tblTempVendorCDR_20' ) end [2024-12-17 12:40:27] Production.INFO: ProcessCDR(1,14040874,1,1,2) [2024-12-17 12:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040874', 'tblTempUsageDetail_20' ) start [2024-12-17 12:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040874', 'tblTempUsageDetail_20' ) end [2024-12-17 12:40:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:40:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:40:32] Production.INFO: ==29447== Releasing lock... [2024-12-17 12:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:40:32] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:41:05 [end_date_ymd] => 2024-12-17 12:41:05 [RateCDR] => 1 ) [2024-12-17 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 09:41:05' and `end` < '2024-12-17 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:41:20] Production.INFO: count ==5164 [2024-12-17 12:41:22] Production.ERROR: pbx CDR StartTime 2024-12-17 09:41:05 - End Time 2024-12-17 12:41:05 [2024-12-17 12:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040879', 'tblTempUsageDetail_20' ) start [2024-12-17 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040879', 'tblTempUsageDetail_20' ) end [2024-12-17 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040879', 'tblTempVendorCDR_20' ) start [2024-12-17 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040879', 'tblTempVendorCDR_20' ) end [2024-12-17 12:41:22] Production.INFO: ProcessCDR(1,14040879,1,1,2) [2024-12-17 12:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040879', 'tblTempUsageDetail_20' ) start [2024-12-17 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040879', 'tblTempUsageDetail_20' ) end [2024-12-17 12:41:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:41:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:41:26] Production.INFO: ==29559== Releasing lock... [2024-12-17 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:41:26] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:42:05 [end_date_ymd] => 2024-12-17 12:42:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:42:05' and `end` < '2024-12-17 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-17 12:42:22] Production.INFO: count ==5153 [2024-12-17 12:42:24] Production.ERROR: pbx CDR StartTime 2024-12-17 09:42:05 - End Time 2024-12-17 12:42:05 [2024-12-17 12:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040884', 'tblTempUsageDetail_20' ) start [2024-12-17 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040884', 'tblTempUsageDetail_20' ) end [2024-12-17 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040884', 'tblTempVendorCDR_20' ) start [2024-12-17 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040884', 'tblTempVendorCDR_20' ) end [2024-12-17 12:42:24] Production.INFO: ProcessCDR(1,14040884,1,1,2) [2024-12-17 12:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040884', 'tblTempUsageDetail_20' ) start [2024-12-17 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040884', 'tblTempUsageDetail_20' ) end [2024-12-17 12:42:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:42:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:42:28] Production.INFO: ==29675== Releasing lock... [2024-12-17 12:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:42:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:43:04 [end_date_ymd] => 2024-12-17 12:43:04 [RateCDR] => 1 ) [2024-12-17 12: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 09:43:04' and `end` < '2024-12-17 12: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-17 12:43:23] Production.INFO: count ==5116 [2024-12-17 12:43:25] Production.ERROR: pbx CDR StartTime 2024-12-17 09:43:04 - End Time 2024-12-17 12:43:04 [2024-12-17 12:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040889', 'tblTempUsageDetail_20' ) start [2024-12-17 12:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040889', 'tblTempUsageDetail_20' ) end [2024-12-17 12:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040889', 'tblTempVendorCDR_20' ) start [2024-12-17 12:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040889', 'tblTempVendorCDR_20' ) end [2024-12-17 12:43:25] Production.INFO: ProcessCDR(1,14040889,1,1,2) [2024-12-17 12:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040889', 'tblTempUsageDetail_20' ) start [2024-12-17 12:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040889', 'tblTempUsageDetail_20' ) end [2024-12-17 12:43:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:43:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:43:30] Production.INFO: ==29817== Releasing lock... [2024-12-17 12:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:43:30] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:44:05 [end_date_ymd] => 2024-12-17 12:44:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:44:05' and `end` < '2024-12-17 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-17 12:44:18] Production.INFO: count ==5101 [2024-12-17 12:44:20] Production.ERROR: pbx CDR StartTime 2024-12-17 09:44:05 - End Time 2024-12-17 12:44:05 [2024-12-17 12:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040894', 'tblTempUsageDetail_20' ) start [2024-12-17 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040894', 'tblTempUsageDetail_20' ) end [2024-12-17 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040894', 'tblTempVendorCDR_20' ) start [2024-12-17 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040894', 'tblTempVendorCDR_20' ) end [2024-12-17 12:44:20] Production.INFO: ProcessCDR(1,14040894,1,1,2) [2024-12-17 12:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040894', 'tblTempUsageDetail_20' ) start [2024-12-17 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040894', 'tblTempUsageDetail_20' ) end [2024-12-17 12:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:44:24] Production.INFO: ==29929== Releasing lock... [2024-12-17 12:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:44:24] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 12:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:45:04 [end_date_ymd] => 2024-12-17 12:45:04 [RateCDR] => 1 ) [2024-12-17 12: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 09:45:04' and `end` < '2024-12-17 12: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-17 12:45:24] Production.INFO: count ==5084 [2024-12-17 12:45:26] Production.ERROR: pbx CDR StartTime 2024-12-17 09:45:04 - End Time 2024-12-17 12:45:04 [2024-12-17 12:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040899', 'tblTempUsageDetail_20' ) start [2024-12-17 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040899', 'tblTempUsageDetail_20' ) end [2024-12-17 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040899', 'tblTempVendorCDR_20' ) start [2024-12-17 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040899', 'tblTempVendorCDR_20' ) end [2024-12-17 12:45:26] Production.INFO: ProcessCDR(1,14040899,1,1,2) [2024-12-17 12:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040899', 'tblTempUsageDetail_20' ) start [2024-12-17 12:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040899', 'tblTempUsageDetail_20' ) end [2024-12-17 12:45:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:45:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:45:31] Production.INFO: ==30027== Releasing lock... [2024-12-17 12:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:45:31] Production.INFO: 66 MB #Memory Used# [2024-12-17 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:46:05 [end_date_ymd] => 2024-12-17 12:46:05 [RateCDR] => 1 ) [2024-12-17 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 09:46:05' and `end` < '2024-12-17 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:46:22] Production.INFO: count ==5071 [2024-12-17 12:46:24] Production.ERROR: pbx CDR StartTime 2024-12-17 09:46:05 - End Time 2024-12-17 12:46:05 [2024-12-17 12:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040904', 'tblTempUsageDetail_20' ) start [2024-12-17 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040904', 'tblTempUsageDetail_20' ) end [2024-12-17 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040904', 'tblTempVendorCDR_20' ) start [2024-12-17 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040904', 'tblTempVendorCDR_20' ) end [2024-12-17 12:46:24] Production.INFO: ProcessCDR(1,14040904,1,1,2) [2024-12-17 12:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040904', 'tblTempUsageDetail_20' ) start [2024-12-17 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040904', 'tblTempUsageDetail_20' ) end [2024-12-17 12:46:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:46:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:46:28] Production.INFO: ==30137== Releasing lock... [2024-12-17 12:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:46:28] Production.INFO: 66 MB #Memory Used# [2024-12-17 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:47:05 [end_date_ymd] => 2024-12-17 12:47:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:47:05' and `end` < '2024-12-17 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-17 12:47:22] Production.INFO: count ==5055 [2024-12-17 12:47:24] Production.ERROR: pbx CDR StartTime 2024-12-17 09:47:05 - End Time 2024-12-17 12:47:05 [2024-12-17 12:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040909', 'tblTempUsageDetail_20' ) start [2024-12-17 12:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040909', 'tblTempUsageDetail_20' ) end [2024-12-17 12:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040909', 'tblTempVendorCDR_20' ) start [2024-12-17 12:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040909', 'tblTempVendorCDR_20' ) end [2024-12-17 12:47:24] Production.INFO: ProcessCDR(1,14040909,1,1,2) [2024-12-17 12:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040909', 'tblTempUsageDetail_20' ) start [2024-12-17 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040909', 'tblTempUsageDetail_20' ) end [2024-12-17 12:47:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:47:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:47:29] Production.INFO: ==30235== Releasing lock... [2024-12-17 12:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:47:29] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 12:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:48:04 [end_date_ymd] => 2024-12-17 12:48:04 [RateCDR] => 1 ) [2024-12-17 12: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-17 09:48:04' and `end` < '2024-12-17 12: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-17 12:48:23] Production.INFO: count ==5059 [2024-12-17 12:48:25] Production.ERROR: pbx CDR StartTime 2024-12-17 09:48:04 - End Time 2024-12-17 12:48:04 [2024-12-17 12:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040914', 'tblTempUsageDetail_20' ) start [2024-12-17 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040914', 'tblTempUsageDetail_20' ) end [2024-12-17 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040914', 'tblTempVendorCDR_20' ) start [2024-12-17 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040914', 'tblTempVendorCDR_20' ) end [2024-12-17 12:48:25] Production.INFO: ProcessCDR(1,14040914,1,1,2) [2024-12-17 12:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040914', 'tblTempUsageDetail_20' ) start [2024-12-17 12:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040914', 'tblTempUsageDetail_20' ) end [2024-12-17 12:48:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:48:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:48:30] Production.INFO: ==30340== Releasing lock... [2024-12-17 12:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:48:30] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:49:05 [end_date_ymd] => 2024-12-17 12:49:05 [RateCDR] => 1 ) [2024-12-17 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 09:49:05' and `end` < '2024-12-17 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:49:22] Production.INFO: count ==5070 [2024-12-17 12:49:24] Production.ERROR: pbx CDR StartTime 2024-12-17 09:49:05 - End Time 2024-12-17 12:49:05 [2024-12-17 12:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040919', 'tblTempUsageDetail_20' ) start [2024-12-17 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040919', 'tblTempUsageDetail_20' ) end [2024-12-17 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040919', 'tblTempVendorCDR_20' ) start [2024-12-17 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040919', 'tblTempVendorCDR_20' ) end [2024-12-17 12:49:24] Production.INFO: ProcessCDR(1,14040919,1,1,2) [2024-12-17 12:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040919', 'tblTempUsageDetail_20' ) start [2024-12-17 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040919', 'tblTempUsageDetail_20' ) end [2024-12-17 12:49:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:49:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:49:28] Production.INFO: ==30446== Releasing lock... [2024-12-17 12:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:49:28] Production.INFO: 66 MB #Memory Used# [2024-12-17 12:50:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:50:04 [end_date_ymd] => 2024-12-17 12:50:04 [RateCDR] => 1 ) [2024-12-17 12:50:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and 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 09:50:04' and `end` < '2024-12-17 12:50:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:50:29] Production.INFO: count ==5057 [2024-12-17 12:50:30] Production.ERROR: pbx CDR StartTime 2024-12-17 09:50:04 - End Time 2024-12-17 12:50:04 [2024-12-17 12:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040925', 'tblTempUsageDetail_20' ) start [2024-12-17 12:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040925', 'tblTempUsageDetail_20' ) end [2024-12-17 12:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040925', 'tblTempVendorCDR_20' ) start [2024-12-17 12:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040925', 'tblTempVendorCDR_20' ) end [2024-12-17 12:50:31] Production.INFO: ProcessCDR(1,14040925,1,1,2) [2024-12-17 12:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040925', 'tblTempUsageDetail_20' ) start [2024-12-17 12:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040925', 'tblTempUsageDetail_20' ) end [2024-12-17 12:50:35] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:50:35] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:50:35] Production.INFO: ==30548== Releasing lock... [2024-12-17 12:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:50:35] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 12:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:51:04 [end_date_ymd] => 2024-12-17 12:51:04 [RateCDR] => 1 ) [2024-12-17 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-17 09:51:04' and `end` < '2024-12-17 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-17 12:51:28] Production.INFO: count ==5109 [2024-12-17 12:51:30] Production.ERROR: pbx CDR StartTime 2024-12-17 09:51:04 - End Time 2024-12-17 12:51:04 [2024-12-17 12:51:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040930', 'tblTempUsageDetail_20' ) start [2024-12-17 12:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040930', 'tblTempUsageDetail_20' ) end [2024-12-17 12:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040930', 'tblTempVendorCDR_20' ) start [2024-12-17 12:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040930', 'tblTempVendorCDR_20' ) end [2024-12-17 12:51:30] Production.INFO: ProcessCDR(1,14040930,1,1,2) [2024-12-17 12:51:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:51:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:51:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:51:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040930', 'tblTempUsageDetail_20' ) start [2024-12-17 12:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040930', 'tblTempUsageDetail_20' ) end [2024-12-17 12:51:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:51:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:51:34] Production.INFO: ==30653== Releasing lock... [2024-12-17 12:51:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:51:34] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:52:05 [end_date_ymd] => 2024-12-17 12:52:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:52:05' and `end` < '2024-12-17 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-17 12:52:24] Production.INFO: count ==5137 [2024-12-17 12:52:26] Production.ERROR: pbx CDR StartTime 2024-12-17 09:52:05 - End Time 2024-12-17 12:52:05 [2024-12-17 12:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040935', 'tblTempUsageDetail_20' ) start [2024-12-17 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040935', 'tblTempUsageDetail_20' ) end [2024-12-17 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040935', 'tblTempVendorCDR_20' ) start [2024-12-17 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040935', 'tblTempVendorCDR_20' ) end [2024-12-17 12:52:26] Production.INFO: ProcessCDR(1,14040935,1,1,2) [2024-12-17 12:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040935', 'tblTempUsageDetail_20' ) start [2024-12-17 12:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040935', 'tblTempUsageDetail_20' ) end [2024-12-17 12:52:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:52:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:52:30] Production.INFO: ==30755== Releasing lock... [2024-12-17 12:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:52:30] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:53:04 [end_date_ymd] => 2024-12-17 12:53:04 [RateCDR] => 1 ) [2024-12-17 12: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-17 09:53:04' and `end` < '2024-12-17 12: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-17 12:53:23] Production.INFO: count ==5155 [2024-12-17 12:53:25] Production.ERROR: pbx CDR StartTime 2024-12-17 09:53:04 - End Time 2024-12-17 12:53:04 [2024-12-17 12:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040940', 'tblTempUsageDetail_20' ) start [2024-12-17 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040940', 'tblTempUsageDetail_20' ) end [2024-12-17 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040940', 'tblTempVendorCDR_20' ) start [2024-12-17 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040940', 'tblTempVendorCDR_20' ) end [2024-12-17 12:53:25] Production.INFO: ProcessCDR(1,14040940,1,1,2) [2024-12-17 12:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040940', 'tblTempUsageDetail_20' ) start [2024-12-17 12:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040940', 'tblTempUsageDetail_20' ) end [2024-12-17 12:53:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:53:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:53:29] Production.INFO: ==30856== Releasing lock... [2024-12-17 12:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:53:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:54:05 [end_date_ymd] => 2024-12-17 12:54:05 [RateCDR] => 1 ) [2024-12-17 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 09:54:05' and `end` < '2024-12-17 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:54:24] Production.INFO: count ==5149 [2024-12-17 12:54:26] Production.ERROR: pbx CDR StartTime 2024-12-17 09:54:05 - End Time 2024-12-17 12:54:05 [2024-12-17 12:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040945', 'tblTempUsageDetail_20' ) start [2024-12-17 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040945', 'tblTempUsageDetail_20' ) end [2024-12-17 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040945', 'tblTempVendorCDR_20' ) start [2024-12-17 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040945', 'tblTempVendorCDR_20' ) end [2024-12-17 12:54:26] Production.INFO: ProcessCDR(1,14040945,1,1,2) [2024-12-17 12:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040945', 'tblTempUsageDetail_20' ) start [2024-12-17 12:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040945', 'tblTempUsageDetail_20' ) end [2024-12-17 12:54:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:54:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:54:29] Production.INFO: ==30956== Releasing lock... [2024-12-17 12:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:54:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:55:04 [end_date_ymd] => 2024-12-17 12:55:04 [RateCDR] => 1 ) [2024-12-17 12: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 09:55:04' and `end` < '2024-12-17 12: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-17 12:55:24] Production.INFO: count ==5159 [2024-12-17 12:55:27] Production.ERROR: pbx CDR StartTime 2024-12-17 09:55:04 - End Time 2024-12-17 12:55:04 [2024-12-17 12:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040950', 'tblTempUsageDetail_20' ) start [2024-12-17 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040950', 'tblTempUsageDetail_20' ) end [2024-12-17 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040950', 'tblTempVendorCDR_20' ) start [2024-12-17 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040950', 'tblTempVendorCDR_20' ) end [2024-12-17 12:55:27] Production.INFO: ProcessCDR(1,14040950,1,1,2) [2024-12-17 12:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040950', 'tblTempUsageDetail_20' ) start [2024-12-17 12:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040950', 'tblTempUsageDetail_20' ) end [2024-12-17 12:55:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:55:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:55:32] Production.INFO: ==31057== Releasing lock... [2024-12-17 12:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:55:32] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:56:05 [end_date_ymd] => 2024-12-17 12:56:05 [RateCDR] => 1 ) [2024-12-17 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 09:56:05' and `end` < '2024-12-17 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:56:31] Production.INFO: count ==5205 [2024-12-17 12:56:33] Production.ERROR: pbx CDR StartTime 2024-12-17 09:56:05 - End Time 2024-12-17 12:56:05 [2024-12-17 12:56:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040955', 'tblTempUsageDetail_20' ) start [2024-12-17 12:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040955', 'tblTempUsageDetail_20' ) end [2024-12-17 12:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040955', 'tblTempVendorCDR_20' ) start [2024-12-17 12:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040955', 'tblTempVendorCDR_20' ) end [2024-12-17 12:56:33] Production.INFO: ProcessCDR(1,14040955,1,1,2) [2024-12-17 12:56:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:56:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:56:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:56:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040955', 'tblTempUsageDetail_20' ) start [2024-12-17 12:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040955', 'tblTempUsageDetail_20' ) end [2024-12-17 12:56:38] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:56:38] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:56:38] Production.INFO: ==31162== Releasing lock... [2024-12-17 12:56:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:56:38] Production.INFO: 67 MB #Memory Used# [2024-12-17 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:57:05 [end_date_ymd] => 2024-12-17 12:57:05 [RateCDR] => 1 ) [2024-12-17 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 09:57:05' and `end` < '2024-12-17 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 12:57:24] Production.INFO: count ==5187 [2024-12-17 12:57:26] Production.ERROR: pbx CDR StartTime 2024-12-17 09:57:05 - End Time 2024-12-17 12:57:05 [2024-12-17 12:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040960', 'tblTempUsageDetail_20' ) start [2024-12-17 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040960', 'tblTempUsageDetail_20' ) end [2024-12-17 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040960', 'tblTempVendorCDR_20' ) start [2024-12-17 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040960', 'tblTempVendorCDR_20' ) end [2024-12-17 12:57:26] Production.INFO: ProcessCDR(1,14040960,1,1,2) [2024-12-17 12:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040960', 'tblTempUsageDetail_20' ) start [2024-12-17 12:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040960', 'tblTempUsageDetail_20' ) end [2024-12-17 12:57:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:57:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:57:31] Production.INFO: ==31266== Releasing lock... [2024-12-17 12:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:57:31] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:58:05 [end_date_ymd] => 2024-12-17 12:58:05 [RateCDR] => 1 ) [2024-12-17 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-17 09:58:05' and `end` < '2024-12-17 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-17 12:58:18] Production.INFO: count ==5180 [2024-12-17 12:58:20] Production.ERROR: pbx CDR StartTime 2024-12-17 09:58:05 - End Time 2024-12-17 12:58:05 [2024-12-17 12:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040965', 'tblTempUsageDetail_20' ) start [2024-12-17 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040965', 'tblTempUsageDetail_20' ) end [2024-12-17 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040965', 'tblTempVendorCDR_20' ) start [2024-12-17 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040965', 'tblTempVendorCDR_20' ) end [2024-12-17 12:58:20] Production.INFO: ProcessCDR(1,14040965,1,1,2) [2024-12-17 12:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040965', 'tblTempUsageDetail_20' ) start [2024-12-17 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040965', 'tblTempUsageDetail_20' ) end [2024-12-17 12:58:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:58:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:58:25] Production.INFO: ==31366== Releasing lock... [2024-12-17 12:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:58:25] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 12:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 09:59:04 [end_date_ymd] => 2024-12-17 12:59:04 [RateCDR] => 1 ) [2024-12-17 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-17 09:59:04' and `end` < '2024-12-17 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-17 12:59:17] Production.INFO: count ==5175 [2024-12-17 12:59:19] Production.ERROR: pbx CDR StartTime 2024-12-17 09:59:04 - End Time 2024-12-17 12:59:04 [2024-12-17 12:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040970', 'tblTempUsageDetail_20' ) start [2024-12-17 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040970', 'tblTempUsageDetail_20' ) end [2024-12-17 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040970', 'tblTempVendorCDR_20' ) start [2024-12-17 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040970', 'tblTempVendorCDR_20' ) end [2024-12-17 12:59:19] Production.INFO: ProcessCDR(1,14040970,1,1,2) [2024-12-17 12:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 12:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040970', 'tblTempUsageDetail_20' ) start [2024-12-17 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040970', 'tblTempUsageDetail_20' ) end [2024-12-17 12:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 12:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 12:59:24] Production.INFO: ==31514== Releasing lock... [2024-12-17 12:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 12:59:24] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:00:05 [end_date_ymd] => 2024-12-17 13:00:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:00:05' and `end` < '2024-12-17 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-17 13:00:36] Production.INFO: count ==5150 [2024-12-17 13:00:38] Production.ERROR: pbx CDR StartTime 2024-12-17 10:00:05 - End Time 2024-12-17 13:00:05 [2024-12-17 13:00:38] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040976', 'tblTempUsageDetail_20' ) start [2024-12-17 13:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040976', 'tblTempUsageDetail_20' ) end [2024-12-17 13:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040976', 'tblTempVendorCDR_20' ) start [2024-12-17 13:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040976', 'tblTempVendorCDR_20' ) end [2024-12-17 13:00:38] Production.INFO: ProcessCDR(1,14040976,1,1,2) [2024-12-17 13:00:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:00:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:00:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:00:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:00:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040976', 'tblTempUsageDetail_20' ) start [2024-12-17 13:00:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040976', 'tblTempUsageDetail_20' ) end [2024-12-17 13:00:42] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:00:42] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:00:42] Production.INFO: ==31595== Releasing lock... [2024-12-17 13:00:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:00:42] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:01:05 [end_date_ymd] => 2024-12-17 13:01:05 [RateCDR] => 1 ) [2024-12-17 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:01:05' and `end` < '2024-12-17 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:01:25] Production.INFO: count ==5139 [2024-12-17 13:01:27] Production.ERROR: pbx CDR StartTime 2024-12-17 10:01:05 - End Time 2024-12-17 13:01:05 [2024-12-17 13:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040981', 'tblTempUsageDetail_20' ) start [2024-12-17 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040981', 'tblTempUsageDetail_20' ) end [2024-12-17 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040981', 'tblTempVendorCDR_20' ) start [2024-12-17 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040981', 'tblTempVendorCDR_20' ) end [2024-12-17 13:01:27] Production.INFO: ProcessCDR(1,14040981,1,1,2) [2024-12-17 13:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040981', 'tblTempUsageDetail_20' ) start [2024-12-17 13:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040981', 'tblTempUsageDetail_20' ) end [2024-12-17 13:01:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:01:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:01:32] Production.INFO: ==31683== Releasing lock... [2024-12-17 13:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:01:32] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:02:05 [end_date_ymd] => 2024-12-17 13:02:05 [RateCDR] => 1 ) [2024-12-17 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:02:05' and `end` < '2024-12-17 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:02:30] Production.INFO: count ==5143 [2024-12-17 13:02:32] Production.ERROR: pbx CDR StartTime 2024-12-17 10:02:05 - End Time 2024-12-17 13:02:05 [2024-12-17 13:02:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040986', 'tblTempUsageDetail_20' ) start [2024-12-17 13:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040986', 'tblTempUsageDetail_20' ) end [2024-12-17 13:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040986', 'tblTempVendorCDR_20' ) start [2024-12-17 13:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040986', 'tblTempVendorCDR_20' ) end [2024-12-17 13:02:32] Production.INFO: ProcessCDR(1,14040986,1,1,2) [2024-12-17 13:02:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:02:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:02:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040986', 'tblTempUsageDetail_20' ) start [2024-12-17 13:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040986', 'tblTempUsageDetail_20' ) end [2024-12-17 13:02:37] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:02:37] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:02:37] Production.INFO: ==31765== Releasing lock... [2024-12-17 13:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:02:37] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:03:05 [end_date_ymd] => 2024-12-17 13:03:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:03:05' and `end` < '2024-12-17 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-17 13:03:24] Production.INFO: count ==5140 [2024-12-17 13:03:26] Production.ERROR: pbx CDR StartTime 2024-12-17 10:03:05 - End Time 2024-12-17 13:03:05 [2024-12-17 13:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040991', 'tblTempUsageDetail_20' ) start [2024-12-17 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040991', 'tblTempUsageDetail_20' ) end [2024-12-17 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040991', 'tblTempVendorCDR_20' ) start [2024-12-17 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040991', 'tblTempVendorCDR_20' ) end [2024-12-17 13:03:26] Production.INFO: ProcessCDR(1,14040991,1,1,2) [2024-12-17 13:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040991', 'tblTempUsageDetail_20' ) start [2024-12-17 13:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040991', 'tblTempUsageDetail_20' ) end [2024-12-17 13:03:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:03:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:03:30] Production.INFO: ==31847== Releasing lock... [2024-12-17 13:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:03:30] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:04:06 [end_date_ymd] => 2024-12-17 13:04:06 [RateCDR] => 1 ) [2024-12-17 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:04:06' and `end` < '2024-12-17 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:04:19] Production.INFO: count ==5157 [2024-12-17 13:04:21] Production.ERROR: pbx CDR StartTime 2024-12-17 10:04:06 - End Time 2024-12-17 13:04:06 [2024-12-17 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040996', 'tblTempUsageDetail_20' ) start [2024-12-17 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14040996', 'tblTempUsageDetail_20' ) end [2024-12-17 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040996', 'tblTempVendorCDR_20' ) start [2024-12-17 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14040996', 'tblTempVendorCDR_20' ) end [2024-12-17 13:04:21] Production.INFO: ProcessCDR(1,14040996,1,1,2) [2024-12-17 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14040996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14040996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14040996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14040996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040996', 'tblTempUsageDetail_20' ) start [2024-12-17 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14040996', 'tblTempUsageDetail_20' ) end [2024-12-17 13:04:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:04:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:04:26] Production.INFO: ==31927== Releasing lock... [2024-12-17 13:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:04:26] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 13:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:05:04 [end_date_ymd] => 2024-12-17 13:05:04 [RateCDR] => 1 ) [2024-12-17 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-17 10:05:04' and `end` < '2024-12-17 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-17 13:05:25] Production.INFO: count ==5184 [2024-12-17 13:05:27] Production.ERROR: pbx CDR StartTime 2024-12-17 10:05:04 - End Time 2024-12-17 13:05:04 [2024-12-17 13:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041001', 'tblTempUsageDetail_20' ) start [2024-12-17 13:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041001', 'tblTempUsageDetail_20' ) end [2024-12-17 13:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041001', 'tblTempVendorCDR_20' ) start [2024-12-17 13:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041001', 'tblTempVendorCDR_20' ) end [2024-12-17 13:05:27] Production.INFO: ProcessCDR(1,14041001,1,1,2) [2024-12-17 13:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041001', 'tblTempUsageDetail_20' ) start [2024-12-17 13:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041001', 'tblTempUsageDetail_20' ) end [2024-12-17 13:05:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:05:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:05:31] Production.INFO: ==32006== Releasing lock... [2024-12-17 13:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:05:31] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:06:05 [end_date_ymd] => 2024-12-17 13:06:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:06:05' and `end` < '2024-12-17 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-17 13:06:31] Production.INFO: count ==5207 [2024-12-17 13:06:33] Production.ERROR: pbx CDR StartTime 2024-12-17 10:06:05 - End Time 2024-12-17 13:06:05 [2024-12-17 13:06:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041006', 'tblTempUsageDetail_20' ) start [2024-12-17 13:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041006', 'tblTempUsageDetail_20' ) end [2024-12-17 13:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041006', 'tblTempVendorCDR_20' ) start [2024-12-17 13:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041006', 'tblTempVendorCDR_20' ) end [2024-12-17 13:06:33] Production.INFO: ProcessCDR(1,14041006,1,1,2) [2024-12-17 13:06:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:06:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:06:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:06:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041006', 'tblTempUsageDetail_20' ) start [2024-12-17 13:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041006', 'tblTempUsageDetail_20' ) end [2024-12-17 13:06:38] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:06:38] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:06:38] Production.INFO: ==32087== Releasing lock... [2024-12-17 13:06:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:06:38] Production.INFO: 67 MB #Memory Used# [2024-12-17 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:07:05 [end_date_ymd] => 2024-12-17 13:07:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:07:05' and `end` < '2024-12-17 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-17 13:07:34] Production.INFO: count ==5200 [2024-12-17 13:07:36] Production.ERROR: pbx CDR StartTime 2024-12-17 10:07:05 - End Time 2024-12-17 13:07:05 [2024-12-17 13:07:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041011', 'tblTempUsageDetail_20' ) start [2024-12-17 13:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041011', 'tblTempUsageDetail_20' ) end [2024-12-17 13:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041011', 'tblTempVendorCDR_20' ) start [2024-12-17 13:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041011', 'tblTempVendorCDR_20' ) end [2024-12-17 13:07:36] Production.INFO: ProcessCDR(1,14041011,1,1,2) [2024-12-17 13:07:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:07:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:07:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:07:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:07:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041011', 'tblTempUsageDetail_20' ) start [2024-12-17 13:07:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041011', 'tblTempUsageDetail_20' ) end [2024-12-17 13:07:41] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:07:41] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:07:41] Production.INFO: ==32165== Releasing lock... [2024-12-17 13:07:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:07:41] Production.INFO: 67 MB #Memory Used# [2024-12-17 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:08:05 [end_date_ymd] => 2024-12-17 13:08:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:08:05' and `end` < '2024-12-17 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-17 13:08:26] Production.INFO: count ==5197 [2024-12-17 13:08:29] Production.ERROR: pbx CDR StartTime 2024-12-17 10:08:05 - End Time 2024-12-17 13:08:05 [2024-12-17 13:08:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041016', 'tblTempUsageDetail_20' ) start [2024-12-17 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041016', 'tblTempUsageDetail_20' ) end [2024-12-17 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041016', 'tblTempVendorCDR_20' ) start [2024-12-17 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041016', 'tblTempVendorCDR_20' ) end [2024-12-17 13:08:29] Production.INFO: ProcessCDR(1,14041016,1,1,2) [2024-12-17 13:08:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:08:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:08:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041016', 'tblTempUsageDetail_20' ) start [2024-12-17 13:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041016', 'tblTempUsageDetail_20' ) end [2024-12-17 13:08:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:08:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:08:33] Production.INFO: ==32246== Releasing lock... [2024-12-17 13:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:08:33] Production.INFO: 67 MB #Memory Used# [2024-12-17 13:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:09:04 [end_date_ymd] => 2024-12-17 13:09:04 [RateCDR] => 1 ) [2024-12-17 13: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 10:09:04' and `end` < '2024-12-17 13: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-17 13:09:25] Production.INFO: count ==5213 [2024-12-17 13:09:27] Production.ERROR: pbx CDR StartTime 2024-12-17 10:09:04 - End Time 2024-12-17 13:09:04 [2024-12-17 13:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041021', 'tblTempUsageDetail_20' ) start [2024-12-17 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041021', 'tblTempUsageDetail_20' ) end [2024-12-17 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041021', 'tblTempVendorCDR_20' ) start [2024-12-17 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041021', 'tblTempVendorCDR_20' ) end [2024-12-17 13:09:27] Production.INFO: ProcessCDR(1,14041021,1,1,2) [2024-12-17 13:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041021', 'tblTempUsageDetail_20' ) start [2024-12-17 13:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041021', 'tblTempUsageDetail_20' ) end [2024-12-17 13:09:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:09:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:09:32] Production.INFO: ==32328== Releasing lock... [2024-12-17 13:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:09:32] Production.INFO: 67 MB #Memory Used# [2024-12-17 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:10:05 [end_date_ymd] => 2024-12-17 13:10:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:10:05' and `end` < '2024-12-17 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-17 13:10:29] Production.INFO: count ==5217 [2024-12-17 13:10:31] Production.ERROR: pbx CDR StartTime 2024-12-17 10:10:05 - End Time 2024-12-17 13:10:05 [2024-12-17 13:10:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041026', 'tblTempUsageDetail_20' ) start [2024-12-17 13:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041026', 'tblTempUsageDetail_20' ) end [2024-12-17 13:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041026', 'tblTempVendorCDR_20' ) start [2024-12-17 13:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041026', 'tblTempVendorCDR_20' ) end [2024-12-17 13:10:32] Production.INFO: ProcessCDR(1,14041026,1,1,2) [2024-12-17 13:10:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:10:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:10:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:10:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041026', 'tblTempUsageDetail_20' ) start [2024-12-17 13:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041026', 'tblTempUsageDetail_20' ) end [2024-12-17 13:10:36] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:10:36] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:10:36] Production.INFO: ==32415== Releasing lock... [2024-12-17 13:10:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:10:36] Production.INFO: 67 MB #Memory Used# [2024-12-17 13:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:11:04 [end_date_ymd] => 2024-12-17 13:11:04 [RateCDR] => 1 ) [2024-12-17 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-17 10:11:04' and `end` < '2024-12-17 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-17 13:11:26] Production.INFO: count ==5202 [2024-12-17 13:11:28] Production.ERROR: pbx CDR StartTime 2024-12-17 10:11:04 - End Time 2024-12-17 13:11:04 [2024-12-17 13:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041032', 'tblTempUsageDetail_20' ) start [2024-12-17 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041032', 'tblTempUsageDetail_20' ) end [2024-12-17 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041032', 'tblTempVendorCDR_20' ) start [2024-12-17 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041032', 'tblTempVendorCDR_20' ) end [2024-12-17 13:11:28] Production.INFO: ProcessCDR(1,14041032,1,1,2) [2024-12-17 13:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041032', 'tblTempUsageDetail_20' ) start [2024-12-17 13:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041032', 'tblTempUsageDetail_20' ) end [2024-12-17 13:11:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:11:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:11:34] Production.INFO: ==32497== Releasing lock... [2024-12-17 13:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:11:34] Production.INFO: 67 MB #Memory Used# [2024-12-17 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:12:05 [end_date_ymd] => 2024-12-17 13:12:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:12:05' and `end` < '2024-12-17 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-17 13:12:27] Production.INFO: count ==5202 [2024-12-17 13:12:29] Production.ERROR: pbx CDR StartTime 2024-12-17 10:12:05 - End Time 2024-12-17 13:12:05 [2024-12-17 13:12:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041037', 'tblTempUsageDetail_20' ) start [2024-12-17 13:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041037', 'tblTempUsageDetail_20' ) end [2024-12-17 13:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041037', 'tblTempVendorCDR_20' ) start [2024-12-17 13:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041037', 'tblTempVendorCDR_20' ) end [2024-12-17 13:12:29] Production.INFO: ProcessCDR(1,14041037,1,1,2) [2024-12-17 13:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041037', 'tblTempUsageDetail_20' ) start [2024-12-17 13:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041037', 'tblTempUsageDetail_20' ) end [2024-12-17 13:12:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:12:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:12:34] Production.INFO: ==32573== Releasing lock... [2024-12-17 13:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:12:34] Production.INFO: 67 MB #Memory Used# [2024-12-17 13:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:13:04 [end_date_ymd] => 2024-12-17 13:13:04 [RateCDR] => 1 ) [2024-12-17 13: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 10:13:04' and `end` < '2024-12-17 13: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-17 13:13:21] Production.INFO: count ==5215 [2024-12-17 13:13:24] Production.ERROR: pbx CDR StartTime 2024-12-17 10:13:04 - End Time 2024-12-17 13:13:04 [2024-12-17 13:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041042', 'tblTempUsageDetail_20' ) start [2024-12-17 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041042', 'tblTempUsageDetail_20' ) end [2024-12-17 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041042', 'tblTempVendorCDR_20' ) start [2024-12-17 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041042', 'tblTempVendorCDR_20' ) end [2024-12-17 13:13:24] Production.INFO: ProcessCDR(1,14041042,1,1,2) [2024-12-17 13:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041042', 'tblTempUsageDetail_20' ) start [2024-12-17 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041042', 'tblTempUsageDetail_20' ) end [2024-12-17 13:13:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:13:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:13:28] Production.INFO: ==32653== Releasing lock... [2024-12-17 13:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:13:28] Production.INFO: 67 MB #Memory Used# [2024-12-17 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:14:05 [end_date_ymd] => 2024-12-17 13:14:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:14:05' and `end` < '2024-12-17 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-17 13:14:25] Production.INFO: count ==5257 [2024-12-17 13:14:27] Production.ERROR: pbx CDR StartTime 2024-12-17 10:14:05 - End Time 2024-12-17 13:14:05 [2024-12-17 13:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041047', 'tblTempUsageDetail_20' ) start [2024-12-17 13:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041047', 'tblTempUsageDetail_20' ) end [2024-12-17 13:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041047', 'tblTempVendorCDR_20' ) start [2024-12-17 13:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041047', 'tblTempVendorCDR_20' ) end [2024-12-17 13:14:27] Production.INFO: ProcessCDR(1,14041047,1,1,2) [2024-12-17 13:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041047', 'tblTempUsageDetail_20' ) start [2024-12-17 13:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041047', 'tblTempUsageDetail_20' ) end [2024-12-17 13:14:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:14:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:14:32] Production.INFO: ==324== Releasing lock... [2024-12-17 13:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:14:32] Production.INFO: 67.25 MB #Memory Used# [2024-12-17 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:15:05 [end_date_ymd] => 2024-12-17 13:15:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:15:05' and `end` < '2024-12-17 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-17 13:15:28] Production.INFO: count ==5257 [2024-12-17 13:15:30] Production.ERROR: pbx CDR StartTime 2024-12-17 10:15:05 - End Time 2024-12-17 13:15:05 [2024-12-17 13:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041052', 'tblTempUsageDetail_20' ) start [2024-12-17 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041052', 'tblTempUsageDetail_20' ) end [2024-12-17 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041052', 'tblTempVendorCDR_20' ) start [2024-12-17 13:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041052', 'tblTempVendorCDR_20' ) end [2024-12-17 13:15:31] Production.INFO: ProcessCDR(1,14041052,1,1,2) [2024-12-17 13:15:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041052', 'tblTempUsageDetail_20' ) start [2024-12-17 13:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041052', 'tblTempUsageDetail_20' ) end [2024-12-17 13:15:35] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:15:35] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:15:35] Production.INFO: ==422== Releasing lock... [2024-12-17 13:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:15:35] Production.INFO: 67.25 MB #Memory Used# [2024-12-17 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:16:05 [end_date_ymd] => 2024-12-17 13:16:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:16:05' and `end` < '2024-12-17 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-17 13:16:19] Production.INFO: count ==5258 [2024-12-17 13:16:21] Production.ERROR: pbx CDR StartTime 2024-12-17 10:16:05 - End Time 2024-12-17 13:16:05 [2024-12-17 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041057', 'tblTempUsageDetail_20' ) start [2024-12-17 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041057', 'tblTempUsageDetail_20' ) end [2024-12-17 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041057', 'tblTempVendorCDR_20' ) start [2024-12-17 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041057', 'tblTempVendorCDR_20' ) end [2024-12-17 13:16:21] Production.INFO: ProcessCDR(1,14041057,1,1,2) [2024-12-17 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041057', 'tblTempUsageDetail_20' ) start [2024-12-17 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041057', 'tblTempUsageDetail_20' ) end [2024-12-17 13:16:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:16:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:16:25] Production.INFO: ==512== Releasing lock... [2024-12-17 13:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:16:25] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:17:05 [end_date_ymd] => 2024-12-17 13:17:05 [RateCDR] => 1 ) [2024-12-17 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:17:05' and `end` < '2024-12-17 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:17:21] Production.INFO: count ==5246 [2024-12-17 13:17:23] Production.ERROR: pbx CDR StartTime 2024-12-17 10:17:05 - End Time 2024-12-17 13:17:05 [2024-12-17 13:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041062', 'tblTempUsageDetail_20' ) start [2024-12-17 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041062', 'tblTempUsageDetail_20' ) end [2024-12-17 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041062', 'tblTempVendorCDR_20' ) start [2024-12-17 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041062', 'tblTempVendorCDR_20' ) end [2024-12-17 13:17:24] Production.INFO: ProcessCDR(1,14041062,1,1,2) [2024-12-17 13:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041062', 'tblTempUsageDetail_20' ) start [2024-12-17 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041062', 'tblTempUsageDetail_20' ) end [2024-12-17 13:17:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:17:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:17:28] Production.INFO: ==602== Releasing lock... [2024-12-17 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:17:28] Production.INFO: 67.25 MB #Memory Used# [2024-12-17 13:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:18:04 [end_date_ymd] => 2024-12-17 13:18:04 [RateCDR] => 1 ) [2024-12-17 13: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 10:18:04' and `end` < '2024-12-17 13: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-17 13:18:22] Production.INFO: count ==5267 [2024-12-17 13:18:24] Production.ERROR: pbx CDR StartTime 2024-12-17 10:18:04 - End Time 2024-12-17 13:18:04 [2024-12-17 13:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041067', 'tblTempUsageDetail_20' ) start [2024-12-17 13:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041067', 'tblTempUsageDetail_20' ) end [2024-12-17 13:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041067', 'tblTempVendorCDR_20' ) start [2024-12-17 13:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041067', 'tblTempVendorCDR_20' ) end [2024-12-17 13:18:24] Production.INFO: ProcessCDR(1,14041067,1,1,2) [2024-12-17 13:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041067', 'tblTempUsageDetail_20' ) start [2024-12-17 13:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041067', 'tblTempUsageDetail_20' ) end [2024-12-17 13:18:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:18:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:18:29] Production.INFO: ==717== Releasing lock... [2024-12-17 13:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:18:29] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:19:05 [end_date_ymd] => 2024-12-17 13:19:05 [RateCDR] => 1 ) [2024-12-17 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:19:05' and `end` < '2024-12-17 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:19:23] Production.INFO: count ==5260 [2024-12-17 13:19:25] Production.ERROR: pbx CDR StartTime 2024-12-17 10:19:05 - End Time 2024-12-17 13:19:05 [2024-12-17 13:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041072', 'tblTempUsageDetail_20' ) start [2024-12-17 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041072', 'tblTempUsageDetail_20' ) end [2024-12-17 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041072', 'tblTempVendorCDR_20' ) start [2024-12-17 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041072', 'tblTempVendorCDR_20' ) end [2024-12-17 13:19:25] Production.INFO: ProcessCDR(1,14041072,1,1,2) [2024-12-17 13:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041072', 'tblTempUsageDetail_20' ) start [2024-12-17 13:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041072', 'tblTempUsageDetail_20' ) end [2024-12-17 13:19:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:19:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:19:30] Production.INFO: ==801== Releasing lock... [2024-12-17 13:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:19:30] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:20:05 [end_date_ymd] => 2024-12-17 13:20:05 [RateCDR] => 1 ) [2024-12-17 13: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 10:20:05' and `end` < '2024-12-17 13: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-17 13:20:18] Production.INFO: count ==5274 [2024-12-17 13:20:20] Production.ERROR: pbx CDR StartTime 2024-12-17 10:20:05 - End Time 2024-12-17 13:20:05 [2024-12-17 13:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041078', 'tblTempUsageDetail_20' ) start [2024-12-17 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041078', 'tblTempUsageDetail_20' ) end [2024-12-17 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041078', 'tblTempVendorCDR_20' ) start [2024-12-17 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041078', 'tblTempVendorCDR_20' ) end [2024-12-17 13:20:21] Production.INFO: ProcessCDR(1,14041078,1,1,2) [2024-12-17 13:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041078', 'tblTempUsageDetail_20' ) start [2024-12-17 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041078', 'tblTempUsageDetail_20' ) end [2024-12-17 13:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:20:25] Production.INFO: ==885== Releasing lock... [2024-12-17 13:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:20:25] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:21:04 [end_date_ymd] => 2024-12-17 13:21:04 [RateCDR] => 1 ) [2024-12-17 13: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-17 10:21:04' and `end` < '2024-12-17 13: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-17 13:21:20] Production.INFO: count ==5273 [2024-12-17 13:21:22] Production.ERROR: pbx CDR StartTime 2024-12-17 10:21:04 - End Time 2024-12-17 13:21:04 [2024-12-17 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041083', 'tblTempUsageDetail_20' ) start [2024-12-17 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041083', 'tblTempUsageDetail_20' ) end [2024-12-17 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041083', 'tblTempVendorCDR_20' ) start [2024-12-17 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041083', 'tblTempVendorCDR_20' ) end [2024-12-17 13:21:22] Production.INFO: ProcessCDR(1,14041083,1,1,2) [2024-12-17 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041083', 'tblTempUsageDetail_20' ) start [2024-12-17 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041083', 'tblTempUsageDetail_20' ) end [2024-12-17 13:21:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:21:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:21:26] Production.INFO: ==977== Releasing lock... [2024-12-17 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:21:26] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:22:05 [end_date_ymd] => 2024-12-17 13:22:05 [RateCDR] => 1 ) [2024-12-17 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:22:05' and `end` < '2024-12-17 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:22:18] Production.INFO: count ==5262 [2024-12-17 13:22:20] Production.ERROR: pbx CDR StartTime 2024-12-17 10:22:05 - End Time 2024-12-17 13:22:05 [2024-12-17 13:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041088', 'tblTempUsageDetail_20' ) start [2024-12-17 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041088', 'tblTempUsageDetail_20' ) end [2024-12-17 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041088', 'tblTempVendorCDR_20' ) start [2024-12-17 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041088', 'tblTempVendorCDR_20' ) end [2024-12-17 13:22:20] Production.INFO: ProcessCDR(1,14041088,1,1,2) [2024-12-17 13:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041088', 'tblTempUsageDetail_20' ) start [2024-12-17 13:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041088', 'tblTempUsageDetail_20' ) end [2024-12-17 13:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:22:24] Production.INFO: ==1056== Releasing lock... [2024-12-17 13:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:22:24] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:23:05 [end_date_ymd] => 2024-12-17 13:23:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:23:05' and `end` < '2024-12-17 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-17 13:23:19] Production.INFO: count ==5265 [2024-12-17 13:23:21] Production.ERROR: pbx CDR StartTime 2024-12-17 10:23:05 - End Time 2024-12-17 13:23:05 [2024-12-17 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041093', 'tblTempUsageDetail_20' ) start [2024-12-17 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041093', 'tblTempUsageDetail_20' ) end [2024-12-17 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041093', 'tblTempVendorCDR_20' ) start [2024-12-17 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041093', 'tblTempVendorCDR_20' ) end [2024-12-17 13:23:21] Production.INFO: ProcessCDR(1,14041093,1,1,2) [2024-12-17 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041093', 'tblTempUsageDetail_20' ) start [2024-12-17 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041093', 'tblTempUsageDetail_20' ) end [2024-12-17 13:23:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:23:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:23:26] Production.INFO: ==1141== Releasing lock... [2024-12-17 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:23:26] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:24:04 [end_date_ymd] => 2024-12-17 13:24:04 [RateCDR] => 1 ) [2024-12-17 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-17 10:24:04' and `end` < '2024-12-17 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-17 13:24:18] Production.INFO: count ==5268 [2024-12-17 13:24:20] Production.ERROR: pbx CDR StartTime 2024-12-17 10:24:04 - End Time 2024-12-17 13:24:04 [2024-12-17 13:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041098', 'tblTempUsageDetail_20' ) start [2024-12-17 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041098', 'tblTempUsageDetail_20' ) end [2024-12-17 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041098', 'tblTempVendorCDR_20' ) start [2024-12-17 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041098', 'tblTempVendorCDR_20' ) end [2024-12-17 13:24:21] Production.INFO: ProcessCDR(1,14041098,1,1,2) [2024-12-17 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041098', 'tblTempUsageDetail_20' ) start [2024-12-17 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041098', 'tblTempUsageDetail_20' ) end [2024-12-17 13:24:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:24:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:24:25] Production.INFO: ==1221== Releasing lock... [2024-12-17 13:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:24:25] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:25:04 [end_date_ymd] => 2024-12-17 13:25:04 [RateCDR] => 1 ) [2024-12-17 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-17 10:25:04' and `end` < '2024-12-17 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-17 13:25:27] Production.INFO: count ==5264 [2024-12-17 13:25:29] Production.ERROR: pbx CDR StartTime 2024-12-17 10:25:04 - End Time 2024-12-17 13:25:04 [2024-12-17 13:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041103', 'tblTempUsageDetail_20' ) start [2024-12-17 13:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041103', 'tblTempUsageDetail_20' ) end [2024-12-17 13:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041103', 'tblTempVendorCDR_20' ) start [2024-12-17 13:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041103', 'tblTempVendorCDR_20' ) end [2024-12-17 13:25:29] Production.INFO: ProcessCDR(1,14041103,1,1,2) [2024-12-17 13:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041103', 'tblTempUsageDetail_20' ) start [2024-12-17 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041103', 'tblTempUsageDetail_20' ) end [2024-12-17 13:25:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:25:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:25:34] Production.INFO: ==1312== Releasing lock... [2024-12-17 13:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:25:34] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:26:05 [end_date_ymd] => 2024-12-17 13:26:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:26:05' and `end` < '2024-12-17 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-17 13:26:25] Production.INFO: count ==5284 [2024-12-17 13:26:27] Production.ERROR: pbx CDR StartTime 2024-12-17 10:26:05 - End Time 2024-12-17 13:26:05 [2024-12-17 13:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041108', 'tblTempUsageDetail_20' ) start [2024-12-17 13:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041108', 'tblTempUsageDetail_20' ) end [2024-12-17 13:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041108', 'tblTempVendorCDR_20' ) start [2024-12-17 13:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041108', 'tblTempVendorCDR_20' ) end [2024-12-17 13:26:28] Production.INFO: ProcessCDR(1,14041108,1,1,2) [2024-12-17 13:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041108', 'tblTempUsageDetail_20' ) start [2024-12-17 13:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041108', 'tblTempUsageDetail_20' ) end [2024-12-17 13:26:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:26:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:26:32] Production.INFO: ==1398== Releasing lock... [2024-12-17 13:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:26:32] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:27:04 [end_date_ymd] => 2024-12-17 13:27:04 [RateCDR] => 1 ) [2024-12-17 13: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 10:27:04' and `end` < '2024-12-17 13: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-17 13:27:22] Production.INFO: count ==5286 [2024-12-17 13:27:24] Production.ERROR: pbx CDR StartTime 2024-12-17 10:27:04 - End Time 2024-12-17 13:27:04 [2024-12-17 13:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041113', 'tblTempUsageDetail_20' ) start [2024-12-17 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041113', 'tblTempUsageDetail_20' ) end [2024-12-17 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041113', 'tblTempVendorCDR_20' ) start [2024-12-17 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041113', 'tblTempVendorCDR_20' ) end [2024-12-17 13:27:24] Production.INFO: ProcessCDR(1,14041113,1,1,2) [2024-12-17 13:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041113', 'tblTempUsageDetail_20' ) start [2024-12-17 13:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041113', 'tblTempUsageDetail_20' ) end [2024-12-17 13:27:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:27:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:27:29] Production.INFO: ==1474== Releasing lock... [2024-12-17 13:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:27:29] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:28:05 [end_date_ymd] => 2024-12-17 13:28:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:28:05' and `end` < '2024-12-17 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-17 13:28:23] Production.INFO: count ==5295 [2024-12-17 13:28:25] Production.ERROR: pbx CDR StartTime 2024-12-17 10:28:05 - End Time 2024-12-17 13:28:05 [2024-12-17 13:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041118', 'tblTempUsageDetail_20' ) start [2024-12-17 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041118', 'tblTempUsageDetail_20' ) end [2024-12-17 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041118', 'tblTempVendorCDR_20' ) start [2024-12-17 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041118', 'tblTempVendorCDR_20' ) end [2024-12-17 13:28:25] Production.INFO: ProcessCDR(1,14041118,1,1,2) [2024-12-17 13:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041118', 'tblTempUsageDetail_20' ) start [2024-12-17 13:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041118', 'tblTempUsageDetail_20' ) end [2024-12-17 13:28:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:28:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:28:30] Production.INFO: ==1592== Releasing lock... [2024-12-17 13:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:28:30] Production.INFO: 67.75 MB #Memory Used# [2024-12-17 13:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:29:04 [end_date_ymd] => 2024-12-17 13:29:04 [RateCDR] => 1 ) [2024-12-17 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-17 10:29:04' and `end` < '2024-12-17 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-17 13:29:20] Production.INFO: count ==5291 [2024-12-17 13:29:23] Production.ERROR: pbx CDR StartTime 2024-12-17 10:29:04 - End Time 2024-12-17 13:29:04 [2024-12-17 13:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041123', 'tblTempUsageDetail_20' ) start [2024-12-17 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041123', 'tblTempUsageDetail_20' ) end [2024-12-17 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041123', 'tblTempVendorCDR_20' ) start [2024-12-17 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041123', 'tblTempVendorCDR_20' ) end [2024-12-17 13:29:23] Production.INFO: ProcessCDR(1,14041123,1,1,2) [2024-12-17 13:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041123', 'tblTempUsageDetail_20' ) start [2024-12-17 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041123', 'tblTempUsageDetail_20' ) end [2024-12-17 13:29:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:29:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:29:27] Production.INFO: ==1670== Releasing lock... [2024-12-17 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:29:27] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:30:06 [end_date_ymd] => 2024-12-17 13:30:06 [RateCDR] => 1 ) [2024-12-17 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-17 10:30:06' and `end` < '2024-12-17 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-17 13:30:22] Production.INFO: count ==5295 [2024-12-17 13:30:25] Production.ERROR: pbx CDR StartTime 2024-12-17 10:30:06 - End Time 2024-12-17 13:30:06 [2024-12-17 13:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041129', 'tblTempUsageDetail_20' ) start [2024-12-17 13:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041129', 'tblTempUsageDetail_20' ) end [2024-12-17 13:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041129', 'tblTempVendorCDR_20' ) start [2024-12-17 13:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041129', 'tblTempVendorCDR_20' ) end [2024-12-17 13:30:25] Production.INFO: ProcessCDR(1,14041129,1,1,2) [2024-12-17 13:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041129', 'tblTempUsageDetail_20' ) start [2024-12-17 13:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041129', 'tblTempUsageDetail_20' ) end [2024-12-17 13:30:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:30:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:30:29] Production.INFO: ==1798== Releasing lock... [2024-12-17 13:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:30:29] Production.INFO: 67.75 MB #Memory Used# [2024-12-17 13:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:31:04 [end_date_ymd] => 2024-12-17 13:31:04 [RateCDR] => 1 ) [2024-12-17 13: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 10:31:04' and `end` < '2024-12-17 13: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-17 13:31:24] Production.INFO: count ==5342 [2024-12-17 13:31:26] Production.ERROR: pbx CDR StartTime 2024-12-17 10:31:04 - End Time 2024-12-17 13:31:04 [2024-12-17 13:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041134', 'tblTempUsageDetail_20' ) start [2024-12-17 13:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041134', 'tblTempUsageDetail_20' ) end [2024-12-17 13:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041134', 'tblTempVendorCDR_20' ) start [2024-12-17 13:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041134', 'tblTempVendorCDR_20' ) end [2024-12-17 13:31:27] Production.INFO: ProcessCDR(1,14041134,1,1,2) [2024-12-17 13:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041134', 'tblTempUsageDetail_20' ) start [2024-12-17 13:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041134', 'tblTempUsageDetail_20' ) end [2024-12-17 13:31:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:31:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:31:31] Production.INFO: ==1885== Releasing lock... [2024-12-17 13:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:31:31] Production.INFO: 68 MB #Memory Used# [2024-12-17 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:32:05 [end_date_ymd] => 2024-12-17 13:32:05 [RateCDR] => 1 ) [2024-12-17 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:32:05' and `end` < '2024-12-17 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:32:20] Production.INFO: count ==5336 [2024-12-17 13:32:22] Production.ERROR: pbx CDR StartTime 2024-12-17 10:32:05 - End Time 2024-12-17 13:32:05 [2024-12-17 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041139', 'tblTempUsageDetail_20' ) start [2024-12-17 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041139', 'tblTempUsageDetail_20' ) end [2024-12-17 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041139', 'tblTempVendorCDR_20' ) start [2024-12-17 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041139', 'tblTempVendorCDR_20' ) end [2024-12-17 13:32:23] Production.INFO: ProcessCDR(1,14041139,1,1,2) [2024-12-17 13:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041139', 'tblTempUsageDetail_20' ) start [2024-12-17 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041139', 'tblTempUsageDetail_20' ) end [2024-12-17 13:32:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:32:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:32:27] Production.INFO: ==1971== Releasing lock... [2024-12-17 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:32:27] Production.INFO: 68 MB #Memory Used# [2024-12-17 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:33:05 [end_date_ymd] => 2024-12-17 13:33:05 [RateCDR] => 1 ) [2024-12-17 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:33:05' and `end` < '2024-12-17 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:33:19] Production.INFO: count ==5322 [2024-12-17 13:33:22] Production.ERROR: pbx CDR StartTime 2024-12-17 10:33:05 - End Time 2024-12-17 13:33:05 [2024-12-17 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041144', 'tblTempUsageDetail_20' ) start [2024-12-17 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041144', 'tblTempUsageDetail_20' ) end [2024-12-17 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041144', 'tblTempVendorCDR_20' ) start [2024-12-17 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041144', 'tblTempVendorCDR_20' ) end [2024-12-17 13:33:22] Production.INFO: ProcessCDR(1,14041144,1,1,2) [2024-12-17 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041144', 'tblTempUsageDetail_20' ) start [2024-12-17 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041144', 'tblTempUsageDetail_20' ) end [2024-12-17 13:33:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:33:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:33:26] Production.INFO: ==2050== Releasing lock... [2024-12-17 13:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:33:26] Production.INFO: 67.75 MB #Memory Used# [2024-12-17 13:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:34:04 [end_date_ymd] => 2024-12-17 13:34:04 [RateCDR] => 1 ) [2024-12-17 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-17 10:34:04' and `end` < '2024-12-17 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-17 13:34:22] Production.INFO: count ==5333 [2024-12-17 13:34:24] Production.ERROR: pbx CDR StartTime 2024-12-17 10:34:04 - End Time 2024-12-17 13:34:04 [2024-12-17 13:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041149', 'tblTempUsageDetail_20' ) start [2024-12-17 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041149', 'tblTempUsageDetail_20' ) end [2024-12-17 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041149', 'tblTempVendorCDR_20' ) start [2024-12-17 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041149', 'tblTempVendorCDR_20' ) end [2024-12-17 13:34:25] Production.INFO: ProcessCDR(1,14041149,1,1,2) [2024-12-17 13:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041149', 'tblTempUsageDetail_20' ) start [2024-12-17 13:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041149', 'tblTempUsageDetail_20' ) end [2024-12-17 13:34:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:34:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:34:29] Production.INFO: ==2135== Releasing lock... [2024-12-17 13:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:34:29] Production.INFO: 68 MB #Memory Used# [2024-12-17 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:35:05 [end_date_ymd] => 2024-12-17 13:35:05 [RateCDR] => 1 ) [2024-12-17 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:35:05' and `end` < '2024-12-17 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:35:22] Production.INFO: count ==5336 [2024-12-17 13:35:24] Production.ERROR: pbx CDR StartTime 2024-12-17 10:35:05 - End Time 2024-12-17 13:35:05 [2024-12-17 13:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041154', 'tblTempUsageDetail_20' ) start [2024-12-17 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041154', 'tblTempUsageDetail_20' ) end [2024-12-17 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041154', 'tblTempVendorCDR_20' ) start [2024-12-17 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041154', 'tblTempVendorCDR_20' ) end [2024-12-17 13:35:24] Production.INFO: ProcessCDR(1,14041154,1,1,2) [2024-12-17 13:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041154', 'tblTempUsageDetail_20' ) start [2024-12-17 13:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041154', 'tblTempUsageDetail_20' ) end [2024-12-17 13:35:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:35:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:35:29] Production.INFO: ==2217== Releasing lock... [2024-12-17 13:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:35:29] Production.INFO: 68 MB #Memory Used# [2024-12-17 13:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:36:04 [end_date_ymd] => 2024-12-17 13:36:04 [RateCDR] => 1 ) [2024-12-17 13: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-17 10:36:04' and `end` < '2024-12-17 13: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-17 13:36:23] Production.INFO: count ==5327 [2024-12-17 13:36:25] Production.ERROR: pbx CDR StartTime 2024-12-17 10:36:04 - End Time 2024-12-17 13:36:04 [2024-12-17 13:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041159', 'tblTempUsageDetail_20' ) start [2024-12-17 13:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041159', 'tblTempUsageDetail_20' ) end [2024-12-17 13:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041159', 'tblTempVendorCDR_20' ) start [2024-12-17 13:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041159', 'tblTempVendorCDR_20' ) end [2024-12-17 13:36:25] Production.INFO: ProcessCDR(1,14041159,1,1,2) [2024-12-17 13:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041159', 'tblTempUsageDetail_20' ) start [2024-12-17 13:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041159', 'tblTempUsageDetail_20' ) end [2024-12-17 13:36:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:36:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:36:29] Production.INFO: ==2299== Releasing lock... [2024-12-17 13:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:36:29] Production.INFO: 68 MB #Memory Used# [2024-12-17 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:37:05 [end_date_ymd] => 2024-12-17 13:37:05 [RateCDR] => 1 ) [2024-12-17 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:37:05' and `end` < '2024-12-17 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:37:21] Production.INFO: count ==5319 [2024-12-17 13:37:23] Production.ERROR: pbx CDR StartTime 2024-12-17 10:37:05 - End Time 2024-12-17 13:37:05 [2024-12-17 13:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041164', 'tblTempUsageDetail_20' ) start [2024-12-17 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041164', 'tblTempUsageDetail_20' ) end [2024-12-17 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041164', 'tblTempVendorCDR_20' ) start [2024-12-17 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041164', 'tblTempVendorCDR_20' ) end [2024-12-17 13:37:24] Production.INFO: ProcessCDR(1,14041164,1,1,2) [2024-12-17 13:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041164', 'tblTempUsageDetail_20' ) start [2024-12-17 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041164', 'tblTempUsageDetail_20' ) end [2024-12-17 13:37:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:37:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:37:28] Production.INFO: ==2380== Releasing lock... [2024-12-17 13:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:37:28] Production.INFO: 67.75 MB #Memory Used# [2024-12-17 13:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:38:04 [end_date_ymd] => 2024-12-17 13:38:04 [RateCDR] => 1 ) [2024-12-17 13: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-17 10:38:04' and `end` < '2024-12-17 13: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-17 13:38:17] Production.INFO: count ==5296 [2024-12-17 13:38:19] Production.ERROR: pbx CDR StartTime 2024-12-17 10:38:04 - End Time 2024-12-17 13:38:04 [2024-12-17 13:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041169', 'tblTempUsageDetail_20' ) start [2024-12-17 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041169', 'tblTempUsageDetail_20' ) end [2024-12-17 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041169', 'tblTempVendorCDR_20' ) start [2024-12-17 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041169', 'tblTempVendorCDR_20' ) end [2024-12-17 13:38:20] Production.INFO: ProcessCDR(1,14041169,1,1,2) [2024-12-17 13:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041169', 'tblTempUsageDetail_20' ) start [2024-12-17 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041169', 'tblTempUsageDetail_20' ) end [2024-12-17 13:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:38:24] Production.INFO: ==2459== Releasing lock... [2024-12-17 13:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:38:24] Production.INFO: 67.75 MB #Memory Used# [2024-12-17 13:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:39:04 [end_date_ymd] => 2024-12-17 13:39:04 [RateCDR] => 1 ) [2024-12-17 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-17 10:39:04' and `end` < '2024-12-17 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-17 13:39:20] Production.INFO: count ==5298 [2024-12-17 13:39:22] Production.ERROR: pbx CDR StartTime 2024-12-17 10:39:04 - End Time 2024-12-17 13:39:04 [2024-12-17 13:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041174', 'tblTempUsageDetail_20' ) start [2024-12-17 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041174', 'tblTempUsageDetail_20' ) end [2024-12-17 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041174', 'tblTempVendorCDR_20' ) start [2024-12-17 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041174', 'tblTempVendorCDR_20' ) end [2024-12-17 13:39:22] Production.INFO: ProcessCDR(1,14041174,1,1,2) [2024-12-17 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041174', 'tblTempUsageDetail_20' ) start [2024-12-17 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041174', 'tblTempUsageDetail_20' ) end [2024-12-17 13:39:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:39:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:39:26] Production.INFO: ==2542== Releasing lock... [2024-12-17 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:39:26] Production.INFO: 67.75 MB #Memory Used# [2024-12-17 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:40:06 [end_date_ymd] => 2024-12-17 13:40:06 [RateCDR] => 1 ) [2024-12-17 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:40:06' and `end` < '2024-12-17 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:40:22] Production.INFO: count ==5294 [2024-12-17 13:40:24] Production.ERROR: pbx CDR StartTime 2024-12-17 10:40:06 - End Time 2024-12-17 13:40:06 [2024-12-17 13:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041179', 'tblTempUsageDetail_20' ) start [2024-12-17 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041179', 'tblTempUsageDetail_20' ) end [2024-12-17 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041179', 'tblTempVendorCDR_20' ) start [2024-12-17 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041179', 'tblTempVendorCDR_20' ) end [2024-12-17 13:40:24] Production.INFO: ProcessCDR(1,14041179,1,1,2) [2024-12-17 13:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041179', 'tblTempUsageDetail_20' ) start [2024-12-17 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041179', 'tblTempUsageDetail_20' ) end [2024-12-17 13:40:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:40:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:40:29] Production.INFO: ==2629== Releasing lock... [2024-12-17 13:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:40:29] Production.INFO: 67.75 MB #Memory Used# [2024-12-17 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:41:04 [end_date_ymd] => 2024-12-17 13:41:04 [RateCDR] => 1 ) [2024-12-17 13: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 10:41:04' and `end` < '2024-12-17 13: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-17 13:41:24] Production.INFO: count ==5273 [2024-12-17 13:41:26] Production.ERROR: pbx CDR StartTime 2024-12-17 10:41:04 - End Time 2024-12-17 13:41:04 [2024-12-17 13:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041185', 'tblTempUsageDetail_20' ) start [2024-12-17 13:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041185', 'tblTempUsageDetail_20' ) end [2024-12-17 13:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041185', 'tblTempVendorCDR_20' ) start [2024-12-17 13:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041185', 'tblTempVendorCDR_20' ) end [2024-12-17 13:41:26] Production.INFO: ProcessCDR(1,14041185,1,1,2) [2024-12-17 13:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041185', 'tblTempUsageDetail_20' ) start [2024-12-17 13:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041185', 'tblTempUsageDetail_20' ) end [2024-12-17 13:41:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:41:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:41:31] Production.INFO: ==2708== Releasing lock... [2024-12-17 13:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:41:31] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:42:05 [end_date_ymd] => 2024-12-17 13:42:05 [RateCDR] => 1 ) [2024-12-17 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:42:05' and `end` < '2024-12-17 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:42:24] Production.INFO: count ==5278 [2024-12-17 13:42:26] Production.ERROR: pbx CDR StartTime 2024-12-17 10:42:05 - End Time 2024-12-17 13:42:05 [2024-12-17 13:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041190', 'tblTempUsageDetail_20' ) start [2024-12-17 13:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041190', 'tblTempUsageDetail_20' ) end [2024-12-17 13:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041190', 'tblTempVendorCDR_20' ) start [2024-12-17 13:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041190', 'tblTempVendorCDR_20' ) end [2024-12-17 13:42:26] Production.INFO: ProcessCDR(1,14041190,1,1,2) [2024-12-17 13:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041190', 'tblTempUsageDetail_20' ) start [2024-12-17 13:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041190', 'tblTempUsageDetail_20' ) end [2024-12-17 13:42:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:42:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:42:31] Production.INFO: ==2788== Releasing lock... [2024-12-17 13:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:42:31] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:43:04 [end_date_ymd] => 2024-12-17 13:43:04 [RateCDR] => 1 ) [2024-12-17 13: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 10:43:04' and `end` < '2024-12-17 13: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-17 13:43:26] Production.INFO: count ==5294 [2024-12-17 13:43:28] Production.ERROR: pbx CDR StartTime 2024-12-17 10:43:04 - End Time 2024-12-17 13:43:04 [2024-12-17 13:43:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041195', 'tblTempUsageDetail_20' ) start [2024-12-17 13:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041195', 'tblTempUsageDetail_20' ) end [2024-12-17 13:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041195', 'tblTempVendorCDR_20' ) start [2024-12-17 13:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041195', 'tblTempVendorCDR_20' ) end [2024-12-17 13:43:28] Production.INFO: ProcessCDR(1,14041195,1,1,2) [2024-12-17 13:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:43:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:43:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:43:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041195', 'tblTempUsageDetail_20' ) start [2024-12-17 13:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041195', 'tblTempUsageDetail_20' ) end [2024-12-17 13:43:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:43:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:43:33] Production.INFO: ==2872== Releasing lock... [2024-12-17 13:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:43:33] Production.INFO: 67.75 MB #Memory Used# [2024-12-17 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:44:05 [end_date_ymd] => 2024-12-17 13:44:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:44:05' and `end` < '2024-12-17 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-17 13:44:23] Production.INFO: count ==5289 [2024-12-17 13:44:25] Production.ERROR: pbx CDR StartTime 2024-12-17 10:44:05 - End Time 2024-12-17 13:44:05 [2024-12-17 13:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041200', 'tblTempUsageDetail_20' ) start [2024-12-17 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041200', 'tblTempUsageDetail_20' ) end [2024-12-17 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041200', 'tblTempVendorCDR_20' ) start [2024-12-17 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041200', 'tblTempVendorCDR_20' ) end [2024-12-17 13:44:25] Production.INFO: ProcessCDR(1,14041200,1,1,2) [2024-12-17 13:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041200', 'tblTempUsageDetail_20' ) start [2024-12-17 13:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041200', 'tblTempUsageDetail_20' ) end [2024-12-17 13:44:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:44:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:44:30] Production.INFO: ==2952== Releasing lock... [2024-12-17 13:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:44:30] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:45:05 [end_date_ymd] => 2024-12-17 13:45:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:45:05' and `end` < '2024-12-17 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-17 13:45:19] Production.INFO: count ==5266 [2024-12-17 13:45:21] Production.ERROR: pbx CDR StartTime 2024-12-17 10:45:05 - End Time 2024-12-17 13:45:05 [2024-12-17 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041205', 'tblTempUsageDetail_20' ) start [2024-12-17 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041205', 'tblTempUsageDetail_20' ) end [2024-12-17 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041205', 'tblTempVendorCDR_20' ) start [2024-12-17 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041205', 'tblTempVendorCDR_20' ) end [2024-12-17 13:45:21] Production.INFO: ProcessCDR(1,14041205,1,1,2) [2024-12-17 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041205', 'tblTempUsageDetail_20' ) start [2024-12-17 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041205', 'tblTempUsageDetail_20' ) end [2024-12-17 13:45:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:45:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:45:26] Production.INFO: ==3038== Releasing lock... [2024-12-17 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:45:26] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:46:04 [end_date_ymd] => 2024-12-17 13:46:04 [RateCDR] => 1 ) [2024-12-17 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-17 10:46:04' and `end` < '2024-12-17 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-17 13:46:21] Production.INFO: count ==5254 [2024-12-17 13:46:23] Production.ERROR: pbx CDR StartTime 2024-12-17 10:46:04 - End Time 2024-12-17 13:46:04 [2024-12-17 13:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041210', 'tblTempUsageDetail_20' ) start [2024-12-17 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041210', 'tblTempUsageDetail_20' ) end [2024-12-17 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041210', 'tblTempVendorCDR_20' ) start [2024-12-17 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041210', 'tblTempVendorCDR_20' ) end [2024-12-17 13:46:23] Production.INFO: ProcessCDR(1,14041210,1,1,2) [2024-12-17 13:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041210', 'tblTempUsageDetail_20' ) start [2024-12-17 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041210', 'tblTempUsageDetail_20' ) end [2024-12-17 13:46:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:46:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:46:28] Production.INFO: ==3158== Releasing lock... [2024-12-17 13:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:46:28] Production.INFO: 67.25 MB #Memory Used# [2024-12-17 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:47:05 [end_date_ymd] => 2024-12-17 13:47:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:47:05' and `end` < '2024-12-17 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-17 13:47:20] Production.INFO: count ==5269 [2024-12-17 13:47:22] Production.ERROR: pbx CDR StartTime 2024-12-17 10:47:05 - End Time 2024-12-17 13:47:05 [2024-12-17 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041215', 'tblTempUsageDetail_20' ) start [2024-12-17 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041215', 'tblTempUsageDetail_20' ) end [2024-12-17 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041215', 'tblTempVendorCDR_20' ) start [2024-12-17 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041215', 'tblTempVendorCDR_20' ) end [2024-12-17 13:47:22] Production.INFO: ProcessCDR(1,14041215,1,1,2) [2024-12-17 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041215', 'tblTempUsageDetail_20' ) start [2024-12-17 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041215', 'tblTempUsageDetail_20' ) end [2024-12-17 13:47:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:47:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:47:27] Production.INFO: ==3242== Releasing lock... [2024-12-17 13:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:47:27] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:48:05 [end_date_ymd] => 2024-12-17 13:48:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:48:05' and `end` < '2024-12-17 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-17 13:48:19] Production.INFO: count ==5264 [2024-12-17 13:48:21] Production.ERROR: pbx CDR StartTime 2024-12-17 10:48:05 - End Time 2024-12-17 13:48:05 [2024-12-17 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041220', 'tblTempUsageDetail_20' ) start [2024-12-17 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041220', 'tblTempUsageDetail_20' ) end [2024-12-17 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041220', 'tblTempVendorCDR_20' ) start [2024-12-17 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041220', 'tblTempVendorCDR_20' ) end [2024-12-17 13:48:21] Production.INFO: ProcessCDR(1,14041220,1,1,2) [2024-12-17 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041220', 'tblTempUsageDetail_20' ) start [2024-12-17 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041220', 'tblTempUsageDetail_20' ) end [2024-12-17 13:48:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:48:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:48:26] Production.INFO: ==3326== Releasing lock... [2024-12-17 13:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:48:26] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:49:05 [end_date_ymd] => 2024-12-17 13:49:05 [RateCDR] => 1 ) [2024-12-17 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:49:05' and `end` < '2024-12-17 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:49:24] Production.INFO: count ==5269 [2024-12-17 13:49:26] Production.ERROR: pbx CDR StartTime 2024-12-17 10:49:05 - End Time 2024-12-17 13:49:05 [2024-12-17 13:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041225', 'tblTempUsageDetail_20' ) start [2024-12-17 13:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041225', 'tblTempUsageDetail_20' ) end [2024-12-17 13:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041225', 'tblTempVendorCDR_20' ) start [2024-12-17 13:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041225', 'tblTempVendorCDR_20' ) end [2024-12-17 13:49:26] Production.INFO: ProcessCDR(1,14041225,1,1,2) [2024-12-17 13:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041225', 'tblTempUsageDetail_20' ) start [2024-12-17 13:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041225', 'tblTempUsageDetail_20' ) end [2024-12-17 13:49:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:49:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:49:31] Production.INFO: ==3406== Releasing lock... [2024-12-17 13:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:49:31] Production.INFO: 67.5 MB #Memory Used# [2024-12-17 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:50:05 [end_date_ymd] => 2024-12-17 13:50:05 [RateCDR] => 1 ) [2024-12-17 13:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:50:05' and `end` < '2024-12-17 13:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:50:29] Production.INFO: count ==5248 [2024-12-17 13:50:31] Production.ERROR: pbx CDR StartTime 2024-12-17 10:50:05 - End Time 2024-12-17 13:50:05 [2024-12-17 13:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041231', 'tblTempUsageDetail_20' ) start [2024-12-17 13:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041231', 'tblTempUsageDetail_20' ) end [2024-12-17 13:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041231', 'tblTempVendorCDR_20' ) start [2024-12-17 13:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041231', 'tblTempVendorCDR_20' ) end [2024-12-17 13:50:31] Production.INFO: ProcessCDR(1,14041231,1,1,2) [2024-12-17 13:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041231', 'tblTempUsageDetail_20' ) start [2024-12-17 13:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041231', 'tblTempUsageDetail_20' ) end [2024-12-17 13:50:35] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:50:35] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:50:35] Production.INFO: ==3488== Releasing lock... [2024-12-17 13:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:50:35] Production.INFO: 67.25 MB #Memory Used# [2024-12-17 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:51:05 [end_date_ymd] => 2024-12-17 13:51:05 [RateCDR] => 1 ) [2024-12-17 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:51:05' and `end` < '2024-12-17 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:51:22] Production.INFO: count ==5185 [2024-12-17 13:51:24] Production.ERROR: pbx CDR StartTime 2024-12-17 10:51:05 - End Time 2024-12-17 13:51:05 [2024-12-17 13:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041236', 'tblTempUsageDetail_20' ) start [2024-12-17 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041236', 'tblTempUsageDetail_20' ) end [2024-12-17 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041236', 'tblTempVendorCDR_20' ) start [2024-12-17 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041236', 'tblTempVendorCDR_20' ) end [2024-12-17 13:51:24] Production.INFO: ProcessCDR(1,14041236,1,1,2) [2024-12-17 13:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041236', 'tblTempUsageDetail_20' ) start [2024-12-17 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041236', 'tblTempUsageDetail_20' ) end [2024-12-17 13:51:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:51:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:51:28] Production.INFO: ==3573== Releasing lock... [2024-12-17 13:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:51:28] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 13:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:52:04 [end_date_ymd] => 2024-12-17 13:52:04 [RateCDR] => 1 ) [2024-12-17 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-17 10:52:04' and `end` < '2024-12-17 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-17 13:52:25] Production.INFO: count ==5182 [2024-12-17 13:52:27] Production.ERROR: pbx CDR StartTime 2024-12-17 10:52:04 - End Time 2024-12-17 13:52:04 [2024-12-17 13:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041241', 'tblTempUsageDetail_20' ) start [2024-12-17 13:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041241', 'tblTempUsageDetail_20' ) end [2024-12-17 13:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041241', 'tblTempVendorCDR_20' ) start [2024-12-17 13:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041241', 'tblTempVendorCDR_20' ) end [2024-12-17 13:52:27] Production.INFO: ProcessCDR(1,14041241,1,1,2) [2024-12-17 13:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041241', 'tblTempUsageDetail_20' ) start [2024-12-17 13:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041241', 'tblTempUsageDetail_20' ) end [2024-12-17 13:52:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:52:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:52:32] Production.INFO: ==3661== Releasing lock... [2024-12-17 13:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:52:32] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:53:05 [end_date_ymd] => 2024-12-17 13:53:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:53:05' and `end` < '2024-12-17 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-17 13:53:25] Production.INFO: count ==5196 [2024-12-17 13:53:27] Production.ERROR: pbx CDR StartTime 2024-12-17 10:53:05 - End Time 2024-12-17 13:53:05 [2024-12-17 13:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041246', 'tblTempUsageDetail_20' ) start [2024-12-17 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041246', 'tblTempUsageDetail_20' ) end [2024-12-17 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041246', 'tblTempVendorCDR_20' ) start [2024-12-17 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041246', 'tblTempVendorCDR_20' ) end [2024-12-17 13:53:27] Production.INFO: ProcessCDR(1,14041246,1,1,2) [2024-12-17 13:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041246', 'tblTempUsageDetail_20' ) start [2024-12-17 13:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041246', 'tblTempUsageDetail_20' ) end [2024-12-17 13:53:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:53:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:53:32] Production.INFO: ==3741== Releasing lock... [2024-12-17 13:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:53:32] Production.INFO: 67 MB #Memory Used# [2024-12-17 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:54:05 [end_date_ymd] => 2024-12-17 13:54:05 [RateCDR] => 1 ) [2024-12-17 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:54:05' and `end` < '2024-12-17 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:54:20] Production.INFO: count ==5175 [2024-12-17 13:54:22] Production.ERROR: pbx CDR StartTime 2024-12-17 10:54:05 - End Time 2024-12-17 13:54:05 [2024-12-17 13:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041251', 'tblTempUsageDetail_20' ) start [2024-12-17 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041251', 'tblTempUsageDetail_20' ) end [2024-12-17 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041251', 'tblTempVendorCDR_20' ) start [2024-12-17 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041251', 'tblTempVendorCDR_20' ) end [2024-12-17 13:54:22] Production.INFO: ProcessCDR(1,14041251,1,1,2) [2024-12-17 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041251', 'tblTempUsageDetail_20' ) start [2024-12-17 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041251', 'tblTempUsageDetail_20' ) end [2024-12-17 13:54:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:54:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:54:27] Production.INFO: ==3823== Releasing lock... [2024-12-17 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:54:27] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:55:05 [end_date_ymd] => 2024-12-17 13:55:05 [RateCDR] => 1 ) [2024-12-17 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 10:55:05' and `end` < '2024-12-17 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 13:55:18] Production.INFO: count ==5145 [2024-12-17 13:55:20] Production.ERROR: pbx CDR StartTime 2024-12-17 10:55:05 - End Time 2024-12-17 13:55:05 [2024-12-17 13:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041256', 'tblTempUsageDetail_20' ) start [2024-12-17 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041256', 'tblTempUsageDetail_20' ) end [2024-12-17 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041256', 'tblTempVendorCDR_20' ) start [2024-12-17 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041256', 'tblTempVendorCDR_20' ) end [2024-12-17 13:55:20] Production.INFO: ProcessCDR(1,14041256,1,1,2) [2024-12-17 13:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041256', 'tblTempUsageDetail_20' ) start [2024-12-17 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041256', 'tblTempUsageDetail_20' ) end [2024-12-17 13:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:55:24] Production.INFO: ==3907== Releasing lock... [2024-12-17 13:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:55:24] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:56:05 [end_date_ymd] => 2024-12-17 13:56:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:56:05' and `end` < '2024-12-17 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-17 13:56:24] Production.INFO: count ==5133 [2024-12-17 13:56:26] Production.ERROR: pbx CDR StartTime 2024-12-17 10:56:05 - End Time 2024-12-17 13:56:05 [2024-12-17 13:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041261', 'tblTempUsageDetail_20' ) start [2024-12-17 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041261', 'tblTempUsageDetail_20' ) end [2024-12-17 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041261', 'tblTempVendorCDR_20' ) start [2024-12-17 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041261', 'tblTempVendorCDR_20' ) end [2024-12-17 13:56:26] Production.INFO: ProcessCDR(1,14041261,1,1,2) [2024-12-17 13:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041261', 'tblTempUsageDetail_20' ) start [2024-12-17 13:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041261', 'tblTempUsageDetail_20' ) end [2024-12-17 13:56:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:56:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:56:31] Production.INFO: ==3990== Releasing lock... [2024-12-17 13:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:56:31] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 13:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:57:04 [end_date_ymd] => 2024-12-17 13:57:04 [RateCDR] => 1 ) [2024-12-17 13: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 10:57:04' and `end` < '2024-12-17 13: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-17 13:57:21] Production.INFO: count ==5112 [2024-12-17 13:57:23] Production.ERROR: pbx CDR StartTime 2024-12-17 10:57:04 - End Time 2024-12-17 13:57:04 [2024-12-17 13:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041266', 'tblTempUsageDetail_20' ) start [2024-12-17 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041266', 'tblTempUsageDetail_20' ) end [2024-12-17 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041266', 'tblTempVendorCDR_20' ) start [2024-12-17 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041266', 'tblTempVendorCDR_20' ) end [2024-12-17 13:57:23] Production.INFO: ProcessCDR(1,14041266,1,1,2) [2024-12-17 13:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041266', 'tblTempUsageDetail_20' ) start [2024-12-17 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041266', 'tblTempUsageDetail_20' ) end [2024-12-17 13:57:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:57:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:57:28] Production.INFO: ==4073== Releasing lock... [2024-12-17 13:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:57:28] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:58:05 [end_date_ymd] => 2024-12-17 13:58:05 [RateCDR] => 1 ) [2024-12-17 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-17 10:58:05' and `end` < '2024-12-17 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-17 13:58:19] Production.INFO: count ==5123 [2024-12-17 13:58:21] Production.ERROR: pbx CDR StartTime 2024-12-17 10:58:05 - End Time 2024-12-17 13:58:05 [2024-12-17 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041271', 'tblTempUsageDetail_20' ) start [2024-12-17 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041271', 'tblTempUsageDetail_20' ) end [2024-12-17 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041271', 'tblTempVendorCDR_20' ) start [2024-12-17 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041271', 'tblTempVendorCDR_20' ) end [2024-12-17 13:58:21] Production.INFO: ProcessCDR(1,14041271,1,1,2) [2024-12-17 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041271', 'tblTempUsageDetail_20' ) start [2024-12-17 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041271', 'tblTempUsageDetail_20' ) end [2024-12-17 13:58:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:58:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:58:26] Production.INFO: ==4151== Releasing lock... [2024-12-17 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:58:26] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 13:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 10:59:04 [end_date_ymd] => 2024-12-17 13:59:04 [RateCDR] => 1 ) [2024-12-17 13: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 10:59:04' and `end` < '2024-12-17 13: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-17 13:59:23] Production.INFO: count ==5129 [2024-12-17 13:59:25] Production.ERROR: pbx CDR StartTime 2024-12-17 10:59:04 - End Time 2024-12-17 13:59:04 [2024-12-17 13:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 13:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041276', 'tblTempUsageDetail_20' ) start [2024-12-17 13:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041276', 'tblTempUsageDetail_20' ) end [2024-12-17 13:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041276', 'tblTempVendorCDR_20' ) start [2024-12-17 13:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041276', 'tblTempVendorCDR_20' ) end [2024-12-17 13:59:25] Production.INFO: ProcessCDR(1,14041276,1,1,2) [2024-12-17 13:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 13:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 13:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041276', 'tblTempUsageDetail_20' ) start [2024-12-17 13:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041276', 'tblTempUsageDetail_20' ) end [2024-12-17 13:59:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 13:59:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 13:59:30] Production.INFO: ==4241== Releasing lock... [2024-12-17 13:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 13:59:30] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:00:05 [end_date_ymd] => 2024-12-17 14:00:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:00:05' and `end` < '2024-12-17 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-17 14:00:33] Production.INFO: count ==5150 [2024-12-17 14:00:35] Production.ERROR: pbx CDR StartTime 2024-12-17 11:00:05 - End Time 2024-12-17 14:00:05 [2024-12-17 14:00:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041282', 'tblTempUsageDetail_20' ) start [2024-12-17 14:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041282', 'tblTempUsageDetail_20' ) end [2024-12-17 14:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041282', 'tblTempVendorCDR_20' ) start [2024-12-17 14:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041282', 'tblTempVendorCDR_20' ) end [2024-12-17 14:00:35] Production.INFO: ProcessCDR(1,14041282,1,1,2) [2024-12-17 14:00:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:00:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:00:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:00:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041282', 'tblTempUsageDetail_20' ) start [2024-12-17 14:00:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041282', 'tblTempUsageDetail_20' ) end [2024-12-17 14:00:40] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:00:40] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:00:40] Production.INFO: ==4328== Releasing lock... [2024-12-17 14:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:00:40] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:01:05 [end_date_ymd] => 2024-12-17 14:01:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:01:05' and `end` < '2024-12-17 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-17 14:01:35] Production.INFO: count ==5126 [2024-12-17 14:01:37] Production.ERROR: pbx CDR StartTime 2024-12-17 11:01:05 - End Time 2024-12-17 14:01:05 [2024-12-17 14:01:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041287', 'tblTempUsageDetail_20' ) start [2024-12-17 14:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041287', 'tblTempUsageDetail_20' ) end [2024-12-17 14:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041287', 'tblTempVendorCDR_20' ) start [2024-12-17 14:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041287', 'tblTempVendorCDR_20' ) end [2024-12-17 14:01:37] Production.INFO: ProcessCDR(1,14041287,1,1,2) [2024-12-17 14:01:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:01:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:01:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:01:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:01:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041287', 'tblTempUsageDetail_20' ) start [2024-12-17 14:01:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041287', 'tblTempUsageDetail_20' ) end [2024-12-17 14:01:42] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:01:42] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:01:42] Production.INFO: ==4459== Releasing lock... [2024-12-17 14:01:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:01:42] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:02:04 [end_date_ymd] => 2024-12-17 14:02:04 [RateCDR] => 1 ) [2024-12-17 14: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 11:02:04' and `end` < '2024-12-17 14: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-17 14:02:22] Production.INFO: count ==5123 [2024-12-17 14:02:24] Production.ERROR: pbx CDR StartTime 2024-12-17 11:02:04 - End Time 2024-12-17 14:02:04 [2024-12-17 14:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041292', 'tblTempUsageDetail_20' ) start [2024-12-17 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041292', 'tblTempUsageDetail_20' ) end [2024-12-17 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041292', 'tblTempVendorCDR_20' ) start [2024-12-17 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041292', 'tblTempVendorCDR_20' ) end [2024-12-17 14:02:24] Production.INFO: ProcessCDR(1,14041292,1,1,2) [2024-12-17 14:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041292', 'tblTempUsageDetail_20' ) start [2024-12-17 14:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041292', 'tblTempUsageDetail_20' ) end [2024-12-17 14:02:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:02:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:02:29] Production.INFO: ==4540== Releasing lock... [2024-12-17 14:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:02:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:03:05 [end_date_ymd] => 2024-12-17 14:03:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:03:05' and `end` < '2024-12-17 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-17 14:03:32] Production.INFO: count ==5129 [2024-12-17 14:03:34] Production.ERROR: pbx CDR StartTime 2024-12-17 11:03:05 - End Time 2024-12-17 14:03:05 [2024-12-17 14:03:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041297', 'tblTempUsageDetail_20' ) start [2024-12-17 14:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041297', 'tblTempUsageDetail_20' ) end [2024-12-17 14:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041297', 'tblTempVendorCDR_20' ) start [2024-12-17 14:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041297', 'tblTempVendorCDR_20' ) end [2024-12-17 14:03:34] Production.INFO: ProcessCDR(1,14041297,1,1,2) [2024-12-17 14:03:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:03:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:03:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:03:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:03:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041297', 'tblTempUsageDetail_20' ) start [2024-12-17 14:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041297', 'tblTempUsageDetail_20' ) end [2024-12-17 14:03:39] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:03:39] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:03:39] Production.INFO: ==4627== Releasing lock... [2024-12-17 14:03:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:03:39] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:04:04 [end_date_ymd] => 2024-12-17 14:04:04 [RateCDR] => 1 ) [2024-12-17 14: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 11:04:04' and `end` < '2024-12-17 14: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-17 14:04:23] Production.INFO: count ==5122 [2024-12-17 14:04:25] Production.ERROR: pbx CDR StartTime 2024-12-17 11:04:04 - End Time 2024-12-17 14:04:04 [2024-12-17 14:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041302', 'tblTempUsageDetail_20' ) start [2024-12-17 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041302', 'tblTempUsageDetail_20' ) end [2024-12-17 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041302', 'tblTempVendorCDR_20' ) start [2024-12-17 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041302', 'tblTempVendorCDR_20' ) end [2024-12-17 14:04:25] Production.INFO: ProcessCDR(1,14041302,1,1,2) [2024-12-17 14:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041302', 'tblTempUsageDetail_20' ) start [2024-12-17 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041302', 'tblTempUsageDetail_20' ) end [2024-12-17 14:04:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:04:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:04:30] Production.INFO: ==4706== Releasing lock... [2024-12-17 14:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:04:30] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:05:05 [end_date_ymd] => 2024-12-17 14:05:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:05:05' and `end` < '2024-12-17 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-17 14:05:23] Production.INFO: count ==5101 [2024-12-17 14:05:25] Production.ERROR: pbx CDR StartTime 2024-12-17 11:05:05 - End Time 2024-12-17 14:05:05 [2024-12-17 14:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041307', 'tblTempUsageDetail_20' ) start [2024-12-17 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041307', 'tblTempUsageDetail_20' ) end [2024-12-17 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041307', 'tblTempVendorCDR_20' ) start [2024-12-17 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041307', 'tblTempVendorCDR_20' ) end [2024-12-17 14:05:25] Production.INFO: ProcessCDR(1,14041307,1,1,2) [2024-12-17 14:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041307', 'tblTempUsageDetail_20' ) start [2024-12-17 14:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041307', 'tblTempUsageDetail_20' ) end [2024-12-17 14:05:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:05:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:05:30] Production.INFO: ==4790== Releasing lock... [2024-12-17 14:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:05:30] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:06:04 [end_date_ymd] => 2024-12-17 14:06:04 [RateCDR] => 1 ) [2024-12-17 14: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 11:06:04' and `end` < '2024-12-17 14: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-17 14:06:19] Production.INFO: count ==5126 [2024-12-17 14:06:20] Production.ERROR: pbx CDR StartTime 2024-12-17 11:06:04 - End Time 2024-12-17 14:06:04 [2024-12-17 14:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041312', 'tblTempUsageDetail_20' ) start [2024-12-17 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041312', 'tblTempUsageDetail_20' ) end [2024-12-17 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041312', 'tblTempVendorCDR_20' ) start [2024-12-17 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041312', 'tblTempVendorCDR_20' ) end [2024-12-17 14:06:21] Production.INFO: ProcessCDR(1,14041312,1,1,2) [2024-12-17 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041312', 'tblTempUsageDetail_20' ) start [2024-12-17 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041312', 'tblTempUsageDetail_20' ) end [2024-12-17 14:06:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:06:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:06:25] Production.INFO: ==4867== Releasing lock... [2024-12-17 14:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:06:25] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:07:04 [end_date_ymd] => 2024-12-17 14:07:04 [RateCDR] => 1 ) [2024-12-17 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-17 11:07:04' and `end` < '2024-12-17 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-17 14:07:22] Production.INFO: count ==5118 [2024-12-17 14:07:24] Production.ERROR: pbx CDR StartTime 2024-12-17 11:07:04 - End Time 2024-12-17 14:07:04 [2024-12-17 14:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041317', 'tblTempUsageDetail_20' ) start [2024-12-17 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041317', 'tblTempUsageDetail_20' ) end [2024-12-17 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041317', 'tblTempVendorCDR_20' ) start [2024-12-17 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041317', 'tblTempVendorCDR_20' ) end [2024-12-17 14:07:25] Production.INFO: ProcessCDR(1,14041317,1,1,2) [2024-12-17 14:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041317', 'tblTempUsageDetail_20' ) start [2024-12-17 14:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041317', 'tblTempUsageDetail_20' ) end [2024-12-17 14:07:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:07:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:07:29] Production.INFO: ==4945== Releasing lock... [2024-12-17 14:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:07:29] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:08:05 [end_date_ymd] => 2024-12-17 14:08:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:08:05' and `end` < '2024-12-17 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-17 14:08:19] Production.INFO: count ==5122 [2024-12-17 14:08:21] Production.ERROR: pbx CDR StartTime 2024-12-17 11:08:05 - End Time 2024-12-17 14:08:05 [2024-12-17 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041322', 'tblTempUsageDetail_20' ) start [2024-12-17 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041322', 'tblTempUsageDetail_20' ) end [2024-12-17 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041322', 'tblTempVendorCDR_20' ) start [2024-12-17 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041322', 'tblTempVendorCDR_20' ) end [2024-12-17 14:08:21] Production.INFO: ProcessCDR(1,14041322,1,1,2) [2024-12-17 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041322', 'tblTempUsageDetail_20' ) start [2024-12-17 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041322', 'tblTempUsageDetail_20' ) end [2024-12-17 14:08:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:08:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:08:26] Production.INFO: ==5024== Releasing lock... [2024-12-17 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:08:26] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:09:05 [end_date_ymd] => 2024-12-17 14:09:05 [RateCDR] => 1 ) [2024-12-17 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:09:05' and `end` < '2024-12-17 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:09:18] Production.INFO: count ==5119 [2024-12-17 14:09:20] Production.ERROR: pbx CDR StartTime 2024-12-17 11:09:05 - End Time 2024-12-17 14:09:05 [2024-12-17 14:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041327', 'tblTempUsageDetail_20' ) start [2024-12-17 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041327', 'tblTempUsageDetail_20' ) end [2024-12-17 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041327', 'tblTempVendorCDR_20' ) start [2024-12-17 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041327', 'tblTempVendorCDR_20' ) end [2024-12-17 14:09:20] Production.INFO: ProcessCDR(1,14041327,1,1,2) [2024-12-17 14:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041327', 'tblTempUsageDetail_20' ) start [2024-12-17 14:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041327', 'tblTempUsageDetail_20' ) end [2024-12-17 14:09:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:09:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:09:25] Production.INFO: ==5103== Releasing lock... [2024-12-17 14:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:09:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:10:05 [end_date_ymd] => 2024-12-17 14:10:05 [RateCDR] => 1 ) [2024-12-17 14: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 11:10:05' and `end` < '2024-12-17 14:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:10:32] Production.INFO: count ==5116 [2024-12-17 14:10:33] Production.ERROR: pbx CDR StartTime 2024-12-17 11:10:05 - End Time 2024-12-17 14:10:05 [2024-12-17 14:10:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041332', 'tblTempUsageDetail_20' ) start [2024-12-17 14:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041332', 'tblTempUsageDetail_20' ) end [2024-12-17 14:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041332', 'tblTempVendorCDR_20' ) start [2024-12-17 14:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041332', 'tblTempVendorCDR_20' ) end [2024-12-17 14:10:34] Production.INFO: ProcessCDR(1,14041332,1,1,2) [2024-12-17 14:10:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:10:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:10:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:10:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041332', 'tblTempUsageDetail_20' ) start [2024-12-17 14:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041332', 'tblTempUsageDetail_20' ) end [2024-12-17 14:10:38] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:10:38] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:10:38] Production.INFO: ==5188== Releasing lock... [2024-12-17 14:10:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:10:38] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:11:04 [end_date_ymd] => 2024-12-17 14:11:04 [RateCDR] => 1 ) [2024-12-17 14: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 11:11:04' and `end` < '2024-12-17 14: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-17 14:11:24] Production.INFO: count ==5099 [2024-12-17 14:11:26] Production.ERROR: pbx CDR StartTime 2024-12-17 11:11:04 - End Time 2024-12-17 14:11:04 [2024-12-17 14:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041338', 'tblTempUsageDetail_20' ) start [2024-12-17 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041338', 'tblTempUsageDetail_20' ) end [2024-12-17 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041338', 'tblTempVendorCDR_20' ) start [2024-12-17 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041338', 'tblTempVendorCDR_20' ) end [2024-12-17 14:11:26] Production.INFO: ProcessCDR(1,14041338,1,1,2) [2024-12-17 14:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041338', 'tblTempUsageDetail_20' ) start [2024-12-17 14:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041338', 'tblTempUsageDetail_20' ) end [2024-12-17 14:11:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:11:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:11:30] Production.INFO: ==5261== Releasing lock... [2024-12-17 14:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:11:30] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:12:04 [end_date_ymd] => 2024-12-17 14:12:04 [RateCDR] => 1 ) [2024-12-17 14: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-17 11:12:04' and `end` < '2024-12-17 14: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-17 14:12:22] Production.INFO: count ==5102 [2024-12-17 14:12:24] Production.ERROR: pbx CDR StartTime 2024-12-17 11:12:04 - End Time 2024-12-17 14:12:04 [2024-12-17 14:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041343', 'tblTempUsageDetail_20' ) start [2024-12-17 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041343', 'tblTempUsageDetail_20' ) end [2024-12-17 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041343', 'tblTempVendorCDR_20' ) start [2024-12-17 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041343', 'tblTempVendorCDR_20' ) end [2024-12-17 14:12:24] Production.INFO: ProcessCDR(1,14041343,1,1,2) [2024-12-17 14:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041343', 'tblTempUsageDetail_20' ) start [2024-12-17 14:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041343', 'tblTempUsageDetail_20' ) end [2024-12-17 14:12:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:12:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:12:29] Production.INFO: ==5340== Releasing lock... [2024-12-17 14:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:12:29] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:13:05 [end_date_ymd] => 2024-12-17 14:13:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:13:05' and `end` < '2024-12-17 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-17 14:13:23] Production.INFO: count ==5126 [2024-12-17 14:13:25] Production.ERROR: pbx CDR StartTime 2024-12-17 11:13:05 - End Time 2024-12-17 14:13:05 [2024-12-17 14:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041348', 'tblTempUsageDetail_20' ) start [2024-12-17 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041348', 'tblTempUsageDetail_20' ) end [2024-12-17 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041348', 'tblTempVendorCDR_20' ) start [2024-12-17 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041348', 'tblTempVendorCDR_20' ) end [2024-12-17 14:13:25] Production.INFO: ProcessCDR(1,14041348,1,1,2) [2024-12-17 14:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041348', 'tblTempUsageDetail_20' ) start [2024-12-17 14:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041348', 'tblTempUsageDetail_20' ) end [2024-12-17 14:13:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:13:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:13:30] Production.INFO: ==5413== Releasing lock... [2024-12-17 14:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:13:30] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:14:05 [end_date_ymd] => 2024-12-17 14:14:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:14:05' and `end` < '2024-12-17 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-17 14:14:22] Production.INFO: count ==5105 [2024-12-17 14:14:24] Production.ERROR: pbx CDR StartTime 2024-12-17 11:14:05 - End Time 2024-12-17 14:14:05 [2024-12-17 14:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041353', 'tblTempUsageDetail_20' ) start [2024-12-17 14:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041353', 'tblTempUsageDetail_20' ) end [2024-12-17 14:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041353', 'tblTempVendorCDR_20' ) start [2024-12-17 14:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041353', 'tblTempVendorCDR_20' ) end [2024-12-17 14:14:24] Production.INFO: ProcessCDR(1,14041353,1,1,2) [2024-12-17 14:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041353', 'tblTempUsageDetail_20' ) start [2024-12-17 14:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041353', 'tblTempUsageDetail_20' ) end [2024-12-17 14:14:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:14:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:14:29] Production.INFO: ==5491== Releasing lock... [2024-12-17 14:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:14:29] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:15:05 [end_date_ymd] => 2024-12-17 14:15:05 [RateCDR] => 1 ) [2024-12-17 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:15:05' and `end` < '2024-12-17 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:15:27] Production.INFO: count ==5101 [2024-12-17 14:15:29] Production.ERROR: pbx CDR StartTime 2024-12-17 11:15:05 - End Time 2024-12-17 14:15:05 [2024-12-17 14:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041358', 'tblTempUsageDetail_20' ) start [2024-12-17 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041358', 'tblTempUsageDetail_20' ) end [2024-12-17 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041358', 'tblTempVendorCDR_20' ) start [2024-12-17 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041358', 'tblTempVendorCDR_20' ) end [2024-12-17 14:15:30] Production.INFO: ProcessCDR(1,14041358,1,1,2) [2024-12-17 14:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041358', 'tblTempUsageDetail_20' ) start [2024-12-17 14:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041358', 'tblTempUsageDetail_20' ) end [2024-12-17 14:15:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:15:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:15:34] Production.INFO: ==5566== Releasing lock... [2024-12-17 14:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:15:34] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:16:05 [end_date_ymd] => 2024-12-17 14:16:05 [RateCDR] => 1 ) [2024-12-17 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:16:05' and `end` < '2024-12-17 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:16:22] Production.INFO: count ==5122 [2024-12-17 14:16:24] Production.ERROR: pbx CDR StartTime 2024-12-17 11:16:05 - End Time 2024-12-17 14:16:05 [2024-12-17 14:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041363', 'tblTempUsageDetail_20' ) start [2024-12-17 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041363', 'tblTempUsageDetail_20' ) end [2024-12-17 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041363', 'tblTempVendorCDR_20' ) start [2024-12-17 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041363', 'tblTempVendorCDR_20' ) end [2024-12-17 14:16:24] Production.INFO: ProcessCDR(1,14041363,1,1,2) [2024-12-17 14:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041363', 'tblTempUsageDetail_20' ) start [2024-12-17 14:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041363', 'tblTempUsageDetail_20' ) end [2024-12-17 14:16:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:16:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:16:29] Production.INFO: ==5637== Releasing lock... [2024-12-17 14:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:16:29] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:17:04 [end_date_ymd] => 2024-12-17 14:17:04 [RateCDR] => 1 ) [2024-12-17 14:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:17:04' and `end` < '2024-12-17 14:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:17:19] Production.INFO: count ==5117 [2024-12-17 14:17:21] Production.ERROR: pbx CDR StartTime 2024-12-17 11:17:04 - End Time 2024-12-17 14:17:04 [2024-12-17 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041368', 'tblTempUsageDetail_20' ) start [2024-12-17 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041368', 'tblTempUsageDetail_20' ) end [2024-12-17 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041368', 'tblTempVendorCDR_20' ) start [2024-12-17 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041368', 'tblTempVendorCDR_20' ) end [2024-12-17 14:17:21] Production.INFO: ProcessCDR(1,14041368,1,1,2) [2024-12-17 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041368', 'tblTempUsageDetail_20' ) start [2024-12-17 14:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041368', 'tblTempUsageDetail_20' ) end [2024-12-17 14:17:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:17:25] Production.INFO: ==5749== Releasing lock... [2024-12-17 14:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:17:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:18:05 [end_date_ymd] => 2024-12-17 14:18:05 [RateCDR] => 1 ) [2024-12-17 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:18:05' and `end` < '2024-12-17 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:18:20] Production.INFO: count ==5128 [2024-12-17 14:18:22] Production.ERROR: pbx CDR StartTime 2024-12-17 11:18:05 - End Time 2024-12-17 14:18:05 [2024-12-17 14:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041373', 'tblTempUsageDetail_20' ) start [2024-12-17 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041373', 'tblTempUsageDetail_20' ) end [2024-12-17 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041373', 'tblTempVendorCDR_20' ) start [2024-12-17 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041373', 'tblTempVendorCDR_20' ) end [2024-12-17 14:18:22] Production.INFO: ProcessCDR(1,14041373,1,1,2) [2024-12-17 14:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041373', 'tblTempUsageDetail_20' ) start [2024-12-17 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041373', 'tblTempUsageDetail_20' ) end [2024-12-17 14:18:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:18:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:18:27] Production.INFO: ==5822== Releasing lock... [2024-12-17 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:18:27] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:19:05 [end_date_ymd] => 2024-12-17 14:19:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:19:05' and `end` < '2024-12-17 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-17 14:19:21] Production.INFO: count ==5125 [2024-12-17 14:19:23] Production.ERROR: pbx CDR StartTime 2024-12-17 11:19:05 - End Time 2024-12-17 14:19:05 [2024-12-17 14:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041378', 'tblTempUsageDetail_20' ) start [2024-12-17 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041378', 'tblTempUsageDetail_20' ) end [2024-12-17 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041378', 'tblTempVendorCDR_20' ) start [2024-12-17 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041378', 'tblTempVendorCDR_20' ) end [2024-12-17 14:19:23] Production.INFO: ProcessCDR(1,14041378,1,1,2) [2024-12-17 14:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041378', 'tblTempUsageDetail_20' ) start [2024-12-17 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041378', 'tblTempUsageDetail_20' ) end [2024-12-17 14:19:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:19:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:19:28] Production.INFO: ==5895== Releasing lock... [2024-12-17 14:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:19:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:20:05 [end_date_ymd] => 2024-12-17 14:20:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:20:05' and `end` < '2024-12-17 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-17 14:20:18] Production.INFO: count ==5117 [2024-12-17 14:20:20] Production.ERROR: pbx CDR StartTime 2024-12-17 11:20:05 - End Time 2024-12-17 14:20:05 [2024-12-17 14:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041384', 'tblTempUsageDetail_20' ) start [2024-12-17 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041384', 'tblTempUsageDetail_20' ) end [2024-12-17 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041384', 'tblTempVendorCDR_20' ) start [2024-12-17 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041384', 'tblTempVendorCDR_20' ) end [2024-12-17 14:20:20] Production.INFO: ProcessCDR(1,14041384,1,1,2) [2024-12-17 14:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041384', 'tblTempUsageDetail_20' ) start [2024-12-17 14:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041384', 'tblTempUsageDetail_20' ) end [2024-12-17 14:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:20:25] Production.INFO: ==5967== Releasing lock... [2024-12-17 14:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:20:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:21:05 [end_date_ymd] => 2024-12-17 14:21:05 [RateCDR] => 1 ) [2024-12-17 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:21:05' and `end` < '2024-12-17 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:21:19] Production.INFO: count ==5123 [2024-12-17 14:21:21] Production.ERROR: pbx CDR StartTime 2024-12-17 11:21:05 - End Time 2024-12-17 14:21:05 [2024-12-17 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041389', 'tblTempUsageDetail_20' ) start [2024-12-17 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041389', 'tblTempUsageDetail_20' ) end [2024-12-17 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041389', 'tblTempVendorCDR_20' ) start [2024-12-17 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041389', 'tblTempVendorCDR_20' ) end [2024-12-17 14:21:21] Production.INFO: ProcessCDR(1,14041389,1,1,2) [2024-12-17 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041389', 'tblTempUsageDetail_20' ) start [2024-12-17 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041389', 'tblTempUsageDetail_20' ) end [2024-12-17 14:21:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:21:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:21:26] Production.INFO: ==6041== Releasing lock... [2024-12-17 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:21:26] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:22:05 [end_date_ymd] => 2024-12-17 14:22:05 [RateCDR] => 1 ) [2024-12-17 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:22:05' and `end` < '2024-12-17 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:22:18] Production.INFO: count ==5129 [2024-12-17 14:22:20] Production.ERROR: pbx CDR StartTime 2024-12-17 11:22:05 - End Time 2024-12-17 14:22:05 [2024-12-17 14:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041394', 'tblTempUsageDetail_20' ) start [2024-12-17 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041394', 'tblTempUsageDetail_20' ) end [2024-12-17 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041394', 'tblTempVendorCDR_20' ) start [2024-12-17 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041394', 'tblTempVendorCDR_20' ) end [2024-12-17 14:22:20] Production.INFO: ProcessCDR(1,14041394,1,1,2) [2024-12-17 14:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041394', 'tblTempUsageDetail_20' ) start [2024-12-17 14:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041394', 'tblTempUsageDetail_20' ) end [2024-12-17 14:22:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:22:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:22:25] Production.INFO: ==6113== Releasing lock... [2024-12-17 14:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:22:25] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:23:05 [end_date_ymd] => 2024-12-17 14:23:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:23:05' and `end` < '2024-12-17 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-17 14:23:20] Production.INFO: count ==5128 [2024-12-17 14:23:22] Production.ERROR: pbx CDR StartTime 2024-12-17 11:23:05 - End Time 2024-12-17 14:23:05 [2024-12-17 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041399', 'tblTempUsageDetail_20' ) start [2024-12-17 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041399', 'tblTempUsageDetail_20' ) end [2024-12-17 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041399', 'tblTempVendorCDR_20' ) start [2024-12-17 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041399', 'tblTempVendorCDR_20' ) end [2024-12-17 14:23:22] Production.INFO: ProcessCDR(1,14041399,1,1,2) [2024-12-17 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041399', 'tblTempUsageDetail_20' ) start [2024-12-17 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041399', 'tblTempUsageDetail_20' ) end [2024-12-17 14:23:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:23:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:23:27] Production.INFO: ==6186== Releasing lock... [2024-12-17 14:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:23:27] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:24:04 [end_date_ymd] => 2024-12-17 14:24:04 [RateCDR] => 1 ) [2024-12-17 14: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-17 11:24:04' and `end` < '2024-12-17 14: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-17 14:24:22] Production.INFO: count ==5139 [2024-12-17 14:24:24] Production.ERROR: pbx CDR StartTime 2024-12-17 11:24:04 - End Time 2024-12-17 14:24:04 [2024-12-17 14:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041404', 'tblTempUsageDetail_20' ) start [2024-12-17 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041404', 'tblTempUsageDetail_20' ) end [2024-12-17 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041404', 'tblTempVendorCDR_20' ) start [2024-12-17 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041404', 'tblTempVendorCDR_20' ) end [2024-12-17 14:24:24] Production.INFO: ProcessCDR(1,14041404,1,1,2) [2024-12-17 14:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041404', 'tblTempUsageDetail_20' ) start [2024-12-17 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041404', 'tblTempUsageDetail_20' ) end [2024-12-17 14:24:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:24:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:24:29] Production.INFO: ==6255== Releasing lock... [2024-12-17 14:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:24:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:25:05 [end_date_ymd] => 2024-12-17 14:25:05 [RateCDR] => 1 ) [2024-12-17 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:25:05' and `end` < '2024-12-17 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:25:27] Production.INFO: count ==5154 [2024-12-17 14:25:29] Production.ERROR: pbx CDR StartTime 2024-12-17 11:25:05 - End Time 2024-12-17 14:25:05 [2024-12-17 14:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041409', 'tblTempUsageDetail_20' ) start [2024-12-17 14:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041409', 'tblTempUsageDetail_20' ) end [2024-12-17 14:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041409', 'tblTempVendorCDR_20' ) start [2024-12-17 14:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041409', 'tblTempVendorCDR_20' ) end [2024-12-17 14:25:29] Production.INFO: ProcessCDR(1,14041409,1,1,2) [2024-12-17 14:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041409', 'tblTempUsageDetail_20' ) start [2024-12-17 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041409', 'tblTempUsageDetail_20' ) end [2024-12-17 14:25:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:25:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:25:34] Production.INFO: ==6325== Releasing lock... [2024-12-17 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:25:34] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:26:04 [end_date_ymd] => 2024-12-17 14:26:04 [RateCDR] => 1 ) [2024-12-17 14: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 11:26:04' and `end` < '2024-12-17 14: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-17 14:26:23] Production.INFO: count ==5157 [2024-12-17 14:26:25] Production.ERROR: pbx CDR StartTime 2024-12-17 11:26:04 - End Time 2024-12-17 14:26:04 [2024-12-17 14:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041414', 'tblTempUsageDetail_20' ) start [2024-12-17 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041414', 'tblTempUsageDetail_20' ) end [2024-12-17 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041414', 'tblTempVendorCDR_20' ) start [2024-12-17 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041414', 'tblTempVendorCDR_20' ) end [2024-12-17 14:26:25] Production.INFO: ProcessCDR(1,14041414,1,1,2) [2024-12-17 14:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041414', 'tblTempUsageDetail_20' ) start [2024-12-17 14:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041414', 'tblTempUsageDetail_20' ) end [2024-12-17 14:26:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:26:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:26:29] Production.INFO: ==6396== Releasing lock... [2024-12-17 14:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:26:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:27:05 [end_date_ymd] => 2024-12-17 14:27:05 [RateCDR] => 1 ) [2024-12-17 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:27:05' and `end` < '2024-12-17 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:27:23] Production.INFO: count ==5161 [2024-12-17 14:27:25] Production.ERROR: pbx CDR StartTime 2024-12-17 11:27:05 - End Time 2024-12-17 14:27:05 [2024-12-17 14:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041419', 'tblTempUsageDetail_20' ) start [2024-12-17 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041419', 'tblTempUsageDetail_20' ) end [2024-12-17 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041419', 'tblTempVendorCDR_20' ) start [2024-12-17 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041419', 'tblTempVendorCDR_20' ) end [2024-12-17 14:27:25] Production.INFO: ProcessCDR(1,14041419,1,1,2) [2024-12-17 14:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041419', 'tblTempUsageDetail_20' ) start [2024-12-17 14:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041419', 'tblTempUsageDetail_20' ) end [2024-12-17 14:27:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:27:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:27:30] Production.INFO: ==6469== Releasing lock... [2024-12-17 14:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:27:30] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:28:05 [end_date_ymd] => 2024-12-17 14:28:05 [RateCDR] => 1 ) [2024-12-17 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:28:05' and `end` < '2024-12-17 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:28:23] Production.INFO: count ==5166 [2024-12-17 14:28:25] Production.ERROR: pbx CDR StartTime 2024-12-17 11:28:05 - End Time 2024-12-17 14:28:05 [2024-12-17 14:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041424', 'tblTempUsageDetail_20' ) start [2024-12-17 14:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041424', 'tblTempUsageDetail_20' ) end [2024-12-17 14:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041424', 'tblTempVendorCDR_20' ) start [2024-12-17 14:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041424', 'tblTempVendorCDR_20' ) end [2024-12-17 14:28:25] Production.INFO: ProcessCDR(1,14041424,1,1,2) [2024-12-17 14:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041424', 'tblTempUsageDetail_20' ) start [2024-12-17 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041424', 'tblTempUsageDetail_20' ) end [2024-12-17 14:28:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:28:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:28:30] Production.INFO: ==6543== Releasing lock... [2024-12-17 14:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:28:30] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 14:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:29:04 [end_date_ymd] => 2024-12-17 14:29:04 [RateCDR] => 1 ) [2024-12-17 14: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 11:29:04' and `end` < '2024-12-17 14: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-17 14:29:20] Production.INFO: count ==5172 [2024-12-17 14:29:22] Production.ERROR: pbx CDR StartTime 2024-12-17 11:29:04 - End Time 2024-12-17 14:29:04 [2024-12-17 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041429', 'tblTempUsageDetail_20' ) start [2024-12-17 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041429', 'tblTempUsageDetail_20' ) end [2024-12-17 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041429', 'tblTempVendorCDR_20' ) start [2024-12-17 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041429', 'tblTempVendorCDR_20' ) end [2024-12-17 14:29:22] Production.INFO: ProcessCDR(1,14041429,1,1,2) [2024-12-17 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041429', 'tblTempUsageDetail_20' ) start [2024-12-17 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041429', 'tblTempUsageDetail_20' ) end [2024-12-17 14:29:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:29:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:29:27] Production.INFO: ==6613== Releasing lock... [2024-12-17 14:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:29:27] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:30:06 [end_date_ymd] => 2024-12-17 14:30:06 [RateCDR] => 1 ) [2024-12-17 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:30:06' and `end` < '2024-12-17 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:30:37] Production.INFO: count ==5176 [2024-12-17 14:30:39] Production.ERROR: pbx CDR StartTime 2024-12-17 11:30:06 - End Time 2024-12-17 14:30:06 [2024-12-17 14:30:39] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:30:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041434', 'tblTempUsageDetail_20' ) start [2024-12-17 14:30:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041434', 'tblTempUsageDetail_20' ) end [2024-12-17 14:30:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041434', 'tblTempVendorCDR_20' ) start [2024-12-17 14:30:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041434', 'tblTempVendorCDR_20' ) end [2024-12-17 14:30:40] Production.INFO: ProcessCDR(1,14041434,1,1,2) [2024-12-17 14:30:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:30:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:30:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:30:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:30:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041434', 'tblTempUsageDetail_20' ) start [2024-12-17 14:30:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041434', 'tblTempUsageDetail_20' ) end [2024-12-17 14:30:45] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:30:45] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:30:45] Production.INFO: ==6685== Releasing lock... [2024-12-17 14:30:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:30:45] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:31:05 [end_date_ymd] => 2024-12-17 14:31:05 [RateCDR] => 1 ) [2024-12-17 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:31:05' and `end` < '2024-12-17 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:31:27] Production.INFO: count ==5154 [2024-12-17 14:31:29] Production.ERROR: pbx CDR StartTime 2024-12-17 11:31:05 - End Time 2024-12-17 14:31:05 [2024-12-17 14:31:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041440', 'tblTempUsageDetail_20' ) start [2024-12-17 14:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041440', 'tblTempUsageDetail_20' ) end [2024-12-17 14:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041440', 'tblTempVendorCDR_20' ) start [2024-12-17 14:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041440', 'tblTempVendorCDR_20' ) end [2024-12-17 14:31:29] Production.INFO: ProcessCDR(1,14041440,1,1,2) [2024-12-17 14:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041440', 'tblTempUsageDetail_20' ) start [2024-12-17 14:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041440', 'tblTempUsageDetail_20' ) end [2024-12-17 14:31:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:31:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:31:33] Production.INFO: ==6760== Releasing lock... [2024-12-17 14:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:31:33] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:32:04 [end_date_ymd] => 2024-12-17 14:32:04 [RateCDR] => 1 ) [2024-12-17 14: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 11:32:04' and `end` < '2024-12-17 14: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-17 14:32:21] Production.INFO: count ==5137 [2024-12-17 14:32:23] Production.ERROR: pbx CDR StartTime 2024-12-17 11:32:04 - End Time 2024-12-17 14:32:04 [2024-12-17 14:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041445', 'tblTempUsageDetail_20' ) start [2024-12-17 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041445', 'tblTempUsageDetail_20' ) end [2024-12-17 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041445', 'tblTempVendorCDR_20' ) start [2024-12-17 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041445', 'tblTempVendorCDR_20' ) end [2024-12-17 14:32:23] Production.INFO: ProcessCDR(1,14041445,1,1,2) [2024-12-17 14:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041445', 'tblTempUsageDetail_20' ) start [2024-12-17 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041445', 'tblTempUsageDetail_20' ) end [2024-12-17 14:32:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:32:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:32:28] Production.INFO: ==6830== Releasing lock... [2024-12-17 14:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:32:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:33:05 [end_date_ymd] => 2024-12-17 14:33:05 [RateCDR] => 1 ) [2024-12-17 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:33:05' and `end` < '2024-12-17 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:33:18] Production.INFO: count ==5104 [2024-12-17 14:33:20] Production.ERROR: pbx CDR StartTime 2024-12-17 11:33:05 - End Time 2024-12-17 14:33:05 [2024-12-17 14:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041450', 'tblTempUsageDetail_20' ) start [2024-12-17 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041450', 'tblTempUsageDetail_20' ) end [2024-12-17 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041450', 'tblTempVendorCDR_20' ) start [2024-12-17 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041450', 'tblTempVendorCDR_20' ) end [2024-12-17 14:33:20] Production.INFO: ProcessCDR(1,14041450,1,1,2) [2024-12-17 14:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041450', 'tblTempUsageDetail_20' ) start [2024-12-17 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041450', 'tblTempUsageDetail_20' ) end [2024-12-17 14:33:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:33:24] Production.INFO: ==6939== Releasing lock... [2024-12-17 14:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:33:24] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:34:04 [end_date_ymd] => 2024-12-17 14:34:04 [RateCDR] => 1 ) [2024-12-17 14: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 11:34:04' and `end` < '2024-12-17 14: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-17 14:34:18] Production.INFO: count ==5114 [2024-12-17 14:34:21] Production.ERROR: pbx CDR StartTime 2024-12-17 11:34:04 - End Time 2024-12-17 14:34:04 [2024-12-17 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041455', 'tblTempUsageDetail_20' ) start [2024-12-17 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041455', 'tblTempUsageDetail_20' ) end [2024-12-17 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041455', 'tblTempVendorCDR_20' ) start [2024-12-17 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041455', 'tblTempVendorCDR_20' ) end [2024-12-17 14:34:21] Production.INFO: ProcessCDR(1,14041455,1,1,2) [2024-12-17 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041455', 'tblTempUsageDetail_20' ) start [2024-12-17 14:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041455', 'tblTempUsageDetail_20' ) end [2024-12-17 14:34:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:34:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:34:26] Production.INFO: ==7009== Releasing lock... [2024-12-17 14:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:34:26] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:35:05 [end_date_ymd] => 2024-12-17 14:35:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:35:05' and `end` < '2024-12-17 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-17 14:35:21] Production.INFO: count ==5142 [2024-12-17 14:35:23] Production.ERROR: pbx CDR StartTime 2024-12-17 11:35:05 - End Time 2024-12-17 14:35:05 [2024-12-17 14:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041460', 'tblTempUsageDetail_20' ) start [2024-12-17 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041460', 'tblTempUsageDetail_20' ) end [2024-12-17 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041460', 'tblTempVendorCDR_20' ) start [2024-12-17 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041460', 'tblTempVendorCDR_20' ) end [2024-12-17 14:35:23] Production.INFO: ProcessCDR(1,14041460,1,1,2) [2024-12-17 14:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041460', 'tblTempUsageDetail_20' ) start [2024-12-17 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041460', 'tblTempUsageDetail_20' ) end [2024-12-17 14:35:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:35:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:35:28] Production.INFO: ==7094== Releasing lock... [2024-12-17 14:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:35:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:36:05 [end_date_ymd] => 2024-12-17 14:36:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:36:05' and `end` < '2024-12-17 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-17 14:36:20] Production.INFO: count ==5135 [2024-12-17 14:36:22] Production.ERROR: pbx CDR StartTime 2024-12-17 11:36:05 - End Time 2024-12-17 14:36:05 [2024-12-17 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041465', 'tblTempUsageDetail_20' ) start [2024-12-17 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041465', 'tblTempUsageDetail_20' ) end [2024-12-17 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041465', 'tblTempVendorCDR_20' ) start [2024-12-17 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041465', 'tblTempVendorCDR_20' ) end [2024-12-17 14:36:23] Production.INFO: ProcessCDR(1,14041465,1,1,2) [2024-12-17 14:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041465', 'tblTempUsageDetail_20' ) start [2024-12-17 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041465', 'tblTempUsageDetail_20' ) end [2024-12-17 14:36:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:36:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:36:27] Production.INFO: ==7167== Releasing lock... [2024-12-17 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:36:27] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:37:05 [end_date_ymd] => 2024-12-17 14:37:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:37:05' and `end` < '2024-12-17 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-17 14:37:27] Production.INFO: count ==5133 [2024-12-17 14:37:29] Production.ERROR: pbx CDR StartTime 2024-12-17 11:37:05 - End Time 2024-12-17 14:37:05 [2024-12-17 14:37:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041470', 'tblTempUsageDetail_20' ) start [2024-12-17 14:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041470', 'tblTempUsageDetail_20' ) end [2024-12-17 14:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041470', 'tblTempVendorCDR_20' ) start [2024-12-17 14:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041470', 'tblTempVendorCDR_20' ) end [2024-12-17 14:37:30] Production.INFO: ProcessCDR(1,14041470,1,1,2) [2024-12-17 14:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:37:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:37:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:37:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041470', 'tblTempUsageDetail_20' ) start [2024-12-17 14:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041470', 'tblTempUsageDetail_20' ) end [2024-12-17 14:37:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:37:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:37:34] Production.INFO: ==7240== Releasing lock... [2024-12-17 14:37:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:37:34] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:38:05 [end_date_ymd] => 2024-12-17 14:38:05 [RateCDR] => 1 ) [2024-12-17 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:38:05' and `end` < '2024-12-17 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:38:26] Production.INFO: count ==5146 [2024-12-17 14:38:28] Production.ERROR: pbx CDR StartTime 2024-12-17 11:38:05 - End Time 2024-12-17 14:38:05 [2024-12-17 14:38:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041475', 'tblTempUsageDetail_20' ) start [2024-12-17 14:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041475', 'tblTempUsageDetail_20' ) end [2024-12-17 14:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041475', 'tblTempVendorCDR_20' ) start [2024-12-17 14:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041475', 'tblTempVendorCDR_20' ) end [2024-12-17 14:38:28] Production.INFO: ProcessCDR(1,14041475,1,1,2) [2024-12-17 14:38:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041475', 'tblTempUsageDetail_20' ) start [2024-12-17 14:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041475', 'tblTempUsageDetail_20' ) end [2024-12-17 14:38:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:38:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:38:33] Production.INFO: ==7310== Releasing lock... [2024-12-17 14:38:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:38:33] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:39:04 [end_date_ymd] => 2024-12-17 14:39:04 [RateCDR] => 1 ) [2024-12-17 14: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-17 11:39:04' and `end` < '2024-12-17 14: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-17 14:39:29] Production.INFO: count ==5144 [2024-12-17 14:39:31] Production.ERROR: pbx CDR StartTime 2024-12-17 11:39:04 - End Time 2024-12-17 14:39:04 [2024-12-17 14:39:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041480', 'tblTempUsageDetail_20' ) start [2024-12-17 14:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041480', 'tblTempUsageDetail_20' ) end [2024-12-17 14:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041480', 'tblTempVendorCDR_20' ) start [2024-12-17 14:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041480', 'tblTempVendorCDR_20' ) end [2024-12-17 14:39:31] Production.INFO: ProcessCDR(1,14041480,1,1,2) [2024-12-17 14:39:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:39:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:39:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:39:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041480', 'tblTempUsageDetail_20' ) start [2024-12-17 14:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041480', 'tblTempUsageDetail_20' ) end [2024-12-17 14:39:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:39:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:39:34] Production.INFO: ==7380== Releasing lock... [2024-12-17 14:39:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:39:34] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:40:05 [end_date_ymd] => 2024-12-17 14:40:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:40:05' and `end` < '2024-12-17 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-17 14:40:26] Production.INFO: count ==5152 [2024-12-17 14:40:29] Production.ERROR: pbx CDR StartTime 2024-12-17 11:40:05 - End Time 2024-12-17 14:40:05 [2024-12-17 14:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041486', 'tblTempUsageDetail_20' ) start [2024-12-17 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041486', 'tblTempUsageDetail_20' ) end [2024-12-17 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041486', 'tblTempVendorCDR_20' ) start [2024-12-17 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041486', 'tblTempVendorCDR_20' ) end [2024-12-17 14:40:29] Production.INFO: ProcessCDR(1,14041486,1,1,2) [2024-12-17 14:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041486', 'tblTempUsageDetail_20' ) start [2024-12-17 14:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041486', 'tblTempUsageDetail_20' ) end [2024-12-17 14:40:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:40:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:40:33] Production.INFO: ==7455== Releasing lock... [2024-12-17 14:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:40:33] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:41:05 [end_date_ymd] => 2024-12-17 14:41:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:41:05' and `end` < '2024-12-17 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-17 14:41:25] Production.INFO: count ==5121 [2024-12-17 14:41:28] Production.ERROR: pbx CDR StartTime 2024-12-17 11:41:05 - End Time 2024-12-17 14:41:05 [2024-12-17 14:41:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041491', 'tblTempUsageDetail_20' ) start [2024-12-17 14:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041491', 'tblTempUsageDetail_20' ) end [2024-12-17 14:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041491', 'tblTempVendorCDR_20' ) start [2024-12-17 14:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041491', 'tblTempVendorCDR_20' ) end [2024-12-17 14:41:28] Production.INFO: ProcessCDR(1,14041491,1,1,2) [2024-12-17 14:41:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:41:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:41:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041491', 'tblTempUsageDetail_20' ) start [2024-12-17 14:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041491', 'tblTempUsageDetail_20' ) end [2024-12-17 14:41:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:41:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:41:32] Production.INFO: ==7528== Releasing lock... [2024-12-17 14:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:41:32] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:42:04 [end_date_ymd] => 2024-12-17 14:42:04 [RateCDR] => 1 ) [2024-12-17 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-17 11:42:04' and `end` < '2024-12-17 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-17 14:42:22] Production.INFO: count ==5112 [2024-12-17 14:42:24] Production.ERROR: pbx CDR StartTime 2024-12-17 11:42:04 - End Time 2024-12-17 14:42:04 [2024-12-17 14:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041496', 'tblTempUsageDetail_20' ) start [2024-12-17 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041496', 'tblTempUsageDetail_20' ) end [2024-12-17 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041496', 'tblTempVendorCDR_20' ) start [2024-12-17 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041496', 'tblTempVendorCDR_20' ) end [2024-12-17 14:42:24] Production.INFO: ProcessCDR(1,14041496,1,1,2) [2024-12-17 14:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041496', 'tblTempUsageDetail_20' ) start [2024-12-17 14:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041496', 'tblTempUsageDetail_20' ) end [2024-12-17 14:42:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:42:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:42:29] Production.INFO: ==7599== Releasing lock... [2024-12-17 14:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:42:29] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:43:05 [end_date_ymd] => 2024-12-17 14:43:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:43:05' and `end` < '2024-12-17 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-17 14:43:24] Production.INFO: count ==5096 [2024-12-17 14:43:26] Production.ERROR: pbx CDR StartTime 2024-12-17 11:43:05 - End Time 2024-12-17 14:43:05 [2024-12-17 14:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041501', 'tblTempUsageDetail_20' ) start [2024-12-17 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041501', 'tblTempUsageDetail_20' ) end [2024-12-17 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041501', 'tblTempVendorCDR_20' ) start [2024-12-17 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041501', 'tblTempVendorCDR_20' ) end [2024-12-17 14:43:26] Production.INFO: ProcessCDR(1,14041501,1,1,2) [2024-12-17 14:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041501', 'tblTempUsageDetail_20' ) start [2024-12-17 14:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041501', 'tblTempUsageDetail_20' ) end [2024-12-17 14:43:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:43:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:43:30] Production.INFO: ==7671== Releasing lock... [2024-12-17 14:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:43:30] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:44:05 [end_date_ymd] => 2024-12-17 14:44:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:44:05' and `end` < '2024-12-17 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-17 14:44:23] Production.INFO: count ==5107 [2024-12-17 14:44:25] Production.ERROR: pbx CDR StartTime 2024-12-17 11:44:05 - End Time 2024-12-17 14:44:05 [2024-12-17 14:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041506', 'tblTempUsageDetail_20' ) start [2024-12-17 14:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041506', 'tblTempUsageDetail_20' ) end [2024-12-17 14:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041506', 'tblTempVendorCDR_20' ) start [2024-12-17 14:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041506', 'tblTempVendorCDR_20' ) end [2024-12-17 14:44:25] Production.INFO: ProcessCDR(1,14041506,1,1,2) [2024-12-17 14:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041506', 'tblTempUsageDetail_20' ) start [2024-12-17 14:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041506', 'tblTempUsageDetail_20' ) end [2024-12-17 14:44:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:44:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:44:30] Production.INFO: ==7748== Releasing lock... [2024-12-17 14:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:44:30] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:45:05 [end_date_ymd] => 2024-12-17 14:45:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:45:05' and `end` < '2024-12-17 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-17 14:45:23] Production.INFO: count ==5071 [2024-12-17 14:45:25] Production.ERROR: pbx CDR StartTime 2024-12-17 11:45:05 - End Time 2024-12-17 14:45:05 [2024-12-17 14:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041511', 'tblTempUsageDetail_20' ) start [2024-12-17 14:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041511', 'tblTempUsageDetail_20' ) end [2024-12-17 14:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041511', 'tblTempVendorCDR_20' ) start [2024-12-17 14:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041511', 'tblTempVendorCDR_20' ) end [2024-12-17 14:45:25] Production.INFO: ProcessCDR(1,14041511,1,1,2) [2024-12-17 14:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041511', 'tblTempUsageDetail_20' ) start [2024-12-17 14:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041511', 'tblTempUsageDetail_20' ) end [2024-12-17 14:45:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:45:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:45:30] Production.INFO: ==7818== Releasing lock... [2024-12-17 14:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:45:30] Production.INFO: 66 MB #Memory Used# [2024-12-17 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:46:05 [end_date_ymd] => 2024-12-17 14:46:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:46:05' and `end` < '2024-12-17 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-17 14:46:17] Production.INFO: count ==5053 [2024-12-17 14:46:19] Production.ERROR: pbx CDR StartTime 2024-12-17 11:46:05 - End Time 2024-12-17 14:46:05 [2024-12-17 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041516', 'tblTempUsageDetail_20' ) start [2024-12-17 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041516', 'tblTempUsageDetail_20' ) end [2024-12-17 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041516', 'tblTempVendorCDR_20' ) start [2024-12-17 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041516', 'tblTempVendorCDR_20' ) end [2024-12-17 14:46:20] Production.INFO: ProcessCDR(1,14041516,1,1,2) [2024-12-17 14:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041516', 'tblTempUsageDetail_20' ) start [2024-12-17 14:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041516', 'tblTempUsageDetail_20' ) end [2024-12-17 14:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:46:24] Production.INFO: ==7888== Releasing lock... [2024-12-17 14:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:46:24] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:47:05 [end_date_ymd] => 2024-12-17 14:47:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:47:05' and `end` < '2024-12-17 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-17 14:47:20] Production.INFO: count ==5049 [2024-12-17 14:47:22] Production.ERROR: pbx CDR StartTime 2024-12-17 11:47:05 - End Time 2024-12-17 14:47:05 [2024-12-17 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041521', 'tblTempUsageDetail_20' ) start [2024-12-17 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041521', 'tblTempUsageDetail_20' ) end [2024-12-17 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041521', 'tblTempVendorCDR_20' ) start [2024-12-17 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041521', 'tblTempVendorCDR_20' ) end [2024-12-17 14:47:22] Production.INFO: ProcessCDR(1,14041521,1,1,2) [2024-12-17 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041521', 'tblTempUsageDetail_20' ) start [2024-12-17 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041521', 'tblTempUsageDetail_20' ) end [2024-12-17 14:47:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:47:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:47:27] Production.INFO: ==7958== Releasing lock... [2024-12-17 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:47:27] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 14:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:48:04 [end_date_ymd] => 2024-12-17 14:48:04 [RateCDR] => 1 ) [2024-12-17 14: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-17 11:48:04' and `end` < '2024-12-17 14: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-17 14:48:19] Production.INFO: count ==5052 [2024-12-17 14:48:21] Production.ERROR: pbx CDR StartTime 2024-12-17 11:48:04 - End Time 2024-12-17 14:48:04 [2024-12-17 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041526', 'tblTempUsageDetail_20' ) start [2024-12-17 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041526', 'tblTempUsageDetail_20' ) end [2024-12-17 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041526', 'tblTempVendorCDR_20' ) start [2024-12-17 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041526', 'tblTempVendorCDR_20' ) end [2024-12-17 14:48:21] Production.INFO: ProcessCDR(1,14041526,1,1,2) [2024-12-17 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041526', 'tblTempUsageDetail_20' ) start [2024-12-17 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041526', 'tblTempUsageDetail_20' ) end [2024-12-17 14:48:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:48:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:48:25] Production.INFO: ==8027== Releasing lock... [2024-12-17 14:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:48:25] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:49:05 [end_date_ymd] => 2024-12-17 14:49:05 [RateCDR] => 1 ) [2024-12-17 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:49:05' and `end` < '2024-12-17 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:49:23] Production.INFO: count ==5038 [2024-12-17 14:49:25] Production.ERROR: pbx CDR StartTime 2024-12-17 11:49:05 - End Time 2024-12-17 14:49:05 [2024-12-17 14:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041531', 'tblTempUsageDetail_20' ) start [2024-12-17 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041531', 'tblTempUsageDetail_20' ) end [2024-12-17 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041531', 'tblTempVendorCDR_20' ) start [2024-12-17 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041531', 'tblTempVendorCDR_20' ) end [2024-12-17 14:49:25] Production.INFO: ProcessCDR(1,14041531,1,1,2) [2024-12-17 14:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041531', 'tblTempUsageDetail_20' ) start [2024-12-17 14:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041531', 'tblTempUsageDetail_20' ) end [2024-12-17 14:49:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:49:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:49:30] Production.INFO: ==8138== Releasing lock... [2024-12-17 14:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:49:30] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:50:05 [end_date_ymd] => 2024-12-17 14:50:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:50:05' and `end` < '2024-12-17 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-17 14:50:19] Production.INFO: count ==5021 [2024-12-17 14:50:21] Production.ERROR: pbx CDR StartTime 2024-12-17 11:50:05 - End Time 2024-12-17 14:50:05 [2024-12-17 14:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041536', 'tblTempUsageDetail_20' ) start [2024-12-17 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041536', 'tblTempUsageDetail_20' ) end [2024-12-17 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041536', 'tblTempVendorCDR_20' ) start [2024-12-17 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041536', 'tblTempVendorCDR_20' ) end [2024-12-17 14:50:21] Production.INFO: ProcessCDR(1,14041536,1,1,2) [2024-12-17 14:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041536', 'tblTempUsageDetail_20' ) start [2024-12-17 14:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041536', 'tblTempUsageDetail_20' ) end [2024-12-17 14:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:50:25] Production.INFO: ==8214== Releasing lock... [2024-12-17 14:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:50:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:51:05 [end_date_ymd] => 2024-12-17 14:51:05 [RateCDR] => 1 ) [2024-12-17 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:51:05' and `end` < '2024-12-17 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:51:33] Production.INFO: count ==5030 [2024-12-17 14:51:35] Production.ERROR: pbx CDR StartTime 2024-12-17 11:51:05 - End Time 2024-12-17 14:51:05 [2024-12-17 14:51:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:51:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041542', 'tblTempUsageDetail_20' ) start [2024-12-17 14:51:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041542', 'tblTempUsageDetail_20' ) end [2024-12-17 14:51:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041542', 'tblTempVendorCDR_20' ) start [2024-12-17 14:51:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041542', 'tblTempVendorCDR_20' ) end [2024-12-17 14:51:36] Production.INFO: ProcessCDR(1,14041542,1,1,2) [2024-12-17 14:51:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:51:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:51:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:51:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:51:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041542', 'tblTempUsageDetail_20' ) start [2024-12-17 14:51:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041542', 'tblTempUsageDetail_20' ) end [2024-12-17 14:51:40] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:51:40] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:51:40] Production.INFO: ==8287== Releasing lock... [2024-12-17 14:51:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:51:40] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:52:05 [end_date_ymd] => 2024-12-17 14:52:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:52:05' and `end` < '2024-12-17 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-17 14:52:23] Production.INFO: count ==5028 [2024-12-17 14:52:25] Production.ERROR: pbx CDR StartTime 2024-12-17 11:52:05 - End Time 2024-12-17 14:52:05 [2024-12-17 14:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041547', 'tblTempUsageDetail_20' ) start [2024-12-17 14:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041547', 'tblTempUsageDetail_20' ) end [2024-12-17 14:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041547', 'tblTempVendorCDR_20' ) start [2024-12-17 14:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041547', 'tblTempVendorCDR_20' ) end [2024-12-17 14:52:25] Production.INFO: ProcessCDR(1,14041547,1,1,2) [2024-12-17 14:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041547', 'tblTempUsageDetail_20' ) start [2024-12-17 14:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041547', 'tblTempUsageDetail_20' ) end [2024-12-17 14:52:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:52:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:52:30] Production.INFO: ==8358== Releasing lock... [2024-12-17 14:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:52:30] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:53:04 [end_date_ymd] => 2024-12-17 14:53:04 [RateCDR] => 1 ) [2024-12-17 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-17 11:53:04' and `end` < '2024-12-17 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-17 14:53:22] Production.INFO: count ==5050 [2024-12-17 14:53:24] Production.ERROR: pbx CDR StartTime 2024-12-17 11:53:04 - End Time 2024-12-17 14:53:04 [2024-12-17 14:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041552', 'tblTempUsageDetail_20' ) start [2024-12-17 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041552', 'tblTempUsageDetail_20' ) end [2024-12-17 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041552', 'tblTempVendorCDR_20' ) start [2024-12-17 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041552', 'tblTempVendorCDR_20' ) end [2024-12-17 14:53:24] Production.INFO: ProcessCDR(1,14041552,1,1,2) [2024-12-17 14:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041552', 'tblTempUsageDetail_20' ) start [2024-12-17 14:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041552', 'tblTempUsageDetail_20' ) end [2024-12-17 14:53:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:53:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:53:29] Production.INFO: ==8428== Releasing lock... [2024-12-17 14:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:53:29] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:54:05 [end_date_ymd] => 2024-12-17 14:54:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:54:05' and `end` < '2024-12-17 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-17 14:54:32] Production.INFO: count ==5063 [2024-12-17 14:54:34] Production.ERROR: pbx CDR StartTime 2024-12-17 11:54:05 - End Time 2024-12-17 14:54:05 [2024-12-17 14:54:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041557', 'tblTempUsageDetail_20' ) start [2024-12-17 14:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041557', 'tblTempUsageDetail_20' ) end [2024-12-17 14:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041557', 'tblTempVendorCDR_20' ) start [2024-12-17 14:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041557', 'tblTempVendorCDR_20' ) end [2024-12-17 14:54:34] Production.INFO: ProcessCDR(1,14041557,1,1,2) [2024-12-17 14:54:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:54:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:54:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:54:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:54:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041557', 'tblTempUsageDetail_20' ) start [2024-12-17 14:54:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041557', 'tblTempUsageDetail_20' ) end [2024-12-17 14:54:38] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:54:39] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:54:39] Production.INFO: ==8498== Releasing lock... [2024-12-17 14:54:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:54:39] Production.INFO: 66 MB #Memory Used# [2024-12-17 14:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:55:04 [end_date_ymd] => 2024-12-17 14:55:04 [RateCDR] => 1 ) [2024-12-17 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-17 11:55:04' and `end` < '2024-12-17 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-17 14:55:25] Production.INFO: count ==5082 [2024-12-17 14:55:27] Production.ERROR: pbx CDR StartTime 2024-12-17 11:55:04 - End Time 2024-12-17 14:55:04 [2024-12-17 14:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041562', 'tblTempUsageDetail_20' ) start [2024-12-17 14:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041562', 'tblTempUsageDetail_20' ) end [2024-12-17 14:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041562', 'tblTempVendorCDR_20' ) start [2024-12-17 14:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041562', 'tblTempVendorCDR_20' ) end [2024-12-17 14:55:28] Production.INFO: ProcessCDR(1,14041562,1,1,2) [2024-12-17 14:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041562', 'tblTempUsageDetail_20' ) start [2024-12-17 14:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041562', 'tblTempUsageDetail_20' ) end [2024-12-17 14:55:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:55:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:55:31] Production.INFO: ==8569== Releasing lock... [2024-12-17 14:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:55:31] Production.INFO: 66 MB #Memory Used# [2024-12-17 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:56:05 [end_date_ymd] => 2024-12-17 14:56:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:56:05' and `end` < '2024-12-17 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-17 14:56:21] Production.INFO: count ==5076 [2024-12-17 14:56:23] Production.ERROR: pbx CDR StartTime 2024-12-17 11:56:05 - End Time 2024-12-17 14:56:05 [2024-12-17 14:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041567', 'tblTempUsageDetail_20' ) start [2024-12-17 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041567', 'tblTempUsageDetail_20' ) end [2024-12-17 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041567', 'tblTempVendorCDR_20' ) start [2024-12-17 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041567', 'tblTempVendorCDR_20' ) end [2024-12-17 14:56:23] Production.INFO: ProcessCDR(1,14041567,1,1,2) [2024-12-17 14:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041567', 'tblTempUsageDetail_20' ) start [2024-12-17 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041567', 'tblTempUsageDetail_20' ) end [2024-12-17 14:56:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:56:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:56:28] Production.INFO: ==8641== Releasing lock... [2024-12-17 14:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:56:28] Production.INFO: 66 MB #Memory Used# [2024-12-17 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:57:05 [end_date_ymd] => 2024-12-17 14:57:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:57:05' and `end` < '2024-12-17 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-17 14:57:19] Production.INFO: count ==5100 [2024-12-17 14:57:21] Production.ERROR: pbx CDR StartTime 2024-12-17 11:57:05 - End Time 2024-12-17 14:57:05 [2024-12-17 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041572', 'tblTempUsageDetail_20' ) start [2024-12-17 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041572', 'tblTempUsageDetail_20' ) end [2024-12-17 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041572', 'tblTempVendorCDR_20' ) start [2024-12-17 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041572', 'tblTempVendorCDR_20' ) end [2024-12-17 14:57:21] Production.INFO: ProcessCDR(1,14041572,1,1,2) [2024-12-17 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041572', 'tblTempUsageDetail_20' ) start [2024-12-17 14:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041572', 'tblTempUsageDetail_20' ) end [2024-12-17 14:57:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:57:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:57:26] Production.INFO: ==8714== Releasing lock... [2024-12-17 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:57:26] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:58:05 [end_date_ymd] => 2024-12-17 14:58:05 [RateCDR] => 1 ) [2024-12-17 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 11:58:05' and `end` < '2024-12-17 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 14:58:30] Production.INFO: count ==5106 [2024-12-17 14:58:32] Production.ERROR: pbx CDR StartTime 2024-12-17 11:58:05 - End Time 2024-12-17 14:58:05 [2024-12-17 14:58:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041577', 'tblTempUsageDetail_20' ) start [2024-12-17 14:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041577', 'tblTempUsageDetail_20' ) end [2024-12-17 14:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041577', 'tblTempVendorCDR_20' ) start [2024-12-17 14:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041577', 'tblTempVendorCDR_20' ) end [2024-12-17 14:58:32] Production.INFO: ProcessCDR(1,14041577,1,1,2) [2024-12-17 14:58:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:58:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:58:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:58:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:58:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041577', 'tblTempUsageDetail_20' ) start [2024-12-17 14:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041577', 'tblTempUsageDetail_20' ) end [2024-12-17 14:58:37] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:58:37] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:58:37] Production.INFO: ==8790== Releasing lock... [2024-12-17 14:58:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:58:37] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 11:59:05 [end_date_ymd] => 2024-12-17 14:59:05 [RateCDR] => 1 ) [2024-12-17 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-17 11:59:05' and `end` < '2024-12-17 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-17 14:59:24] Production.INFO: count ==5140 [2024-12-17 14:59:26] Production.ERROR: pbx CDR StartTime 2024-12-17 11:59:05 - End Time 2024-12-17 14:59:05 [2024-12-17 14:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 14:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041582', 'tblTempUsageDetail_20' ) start [2024-12-17 14:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041582', 'tblTempUsageDetail_20' ) end [2024-12-17 14:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041582', 'tblTempVendorCDR_20' ) start [2024-12-17 14:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041582', 'tblTempVendorCDR_20' ) end [2024-12-17 14:59:27] Production.INFO: ProcessCDR(1,14041582,1,1,2) [2024-12-17 14:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 14:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 14:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041582', 'tblTempUsageDetail_20' ) start [2024-12-17 14:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041582', 'tblTempUsageDetail_20' ) end [2024-12-17 14:59:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 14:59:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 14:59:31] Production.INFO: ==8861== Releasing lock... [2024-12-17 14:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 14:59:31] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:00:05 [end_date_ymd] => 2024-12-17 15:00:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:00:05' and `end` < '2024-12-17 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-17 15:00:22] Production.INFO: count ==5125 [2024-12-17 15:00:24] Production.ERROR: pbx CDR StartTime 2024-12-17 12:00:05 - End Time 2024-12-17 15:00:05 [2024-12-17 15:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041588', 'tblTempUsageDetail_20' ) start [2024-12-17 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041588', 'tblTempUsageDetail_20' ) end [2024-12-17 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041588', 'tblTempVendorCDR_20' ) start [2024-12-17 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041588', 'tblTempVendorCDR_20' ) end [2024-12-17 15:00:24] Production.INFO: ProcessCDR(1,14041588,1,1,2) [2024-12-17 15:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041588', 'tblTempUsageDetail_20' ) start [2024-12-17 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041588', 'tblTempUsageDetail_20' ) end [2024-12-17 15:00:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:00:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:00:29] Production.INFO: ==8933== Releasing lock... [2024-12-17 15:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:00:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 15:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:01:04 [end_date_ymd] => 2024-12-17 15:01:04 [RateCDR] => 1 ) [2024-12-17 15: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 12:01:04' and `end` < '2024-12-17 15: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-17 15:01:24] Production.INFO: count ==5147 [2024-12-17 15:01:26] Production.ERROR: pbx CDR StartTime 2024-12-17 12:01:04 - End Time 2024-12-17 15:01:04 [2024-12-17 15:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041593', 'tblTempUsageDetail_20' ) start [2024-12-17 15:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041593', 'tblTempUsageDetail_20' ) end [2024-12-17 15:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041593', 'tblTempVendorCDR_20' ) start [2024-12-17 15:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041593', 'tblTempVendorCDR_20' ) end [2024-12-17 15:01:26] Production.INFO: ProcessCDR(1,14041593,1,1,2) [2024-12-17 15:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041593', 'tblTempUsageDetail_20' ) start [2024-12-17 15:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041593', 'tblTempUsageDetail_20' ) end [2024-12-17 15:01:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:01:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:01:31] Production.INFO: ==9096== Releasing lock... [2024-12-17 15:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:01:31] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 15:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:02:04 [end_date_ymd] => 2024-12-17 15:02:04 [RateCDR] => 1 ) [2024-12-17 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-17 12:02:04' and `end` < '2024-12-17 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-17 15:02:21] Production.INFO: count ==5150 [2024-12-17 15:02:23] Production.ERROR: pbx CDR StartTime 2024-12-17 12:02:04 - End Time 2024-12-17 15:02:04 [2024-12-17 15:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041598', 'tblTempUsageDetail_20' ) start [2024-12-17 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041598', 'tblTempUsageDetail_20' ) end [2024-12-17 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041598', 'tblTempVendorCDR_20' ) start [2024-12-17 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041598', 'tblTempVendorCDR_20' ) end [2024-12-17 15:02:23] Production.INFO: ProcessCDR(1,14041598,1,1,2) [2024-12-17 15:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041598', 'tblTempUsageDetail_20' ) start [2024-12-17 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041598', 'tblTempUsageDetail_20' ) end [2024-12-17 15:02:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:02:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:02:28] Production.INFO: ==9168== Releasing lock... [2024-12-17 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:02:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 15:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:03:04 [end_date_ymd] => 2024-12-17 15:03:04 [RateCDR] => 1 ) [2024-12-17 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-17 12:03:04' and `end` < '2024-12-17 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-17 15:03:33] Production.INFO: count ==5151 [2024-12-17 15:03:35] Production.ERROR: pbx CDR StartTime 2024-12-17 12:03:04 - End Time 2024-12-17 15:03:04 [2024-12-17 15:03:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041602', 'tblTempUsageDetail_20' ) start [2024-12-17 15:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041602', 'tblTempUsageDetail_20' ) end [2024-12-17 15:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041602', 'tblTempVendorCDR_20' ) start [2024-12-17 15:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041602', 'tblTempVendorCDR_20' ) end [2024-12-17 15:03:35] Production.INFO: ProcessCDR(1,14041602,1,1,2) [2024-12-17 15:03:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:03:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:03:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:03:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:03:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041602', 'tblTempUsageDetail_20' ) start [2024-12-17 15:03:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041602', 'tblTempUsageDetail_20' ) end [2024-12-17 15:03:40] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:03:40] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:03:40] Production.INFO: ==9240== Releasing lock... [2024-12-17 15:03:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:03:40] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:04:05 [end_date_ymd] => 2024-12-17 15:04:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:04:05' and `end` < '2024-12-17 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-17 15:04:27] Production.INFO: count ==5170 [2024-12-17 15:04:29] Production.ERROR: pbx CDR StartTime 2024-12-17 12:04:05 - End Time 2024-12-17 15:04:05 [2024-12-17 15:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041608', 'tblTempUsageDetail_20' ) start [2024-12-17 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041608', 'tblTempUsageDetail_20' ) end [2024-12-17 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041608', 'tblTempVendorCDR_20' ) start [2024-12-17 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041608', 'tblTempVendorCDR_20' ) end [2024-12-17 15:04:29] Production.INFO: ProcessCDR(1,14041608,1,1,2) [2024-12-17 15:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041608', 'tblTempUsageDetail_20' ) start [2024-12-17 15:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041608', 'tblTempUsageDetail_20' ) end [2024-12-17 15:04:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:04:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:04:34] Production.INFO: ==9350== Releasing lock... [2024-12-17 15:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:04:34] Production.INFO: 66.75 MB #Memory Used# [2024-12-17 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:05:05 [end_date_ymd] => 2024-12-17 15:05:05 [RateCDR] => 1 ) [2024-12-17 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 12:05:05' and `end` < '2024-12-17 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 15:05:26] Production.INFO: count ==5154 [2024-12-17 15:05:28] Production.ERROR: pbx CDR StartTime 2024-12-17 12:05:05 - End Time 2024-12-17 15:05:05 [2024-12-17 15:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041613', 'tblTempUsageDetail_20' ) start [2024-12-17 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041613', 'tblTempUsageDetail_20' ) end [2024-12-17 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041613', 'tblTempVendorCDR_20' ) start [2024-12-17 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041613', 'tblTempVendorCDR_20' ) end [2024-12-17 15:05:28] Production.INFO: ProcessCDR(1,14041613,1,1,2) [2024-12-17 15:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041613', 'tblTempUsageDetail_20' ) start [2024-12-17 15:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041613', 'tblTempUsageDetail_20' ) end [2024-12-17 15:05:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:05:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:05:33] Production.INFO: ==9498== Releasing lock... [2024-12-17 15:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:05:33] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:06:05 [end_date_ymd] => 2024-12-17 15:06:05 [RateCDR] => 1 ) [2024-12-17 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 12:06:05' and `end` < '2024-12-17 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 15:06:21] Production.INFO: count ==5140 [2024-12-17 15:06:23] Production.ERROR: pbx CDR StartTime 2024-12-17 12:06:05 - End Time 2024-12-17 15:06:05 [2024-12-17 15:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041618', 'tblTempUsageDetail_20' ) start [2024-12-17 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041618', 'tblTempUsageDetail_20' ) end [2024-12-17 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041618', 'tblTempVendorCDR_20' ) start [2024-12-17 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041618', 'tblTempVendorCDR_20' ) end [2024-12-17 15:06:23] Production.INFO: ProcessCDR(1,14041618,1,1,2) [2024-12-17 15:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041618', 'tblTempUsageDetail_20' ) start [2024-12-17 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041618', 'tblTempUsageDetail_20' ) end [2024-12-17 15:06:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:06:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:06:27] Production.INFO: ==9570== Releasing lock... [2024-12-17 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:06:27] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:07:04 [end_date_ymd] => 2024-12-17 15:07:04 [RateCDR] => 1 ) [2024-12-17 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-17 12:07:04' and `end` < '2024-12-17 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-17 15:07:17] Production.INFO: count ==5126 [2024-12-17 15:07:19] Production.ERROR: pbx CDR StartTime 2024-12-17 12:07:04 - End Time 2024-12-17 15:07:04 [2024-12-17 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041623', 'tblTempUsageDetail_20' ) start [2024-12-17 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041623', 'tblTempUsageDetail_20' ) end [2024-12-17 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041623', 'tblTempVendorCDR_20' ) start [2024-12-17 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041623', 'tblTempVendorCDR_20' ) end [2024-12-17 15:07:19] Production.INFO: ProcessCDR(1,14041623,1,1,2) [2024-12-17 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041623', 'tblTempUsageDetail_20' ) start [2024-12-17 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041623', 'tblTempUsageDetail_20' ) end [2024-12-17 15:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:07:24] Production.INFO: ==9640== Releasing lock... [2024-12-17 15:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:07:24] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:08:05 [end_date_ymd] => 2024-12-17 15:08:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:08:05' and `end` < '2024-12-17 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-17 15:08:18] Production.INFO: count ==5118 [2024-12-17 15:08:20] Production.ERROR: pbx CDR StartTime 2024-12-17 12:08:05 - End Time 2024-12-17 15:08:05 [2024-12-17 15:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041628', 'tblTempUsageDetail_20' ) start [2024-12-17 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041628', 'tblTempUsageDetail_20' ) end [2024-12-17 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041628', 'tblTempVendorCDR_20' ) start [2024-12-17 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041628', 'tblTempVendorCDR_20' ) end [2024-12-17 15:08:20] Production.INFO: ProcessCDR(1,14041628,1,1,2) [2024-12-17 15:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041628', 'tblTempUsageDetail_20' ) start [2024-12-17 15:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041628', 'tblTempUsageDetail_20' ) end [2024-12-17 15:08:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:08:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:08:25] Production.INFO: ==9790== Releasing lock... [2024-12-17 15:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:08:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 15:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:09:04 [end_date_ymd] => 2024-12-17 15:09:04 [RateCDR] => 1 ) [2024-12-17 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-17 12:09:04' and `end` < '2024-12-17 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-17 15:09:17] Production.INFO: count ==5110 [2024-12-17 15:09:19] Production.ERROR: pbx CDR StartTime 2024-12-17 12:09:04 - End Time 2024-12-17 15:09:04 [2024-12-17 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041633', 'tblTempUsageDetail_20' ) start [2024-12-17 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041633', 'tblTempUsageDetail_20' ) end [2024-12-17 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041633', 'tblTempVendorCDR_20' ) start [2024-12-17 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041633', 'tblTempVendorCDR_20' ) end [2024-12-17 15:09:20] Production.INFO: ProcessCDR(1,14041633,1,1,2) [2024-12-17 15:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041633', 'tblTempUsageDetail_20' ) start [2024-12-17 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041633', 'tblTempUsageDetail_20' ) end [2024-12-17 15:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:09:23] Production.INFO: ==9863== Releasing lock... [2024-12-17 15:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:09:23] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:10:05 [end_date_ymd] => 2024-12-17 15:10:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:10:05' and `end` < '2024-12-17 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-17 15:10:21] Production.INFO: count ==5108 [2024-12-17 15:10:23] Production.ERROR: pbx CDR StartTime 2024-12-17 12:10:05 - End Time 2024-12-17 15:10:05 [2024-12-17 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041639', 'tblTempUsageDetail_20' ) start [2024-12-17 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041639', 'tblTempUsageDetail_20' ) end [2024-12-17 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041639', 'tblTempVendorCDR_20' ) start [2024-12-17 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041639', 'tblTempVendorCDR_20' ) end [2024-12-17 15:10:23] Production.INFO: ProcessCDR(1,14041639,1,1,2) [2024-12-17 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041639', 'tblTempUsageDetail_20' ) start [2024-12-17 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041639', 'tblTempUsageDetail_20' ) end [2024-12-17 15:10:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:10:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:10:28] Production.INFO: ==9936== Releasing lock... [2024-12-17 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:10:28] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:11:05 [end_date_ymd] => 2024-12-17 15:11:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:11:05' and `end` < '2024-12-17 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-17 15:11:18] Production.INFO: count ==5128 [2024-12-17 15:11:20] Production.ERROR: pbx CDR StartTime 2024-12-17 12:11:05 - End Time 2024-12-17 15:11:05 [2024-12-17 15:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041644', 'tblTempUsageDetail_20' ) start [2024-12-17 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041644', 'tblTempUsageDetail_20' ) end [2024-12-17 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041644', 'tblTempVendorCDR_20' ) start [2024-12-17 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041644', 'tblTempVendorCDR_20' ) end [2024-12-17 15:11:20] Production.INFO: ProcessCDR(1,14041644,1,1,2) [2024-12-17 15:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041644', 'tblTempUsageDetail_20' ) start [2024-12-17 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041644', 'tblTempUsageDetail_20' ) end [2024-12-17 15:11:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:11:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:11:25] Production.INFO: ==10011== Releasing lock... [2024-12-17 15:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:11:25] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:12:05 [end_date_ymd] => 2024-12-17 15:12:05 [RateCDR] => 1 ) [2024-12-17 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 12:12:05' and `end` < '2024-12-17 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 15:12:21] Production.INFO: count ==5132 [2024-12-17 15:12:23] Production.ERROR: pbx CDR StartTime 2024-12-17 12:12:05 - End Time 2024-12-17 15:12:05 [2024-12-17 15:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041649', 'tblTempUsageDetail_20' ) start [2024-12-17 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041649', 'tblTempUsageDetail_20' ) end [2024-12-17 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041649', 'tblTempVendorCDR_20' ) start [2024-12-17 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041649', 'tblTempVendorCDR_20' ) end [2024-12-17 15:12:23] Production.INFO: ProcessCDR(1,14041649,1,1,2) [2024-12-17 15:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041649', 'tblTempUsageDetail_20' ) start [2024-12-17 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041649', 'tblTempUsageDetail_20' ) end [2024-12-17 15:12:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:12:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:12:28] Production.INFO: ==10161== Releasing lock... [2024-12-17 15:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:12:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-17 15:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:13:04 [end_date_ymd] => 2024-12-17 15:13:04 [RateCDR] => 1 ) [2024-12-17 15: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 12:13:04' and `end` < '2024-12-17 15: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-17 15:13:22] Production.INFO: count ==5115 [2024-12-17 15:13:24] Production.ERROR: pbx CDR StartTime 2024-12-17 12:13:04 - End Time 2024-12-17 15:13:04 [2024-12-17 15:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041654', 'tblTempUsageDetail_20' ) start [2024-12-17 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041654', 'tblTempUsageDetail_20' ) end [2024-12-17 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041654', 'tblTempVendorCDR_20' ) start [2024-12-17 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041654', 'tblTempVendorCDR_20' ) end [2024-12-17 15:13:25] Production.INFO: ProcessCDR(1,14041654,1,1,2) [2024-12-17 15:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041654', 'tblTempUsageDetail_20' ) start [2024-12-17 15:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041654', 'tblTempUsageDetail_20' ) end [2024-12-17 15:13:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:13:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:13:29] Production.INFO: ==10237== Releasing lock... [2024-12-17 15:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:13:29] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:14:05 [end_date_ymd] => 2024-12-17 15:14:05 [RateCDR] => 1 ) [2024-12-17 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 12:14:05' and `end` < '2024-12-17 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 15:14:23] Production.INFO: count ==5106 [2024-12-17 15:14:26] Production.ERROR: pbx CDR StartTime 2024-12-17 12:14:05 - End Time 2024-12-17 15:14:05 [2024-12-17 15:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041659', 'tblTempUsageDetail_20' ) start [2024-12-17 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041659', 'tblTempUsageDetail_20' ) end [2024-12-17 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041659', 'tblTempVendorCDR_20' ) start [2024-12-17 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041659', 'tblTempVendorCDR_20' ) end [2024-12-17 15:14:26] Production.INFO: ProcessCDR(1,14041659,1,1,2) [2024-12-17 15:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041659', 'tblTempUsageDetail_20' ) start [2024-12-17 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041659', 'tblTempUsageDetail_20' ) end [2024-12-17 15:14:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:14:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:14:30] Production.INFO: ==10309== Releasing lock... [2024-12-17 15:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:14:30] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:15:05 [end_date_ymd] => 2024-12-17 15:15:05 [RateCDR] => 1 ) [2024-12-17 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 12:15:05' and `end` < '2024-12-17 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 15:15:26] Production.INFO: count ==5098 [2024-12-17 15:15:28] Production.ERROR: pbx CDR StartTime 2024-12-17 12:15:05 - End Time 2024-12-17 15:15:05 [2024-12-17 15:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041664', 'tblTempUsageDetail_20' ) start [2024-12-17 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041664', 'tblTempUsageDetail_20' ) end [2024-12-17 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041664', 'tblTempVendorCDR_20' ) start [2024-12-17 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041664', 'tblTempVendorCDR_20' ) end [2024-12-17 15:15:28] Production.INFO: ProcessCDR(1,14041664,1,1,2) [2024-12-17 15:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041664', 'tblTempUsageDetail_20' ) start [2024-12-17 15:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041664', 'tblTempUsageDetail_20' ) end [2024-12-17 15:15:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:15:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:15:33] Production.INFO: ==10458== Releasing lock... [2024-12-17 15:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:15:33] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:16:06 [end_date_ymd] => 2024-12-17 15:16:06 [RateCDR] => 1 ) [2024-12-17 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 12:16:06' and `end` < '2024-12-17 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 15:16:21] Production.INFO: count ==5093 [2024-12-17 15:16:23] Production.ERROR: pbx CDR StartTime 2024-12-17 12:16:06 - End Time 2024-12-17 15:16:06 [2024-12-17 15:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041669', 'tblTempUsageDetail_20' ) start [2024-12-17 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041669', 'tblTempUsageDetail_20' ) end [2024-12-17 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041669', 'tblTempVendorCDR_20' ) start [2024-12-17 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041669', 'tblTempVendorCDR_20' ) end [2024-12-17 15:16:23] Production.INFO: ProcessCDR(1,14041669,1,1,2) [2024-12-17 15:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041669', 'tblTempUsageDetail_20' ) start [2024-12-17 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041669', 'tblTempUsageDetail_20' ) end [2024-12-17 15:16:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:16:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:16:28] Production.INFO: ==10529== Releasing lock... [2024-12-17 15:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:16:28] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 15:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:17:04 [end_date_ymd] => 2024-12-17 15:17:04 [RateCDR] => 1 ) [2024-12-17 15: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 12:17:04' and `end` < '2024-12-17 15: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-17 15:17:18] Production.INFO: count ==5080 [2024-12-17 15:17:20] Production.ERROR: pbx CDR StartTime 2024-12-17 12:17:04 - End Time 2024-12-17 15:17:04 [2024-12-17 15:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041674', 'tblTempUsageDetail_20' ) start [2024-12-17 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041674', 'tblTempUsageDetail_20' ) end [2024-12-17 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041674', 'tblTempVendorCDR_20' ) start [2024-12-17 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041674', 'tblTempVendorCDR_20' ) end [2024-12-17 15:17:20] Production.INFO: ProcessCDR(1,14041674,1,1,2) [2024-12-17 15:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041674', 'tblTempUsageDetail_20' ) start [2024-12-17 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041674', 'tblTempUsageDetail_20' ) end [2024-12-17 15:17:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:17:25] Production.INFO: ==10601== Releasing lock... [2024-12-17 15:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:17:25] Production.INFO: 66 MB #Memory Used# [2024-12-17 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:18:05 [end_date_ymd] => 2024-12-17 15:18:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:18:05' and `end` < '2024-12-17 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-17 15:18:23] Production.INFO: count ==5056 [2024-12-17 15:18:25] Production.ERROR: pbx CDR StartTime 2024-12-17 12:18:05 - End Time 2024-12-17 15:18:05 [2024-12-17 15:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041679', 'tblTempUsageDetail_20' ) start [2024-12-17 15:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041679', 'tblTempUsageDetail_20' ) end [2024-12-17 15:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041679', 'tblTempVendorCDR_20' ) start [2024-12-17 15:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041679', 'tblTempVendorCDR_20' ) end [2024-12-17 15:18:26] Production.INFO: ProcessCDR(1,14041679,1,1,2) [2024-12-17 15:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041679', 'tblTempUsageDetail_20' ) start [2024-12-17 15:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041679', 'tblTempUsageDetail_20' ) end [2024-12-17 15:18:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:18:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:18:30] Production.INFO: ==10672== Releasing lock... [2024-12-17 15:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:18:30] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:19:04 [end_date_ymd] => 2024-12-17 15:19:04 [RateCDR] => 1 ) [2024-12-17 15: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-17 12:19:04' and `end` < '2024-12-17 15: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-17 15:19:21] Production.INFO: count ==5075 [2024-12-17 15:19:23] Production.ERROR: pbx CDR StartTime 2024-12-17 12:19:04 - End Time 2024-12-17 15:19:04 [2024-12-17 15:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041684', 'tblTempUsageDetail_20' ) start [2024-12-17 15:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041684', 'tblTempUsageDetail_20' ) end [2024-12-17 15:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041684', 'tblTempVendorCDR_20' ) start [2024-12-17 15:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041684', 'tblTempVendorCDR_20' ) end [2024-12-17 15:19:23] Production.INFO: ProcessCDR(1,14041684,1,1,2) [2024-12-17 15:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041684', 'tblTempUsageDetail_20' ) start [2024-12-17 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041684', 'tblTempUsageDetail_20' ) end [2024-12-17 15:19:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:19:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:19:28] Production.INFO: ==10748== Releasing lock... [2024-12-17 15:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:19:28] Production.INFO: 66 MB #Memory Used# [2024-12-17 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:20:05 [end_date_ymd] => 2024-12-17 15:20:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:20:05' and `end` < '2024-12-17 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-17 15:20:21] Production.INFO: count ==5054 [2024-12-17 15:20:23] Production.ERROR: pbx CDR StartTime 2024-12-17 12:20:05 - End Time 2024-12-17 15:20:05 [2024-12-17 15:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041690', 'tblTempUsageDetail_20' ) start [2024-12-17 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041690', 'tblTempUsageDetail_20' ) end [2024-12-17 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041690', 'tblTempVendorCDR_20' ) start [2024-12-17 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041690', 'tblTempVendorCDR_20' ) end [2024-12-17 15:20:23] Production.INFO: ProcessCDR(1,14041690,1,1,2) [2024-12-17 15:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041690', 'tblTempUsageDetail_20' ) start [2024-12-17 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041690', 'tblTempUsageDetail_20' ) end [2024-12-17 15:20:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:20:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:20:29] Production.INFO: ==10861== Releasing lock... [2024-12-17 15:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:20:29] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:21:05 [end_date_ymd] => 2024-12-17 15:21:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:21:05' and `end` < '2024-12-17 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-17 15:21:20] Production.INFO: count ==5022 [2024-12-17 15:21:22] Production.ERROR: pbx CDR StartTime 2024-12-17 12:21:05 - End Time 2024-12-17 15:21:05 [2024-12-17 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041695', 'tblTempUsageDetail_20' ) start [2024-12-17 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041695', 'tblTempUsageDetail_20' ) end [2024-12-17 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041695', 'tblTempVendorCDR_20' ) start [2024-12-17 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041695', 'tblTempVendorCDR_20' ) end [2024-12-17 15:21:22] Production.INFO: ProcessCDR(1,14041695,1,1,2) [2024-12-17 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041695', 'tblTempUsageDetail_20' ) start [2024-12-17 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041695', 'tblTempUsageDetail_20' ) end [2024-12-17 15:21:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:21:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:21:27] Production.INFO: ==10933== Releasing lock... [2024-12-17 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:21:27] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:22:05 [end_date_ymd] => 2024-12-17 15:22:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:22:05' and `end` < '2024-12-17 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-17 15:22:21] Production.INFO: count ==5020 [2024-12-17 15:22:23] Production.ERROR: pbx CDR StartTime 2024-12-17 12:22:05 - End Time 2024-12-17 15:22:05 [2024-12-17 15:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041700', 'tblTempUsageDetail_20' ) start [2024-12-17 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041700', 'tblTempUsageDetail_20' ) end [2024-12-17 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041700', 'tblTempVendorCDR_20' ) start [2024-12-17 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041700', 'tblTempVendorCDR_20' ) end [2024-12-17 15:22:23] Production.INFO: ProcessCDR(1,14041700,1,1,2) [2024-12-17 15:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041700', 'tblTempUsageDetail_20' ) start [2024-12-17 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041700', 'tblTempUsageDetail_20' ) end [2024-12-17 15:22:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:22:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:22:27] Production.INFO: ==11003== Releasing lock... [2024-12-17 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:22:27] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:23:05 [end_date_ymd] => 2024-12-17 15:23:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:23:05' and `end` < '2024-12-17 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-17 15:23:19] Production.INFO: count ==5019 [2024-12-17 15:23:21] Production.ERROR: pbx CDR StartTime 2024-12-17 12:23:05 - End Time 2024-12-17 15:23:05 [2024-12-17 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041705', 'tblTempUsageDetail_20' ) start [2024-12-17 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041705', 'tblTempUsageDetail_20' ) end [2024-12-17 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041705', 'tblTempVendorCDR_20' ) start [2024-12-17 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041705', 'tblTempVendorCDR_20' ) end [2024-12-17 15:23:21] Production.INFO: ProcessCDR(1,14041705,1,1,2) [2024-12-17 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041705', 'tblTempUsageDetail_20' ) start [2024-12-17 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041705', 'tblTempUsageDetail_20' ) end [2024-12-17 15:23:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:23:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:23:26] Production.INFO: ==11072== Releasing lock... [2024-12-17 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:23:26] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:24:05 [end_date_ymd] => 2024-12-17 15:24:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:24:05' and `end` < '2024-12-17 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-17 15:24:18] Production.INFO: count ==5046 [2024-12-17 15:24:20] Production.ERROR: pbx CDR StartTime 2024-12-17 12:24:05 - End Time 2024-12-17 15:24:05 [2024-12-17 15:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041710', 'tblTempUsageDetail_20' ) start [2024-12-17 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041710', 'tblTempUsageDetail_20' ) end [2024-12-17 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041710', 'tblTempVendorCDR_20' ) start [2024-12-17 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041710', 'tblTempVendorCDR_20' ) end [2024-12-17 15:24:20] Production.INFO: ProcessCDR(1,14041710,1,1,2) [2024-12-17 15:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041710', 'tblTempUsageDetail_20' ) start [2024-12-17 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041710', 'tblTempUsageDetail_20' ) end [2024-12-17 15:24:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:24:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:24:25] Production.INFO: ==11147== Releasing lock... [2024-12-17 15:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:24:25] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:25:04 [end_date_ymd] => 2024-12-17 15:25:04 [RateCDR] => 1 ) [2024-12-17 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-17 12:25:04' and `end` < '2024-12-17 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-17 15:25:26] Production.INFO: count ==5022 [2024-12-17 15:25:28] Production.ERROR: pbx CDR StartTime 2024-12-17 12:25:04 - End Time 2024-12-17 15:25:04 [2024-12-17 15:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041715', 'tblTempUsageDetail_20' ) start [2024-12-17 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041715', 'tblTempUsageDetail_20' ) end [2024-12-17 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041715', 'tblTempVendorCDR_20' ) start [2024-12-17 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041715', 'tblTempVendorCDR_20' ) end [2024-12-17 15:25:28] Production.INFO: ProcessCDR(1,14041715,1,1,2) [2024-12-17 15:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041715', 'tblTempUsageDetail_20' ) start [2024-12-17 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041715', 'tblTempUsageDetail_20' ) end [2024-12-17 15:25:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:25:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:25:32] Production.INFO: ==11218== Releasing lock... [2024-12-17 15:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:25:32] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:26:05 [end_date_ymd] => 2024-12-17 15:26:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:26:05' and `end` < '2024-12-17 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-17 15:26:20] Production.INFO: count ==5027 [2024-12-17 15:26:22] Production.ERROR: pbx CDR StartTime 2024-12-17 12:26:05 - End Time 2024-12-17 15:26:05 [2024-12-17 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041720', 'tblTempUsageDetail_20' ) start [2024-12-17 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041720', 'tblTempUsageDetail_20' ) end [2024-12-17 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041720', 'tblTempVendorCDR_20' ) start [2024-12-17 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041720', 'tblTempVendorCDR_20' ) end [2024-12-17 15:26:22] Production.INFO: ProcessCDR(1,14041720,1,1,2) [2024-12-17 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041720', 'tblTempUsageDetail_20' ) start [2024-12-17 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041720', 'tblTempUsageDetail_20' ) end [2024-12-17 15:26:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:26:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:26:27] Production.INFO: ==11289== Releasing lock... [2024-12-17 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:26:27] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:27:05 [end_date_ymd] => 2024-12-17 15:27:05 [RateCDR] => 1 ) [2024-12-17 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 12:27:05' and `end` < '2024-12-17 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 15:27:18] Production.INFO: count ==5017 [2024-12-17 15:27:20] Production.ERROR: pbx CDR StartTime 2024-12-17 12:27:05 - End Time 2024-12-17 15:27:05 [2024-12-17 15:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041725', 'tblTempUsageDetail_20' ) start [2024-12-17 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041725', 'tblTempUsageDetail_20' ) end [2024-12-17 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041725', 'tblTempVendorCDR_20' ) start [2024-12-17 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041725', 'tblTempVendorCDR_20' ) end [2024-12-17 15:27:20] Production.INFO: ProcessCDR(1,14041725,1,1,2) [2024-12-17 15:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041725', 'tblTempUsageDetail_20' ) start [2024-12-17 15:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041725', 'tblTempUsageDetail_20' ) end [2024-12-17 15:27:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:27:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:27:24] Production.INFO: ==11363== Releasing lock... [2024-12-17 15:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:27:24] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:28:05 [end_date_ymd] => 2024-12-17 15:28:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:28:05' and `end` < '2024-12-17 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-17 15:28:18] Production.INFO: count ==5010 [2024-12-17 15:28:20] Production.ERROR: pbx CDR StartTime 2024-12-17 12:28:05 - End Time 2024-12-17 15:28:05 [2024-12-17 15:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041730', 'tblTempUsageDetail_20' ) start [2024-12-17 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041730', 'tblTempUsageDetail_20' ) end [2024-12-17 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041730', 'tblTempVendorCDR_20' ) start [2024-12-17 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041730', 'tblTempVendorCDR_20' ) end [2024-12-17 15:28:20] Production.INFO: ProcessCDR(1,14041730,1,1,2) [2024-12-17 15:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041730', 'tblTempUsageDetail_20' ) start [2024-12-17 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041730', 'tblTempUsageDetail_20' ) end [2024-12-17 15:28:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:28:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:28:25] Production.INFO: ==11437== Releasing lock... [2024-12-17 15:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:28:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:29:05 [end_date_ymd] => 2024-12-17 15:29:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:29:05' and `end` < '2024-12-17 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-17 15:29:18] Production.INFO: count ==5029 [2024-12-17 15:29:20] Production.ERROR: pbx CDR StartTime 2024-12-17 12:29:05 - End Time 2024-12-17 15:29:05 [2024-12-17 15:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041735', 'tblTempUsageDetail_20' ) start [2024-12-17 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041735', 'tblTempUsageDetail_20' ) end [2024-12-17 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041735', 'tblTempVendorCDR_20' ) start [2024-12-17 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041735', 'tblTempVendorCDR_20' ) end [2024-12-17 15:29:20] Production.INFO: ProcessCDR(1,14041735,1,1,2) [2024-12-17 15:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041735', 'tblTempUsageDetail_20' ) start [2024-12-17 15:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041735', 'tblTempUsageDetail_20' ) end [2024-12-17 15:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:29:24] Production.INFO: ==11508== Releasing lock... [2024-12-17 15:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:29:24] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:30:05 [end_date_ymd] => 2024-12-17 15:30:05 [RateCDR] => 1 ) [2024-12-17 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 12:30:05' and `end` < '2024-12-17 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 15:30:21] Production.INFO: count ==5033 [2024-12-17 15:30:23] Production.ERROR: pbx CDR StartTime 2024-12-17 12:30:05 - End Time 2024-12-17 15:30:05 [2024-12-17 15:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041740', 'tblTempUsageDetail_20' ) start [2024-12-17 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041740', 'tblTempUsageDetail_20' ) end [2024-12-17 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041740', 'tblTempVendorCDR_20' ) start [2024-12-17 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041740', 'tblTempVendorCDR_20' ) end [2024-12-17 15:30:23] Production.INFO: ProcessCDR(1,14041740,1,1,2) [2024-12-17 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041740', 'tblTempUsageDetail_20' ) start [2024-12-17 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041740', 'tblTempUsageDetail_20' ) end [2024-12-17 15:30:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:30:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:30:27] Production.INFO: ==11585== Releasing lock... [2024-12-17 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:30:27] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:31:04 [end_date_ymd] => 2024-12-17 15:31:04 [RateCDR] => 1 ) [2024-12-17 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-17 12:31:04' and `end` < '2024-12-17 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-17 15:31:32] Production.INFO: count ==5031 [2024-12-17 15:31:34] Production.ERROR: pbx CDR StartTime 2024-12-17 12:31:04 - End Time 2024-12-17 15:31:04 [2024-12-17 15:31:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:31:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041746', 'tblTempUsageDetail_20' ) start [2024-12-17 15:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041746', 'tblTempUsageDetail_20' ) end [2024-12-17 15:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041746', 'tblTempVendorCDR_20' ) start [2024-12-17 15:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041746', 'tblTempVendorCDR_20' ) end [2024-12-17 15:31:35] Production.INFO: ProcessCDR(1,14041746,1,1,2) [2024-12-17 15:31:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:31:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:31:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:31:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:31:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041746', 'tblTempUsageDetail_20' ) start [2024-12-17 15:31:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041746', 'tblTempUsageDetail_20' ) end [2024-12-17 15:31:39] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:31:39] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:31:39] Production.INFO: ==11659== Releasing lock... [2024-12-17 15:31:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:31:39] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:32:05 [end_date_ymd] => 2024-12-17 15:32:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:32:05' and `end` < '2024-12-17 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-17 15:32:22] Production.INFO: count ==5045 [2024-12-17 15:32:24] Production.ERROR: pbx CDR StartTime 2024-12-17 12:32:05 - End Time 2024-12-17 15:32:05 [2024-12-17 15:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041751', 'tblTempUsageDetail_20' ) start [2024-12-17 15:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041751', 'tblTempUsageDetail_20' ) end [2024-12-17 15:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041751', 'tblTempVendorCDR_20' ) start [2024-12-17 15:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041751', 'tblTempVendorCDR_20' ) end [2024-12-17 15:32:24] Production.INFO: ProcessCDR(1,14041751,1,1,2) [2024-12-17 15:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041751', 'tblTempUsageDetail_20' ) start [2024-12-17 15:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041751', 'tblTempUsageDetail_20' ) end [2024-12-17 15:32:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:32:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:32:29] Production.INFO: ==11732== Releasing lock... [2024-12-17 15:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:32:29] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:33:05 [end_date_ymd] => 2024-12-17 15:33:05 [RateCDR] => 1 ) [2024-12-17 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 12:33:05' and `end` < '2024-12-17 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 15:33:24] Production.INFO: count ==5053 [2024-12-17 15:33:26] Production.ERROR: pbx CDR StartTime 2024-12-17 12:33:05 - End Time 2024-12-17 15:33:05 [2024-12-17 15:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041756', 'tblTempUsageDetail_20' ) start [2024-12-17 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041756', 'tblTempUsageDetail_20' ) end [2024-12-17 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041756', 'tblTempVendorCDR_20' ) start [2024-12-17 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041756', 'tblTempVendorCDR_20' ) end [2024-12-17 15:33:26] Production.INFO: ProcessCDR(1,14041756,1,1,2) [2024-12-17 15:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041756', 'tblTempUsageDetail_20' ) start [2024-12-17 15:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041756', 'tblTempUsageDetail_20' ) end [2024-12-17 15:33:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:33:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:33:31] Production.INFO: ==11805== Releasing lock... [2024-12-17 15:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:33:31] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:34:05 [end_date_ymd] => 2024-12-17 15:34:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:34:05' and `end` < '2024-12-17 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-17 15:34:20] Production.INFO: count ==5041 [2024-12-17 15:34:22] Production.ERROR: pbx CDR StartTime 2024-12-17 12:34:05 - End Time 2024-12-17 15:34:05 [2024-12-17 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041761', 'tblTempUsageDetail_20' ) start [2024-12-17 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041761', 'tblTempUsageDetail_20' ) end [2024-12-17 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041761', 'tblTempVendorCDR_20' ) start [2024-12-17 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041761', 'tblTempVendorCDR_20' ) end [2024-12-17 15:34:22] Production.INFO: ProcessCDR(1,14041761,1,1,2) [2024-12-17 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041761', 'tblTempUsageDetail_20' ) start [2024-12-17 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041761', 'tblTempUsageDetail_20' ) end [2024-12-17 15:34:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:34:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:34:27] Production.INFO: ==11874== Releasing lock... [2024-12-17 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:34:27] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:35:05 [end_date_ymd] => 2024-12-17 15:35:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:35:05' and `end` < '2024-12-17 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-17 15:35:37] Production.INFO: count ==5038 [2024-12-17 15:35:39] Production.ERROR: pbx CDR StartTime 2024-12-17 12:35:05 - End Time 2024-12-17 15:35:05 [2024-12-17 15:35:39] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041766', 'tblTempUsageDetail_20' ) start [2024-12-17 15:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041766', 'tblTempUsageDetail_20' ) end [2024-12-17 15:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041766', 'tblTempVendorCDR_20' ) start [2024-12-17 15:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041766', 'tblTempVendorCDR_20' ) end [2024-12-17 15:35:39] Production.INFO: ProcessCDR(1,14041766,1,1,2) [2024-12-17 15:35:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:35:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:35:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:35:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:35:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041766', 'tblTempUsageDetail_20' ) start [2024-12-17 15:35:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041766', 'tblTempUsageDetail_20' ) end [2024-12-17 15:35:43] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:35:44] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:35:44] Production.INFO: ==11945== Releasing lock... [2024-12-17 15:35:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:35:44] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:36:04 [end_date_ymd] => 2024-12-17 15:36:04 [RateCDR] => 1 ) [2024-12-17 15: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-17 12:36:04' and `end` < '2024-12-17 15: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-17 15:36:26] Production.INFO: count ==5032 [2024-12-17 15:36:28] Production.ERROR: pbx CDR StartTime 2024-12-17 12:36:04 - End Time 2024-12-17 15:36:04 [2024-12-17 15:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041771', 'tblTempUsageDetail_20' ) start [2024-12-17 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041771', 'tblTempUsageDetail_20' ) end [2024-12-17 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041771', 'tblTempVendorCDR_20' ) start [2024-12-17 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041771', 'tblTempVendorCDR_20' ) end [2024-12-17 15:36:28] Production.INFO: ProcessCDR(1,14041771,1,1,2) [2024-12-17 15:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041771', 'tblTempUsageDetail_20' ) start [2024-12-17 15:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041771', 'tblTempUsageDetail_20' ) end [2024-12-17 15:36:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:36:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:36:32] Production.INFO: ==12054== Releasing lock... [2024-12-17 15:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:36:32] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:37:05 [end_date_ymd] => 2024-12-17 15:37:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:37:05' and `end` < '2024-12-17 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-17 15:37:24] Production.INFO: count ==5008 [2024-12-17 15:37:26] Production.ERROR: pbx CDR StartTime 2024-12-17 12:37:05 - End Time 2024-12-17 15:37:05 [2024-12-17 15:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041776', 'tblTempUsageDetail_20' ) start [2024-12-17 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041776', 'tblTempUsageDetail_20' ) end [2024-12-17 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041776', 'tblTempVendorCDR_20' ) start [2024-12-17 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041776', 'tblTempVendorCDR_20' ) end [2024-12-17 15:37:26] Production.INFO: ProcessCDR(1,14041776,1,1,2) [2024-12-17 15:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041776', 'tblTempUsageDetail_20' ) start [2024-12-17 15:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041776', 'tblTempUsageDetail_20' ) end [2024-12-17 15:37:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:37:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:37:31] Production.INFO: ==12126== Releasing lock... [2024-12-17 15:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:37:31] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 15:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:38:04 [end_date_ymd] => 2024-12-17 15:38:04 [RateCDR] => 1 ) [2024-12-17 15: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-17 12:38:04' and `end` < '2024-12-17 15: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-17 15:38:18] Production.INFO: count ==5011 [2024-12-17 15:38:20] Production.ERROR: pbx CDR StartTime 2024-12-17 12:38:04 - End Time 2024-12-17 15:38:04 [2024-12-17 15:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041781', 'tblTempUsageDetail_20' ) start [2024-12-17 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041781', 'tblTempUsageDetail_20' ) end [2024-12-17 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041781', 'tblTempVendorCDR_20' ) start [2024-12-17 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041781', 'tblTempVendorCDR_20' ) end [2024-12-17 15:38:20] Production.INFO: ProcessCDR(1,14041781,1,1,2) [2024-12-17 15:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041781', 'tblTempUsageDetail_20' ) start [2024-12-17 15:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041781', 'tblTempUsageDetail_20' ) end [2024-12-17 15:38:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:38:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:38:25] Production.INFO: ==12197== Releasing lock... [2024-12-17 15:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:38:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:39:05 [end_date_ymd] => 2024-12-17 15:39:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:39:05' and `end` < '2024-12-17 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-17 15:39:24] Production.INFO: count ==5042 [2024-12-17 15:39:26] Production.ERROR: pbx CDR StartTime 2024-12-17 12:39:05 - End Time 2024-12-17 15:39:05 [2024-12-17 15:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041786', 'tblTempUsageDetail_20' ) start [2024-12-17 15:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041786', 'tblTempUsageDetail_20' ) end [2024-12-17 15:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041786', 'tblTempVendorCDR_20' ) start [2024-12-17 15:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041786', 'tblTempVendorCDR_20' ) end [2024-12-17 15:39:26] Production.INFO: ProcessCDR(1,14041786,1,1,2) [2024-12-17 15:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041786', 'tblTempUsageDetail_20' ) start [2024-12-17 15:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041786', 'tblTempUsageDetail_20' ) end [2024-12-17 15:39:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:39:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:39:31] Production.INFO: ==12267== Releasing lock... [2024-12-17 15:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:39:31] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:40:06 [end_date_ymd] => 2024-12-17 15:40:06 [RateCDR] => 1 ) [2024-12-17 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-17 12:40:06' and `end` < '2024-12-17 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-17 15:40:26] Production.INFO: count ==5039 [2024-12-17 15:40:28] Production.ERROR: pbx CDR StartTime 2024-12-17 12:40:06 - End Time 2024-12-17 15:40:06 [2024-12-17 15:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041792', 'tblTempUsageDetail_20' ) start [2024-12-17 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041792', 'tblTempUsageDetail_20' ) end [2024-12-17 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041792', 'tblTempVendorCDR_20' ) start [2024-12-17 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041792', 'tblTempVendorCDR_20' ) end [2024-12-17 15:40:28] Production.INFO: ProcessCDR(1,14041792,1,1,2) [2024-12-17 15:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041792', 'tblTempUsageDetail_20' ) start [2024-12-17 15:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041792', 'tblTempUsageDetail_20' ) end [2024-12-17 15:40:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:40:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:40:33] Production.INFO: ==12341== Releasing lock... [2024-12-17 15:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:40:33] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:41:05 [end_date_ymd] => 2024-12-17 15:41:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:41:05' and `end` < '2024-12-17 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-17 15:41:28] Production.INFO: count ==5066 [2024-12-17 15:41:30] Production.ERROR: pbx CDR StartTime 2024-12-17 12:41:05 - End Time 2024-12-17 15:41:05 [2024-12-17 15:41:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041797', 'tblTempUsageDetail_20' ) start [2024-12-17 15:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041797', 'tblTempUsageDetail_20' ) end [2024-12-17 15:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041797', 'tblTempVendorCDR_20' ) start [2024-12-17 15:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041797', 'tblTempVendorCDR_20' ) end [2024-12-17 15:41:30] Production.INFO: ProcessCDR(1,14041797,1,1,2) [2024-12-17 15:41:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:41:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:41:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041797', 'tblTempUsageDetail_20' ) start [2024-12-17 15:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041797', 'tblTempUsageDetail_20' ) end [2024-12-17 15:41:35] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:41:35] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:41:35] Production.INFO: ==12419== Releasing lock... [2024-12-17 15:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:41:35] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:42:05 [end_date_ymd] => 2024-12-17 15:42:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:42:05' and `end` < '2024-12-17 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-17 15:42:24] Production.INFO: count ==5077 [2024-12-17 15:42:26] Production.ERROR: pbx CDR StartTime 2024-12-17 12:42:05 - End Time 2024-12-17 15:42:05 [2024-12-17 15:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041802', 'tblTempUsageDetail_20' ) start [2024-12-17 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041802', 'tblTempUsageDetail_20' ) end [2024-12-17 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041802', 'tblTempVendorCDR_20' ) start [2024-12-17 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041802', 'tblTempVendorCDR_20' ) end [2024-12-17 15:42:26] Production.INFO: ProcessCDR(1,14041802,1,1,2) [2024-12-17 15:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041802', 'tblTempUsageDetail_20' ) start [2024-12-17 15:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041802', 'tblTempUsageDetail_20' ) end [2024-12-17 15:42:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:42:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:42:30] Production.INFO: ==12497== Releasing lock... [2024-12-17 15:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:42:30] Production.INFO: 66 MB #Memory Used# [2024-12-17 15:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:43:04 [end_date_ymd] => 2024-12-17 15:43:04 [RateCDR] => 1 ) [2024-12-17 15: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 12:43:04' and `end` < '2024-12-17 15: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-17 15:43:24] Production.INFO: count ==5088 [2024-12-17 15:43:26] Production.ERROR: pbx CDR StartTime 2024-12-17 12:43:04 - End Time 2024-12-17 15:43:04 [2024-12-17 15:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041807', 'tblTempUsageDetail_20' ) start [2024-12-17 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041807', 'tblTempUsageDetail_20' ) end [2024-12-17 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041807', 'tblTempVendorCDR_20' ) start [2024-12-17 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041807', 'tblTempVendorCDR_20' ) end [2024-12-17 15:43:27] Production.INFO: ProcessCDR(1,14041807,1,1,2) [2024-12-17 15:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041807', 'tblTempUsageDetail_20' ) start [2024-12-17 15:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041807', 'tblTempUsageDetail_20' ) end [2024-12-17 15:43:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:43:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:43:32] Production.INFO: ==12567== Releasing lock... [2024-12-17 15:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:43:32] Production.INFO: 66 MB #Memory Used# [2024-12-17 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:44:05 [end_date_ymd] => 2024-12-17 15:44:05 [RateCDR] => 1 ) [2024-12-17 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 12:44:05' and `end` < '2024-12-17 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 15:44:22] Production.INFO: count ==5096 [2024-12-17 15:44:24] Production.ERROR: pbx CDR StartTime 2024-12-17 12:44:05 - End Time 2024-12-17 15:44:05 [2024-12-17 15:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041812', 'tblTempUsageDetail_20' ) start [2024-12-17 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041812', 'tblTempUsageDetail_20' ) end [2024-12-17 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041812', 'tblTempVendorCDR_20' ) start [2024-12-17 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041812', 'tblTempVendorCDR_20' ) end [2024-12-17 15:44:24] Production.INFO: ProcessCDR(1,14041812,1,1,2) [2024-12-17 15:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041812', 'tblTempUsageDetail_20' ) start [2024-12-17 15:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041812', 'tblTempUsageDetail_20' ) end [2024-12-17 15:44:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:44:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:44:29] Production.INFO: ==12640== Releasing lock... [2024-12-17 15:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:44:29] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:45:05 [end_date_ymd] => 2024-12-17 15:45:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:45:05' and `end` < '2024-12-17 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-17 15:45:24] Production.INFO: count ==5111 [2024-12-17 15:45:26] Production.ERROR: pbx CDR StartTime 2024-12-17 12:45:05 - End Time 2024-12-17 15:45:05 [2024-12-17 15:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041817', 'tblTempUsageDetail_20' ) start [2024-12-17 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041817', 'tblTempUsageDetail_20' ) end [2024-12-17 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041817', 'tblTempVendorCDR_20' ) start [2024-12-17 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041817', 'tblTempVendorCDR_20' ) end [2024-12-17 15:45:26] Production.INFO: ProcessCDR(1,14041817,1,1,2) [2024-12-17 15:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041817', 'tblTempUsageDetail_20' ) start [2024-12-17 15:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041817', 'tblTempUsageDetail_20' ) end [2024-12-17 15:45:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:45:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:45:31] Production.INFO: ==12713== Releasing lock... [2024-12-17 15:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:45:31] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:46:04 [end_date_ymd] => 2024-12-17 15:46:04 [RateCDR] => 1 ) [2024-12-17 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-17 12:46:04' and `end` < '2024-12-17 15: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-17 15:46:21] Production.INFO: count ==5120 [2024-12-17 15:46:23] Production.ERROR: pbx CDR StartTime 2024-12-17 12:46:04 - End Time 2024-12-17 15:46:04 [2024-12-17 15:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041822', 'tblTempUsageDetail_20' ) start [2024-12-17 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041822', 'tblTempUsageDetail_20' ) end [2024-12-17 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041822', 'tblTempVendorCDR_20' ) start [2024-12-17 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041822', 'tblTempVendorCDR_20' ) end [2024-12-17 15:46:23] Production.INFO: ProcessCDR(1,14041822,1,1,2) [2024-12-17 15:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041822', 'tblTempUsageDetail_20' ) start [2024-12-17 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041822', 'tblTempUsageDetail_20' ) end [2024-12-17 15:46:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:46:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:46:28] Production.INFO: ==12786== Releasing lock... [2024-12-17 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:46:28] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:47:05 [end_date_ymd] => 2024-12-17 15:47:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:47:05' and `end` < '2024-12-17 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-17 15:47:29] Production.INFO: count ==5110 [2024-12-17 15:47:31] Production.ERROR: pbx CDR StartTime 2024-12-17 12:47:05 - End Time 2024-12-17 15:47:05 [2024-12-17 15:47:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041827', 'tblTempUsageDetail_20' ) start [2024-12-17 15:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041827', 'tblTempUsageDetail_20' ) end [2024-12-17 15:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041827', 'tblTempVendorCDR_20' ) start [2024-12-17 15:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041827', 'tblTempVendorCDR_20' ) end [2024-12-17 15:47:31] Production.INFO: ProcessCDR(1,14041827,1,1,2) [2024-12-17 15:47:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:47:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:47:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:47:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:47:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041827', 'tblTempUsageDetail_20' ) start [2024-12-17 15:47:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041827', 'tblTempUsageDetail_20' ) end [2024-12-17 15:47:36] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:47:36] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:47:36] Production.INFO: ==12857== Releasing lock... [2024-12-17 15:47:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:47:36] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:48:05 [end_date_ymd] => 2024-12-17 15:48:05 [RateCDR] => 1 ) [2024-12-17 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 12:48:05' and `end` < '2024-12-17 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 15:48:26] Production.INFO: count ==5085 [2024-12-17 15:48:28] Production.ERROR: pbx CDR StartTime 2024-12-17 12:48:05 - End Time 2024-12-17 15:48:05 [2024-12-17 15:48:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041832', 'tblTempUsageDetail_20' ) start [2024-12-17 15:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041832', 'tblTempUsageDetail_20' ) end [2024-12-17 15:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041832', 'tblTempVendorCDR_20' ) start [2024-12-17 15:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041832', 'tblTempVendorCDR_20' ) end [2024-12-17 15:48:28] Production.INFO: ProcessCDR(1,14041832,1,1,2) [2024-12-17 15:48:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:48:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:48:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041832', 'tblTempUsageDetail_20' ) start [2024-12-17 15:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041832', 'tblTempUsageDetail_20' ) end [2024-12-17 15:48:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:48:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:48:33] Production.INFO: ==12929== Releasing lock... [2024-12-17 15:48:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:48:33] Production.INFO: 66 MB #Memory Used# [2024-12-17 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:49:05 [end_date_ymd] => 2024-12-17 15:49:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:49:05' and `end` < '2024-12-17 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-17 15:49:24] Production.INFO: count ==5067 [2024-12-17 15:49:26] Production.ERROR: pbx CDR StartTime 2024-12-17 12:49:05 - End Time 2024-12-17 15:49:05 [2024-12-17 15:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041837', 'tblTempUsageDetail_20' ) start [2024-12-17 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041837', 'tblTempUsageDetail_20' ) end [2024-12-17 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041837', 'tblTempVendorCDR_20' ) start [2024-12-17 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041837', 'tblTempVendorCDR_20' ) end [2024-12-17 15:49:26] Production.INFO: ProcessCDR(1,14041837,1,1,2) [2024-12-17 15:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041837', 'tblTempUsageDetail_20' ) start [2024-12-17 15:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041837', 'tblTempUsageDetail_20' ) end [2024-12-17 15:49:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:49:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:49:31] Production.INFO: ==12999== Releasing lock... [2024-12-17 15:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:49:31] Production.INFO: 66 MB #Memory Used# [2024-12-17 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:50:05 [end_date_ymd] => 2024-12-17 15:50:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:50:05' and `end` < '2024-12-17 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-17 15:50:19] Production.INFO: count ==5047 [2024-12-17 15:50:21] Production.ERROR: pbx CDR StartTime 2024-12-17 12:50:05 - End Time 2024-12-17 15:50:05 [2024-12-17 15:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041842', 'tblTempUsageDetail_20' ) start [2024-12-17 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041842', 'tblTempUsageDetail_20' ) end [2024-12-17 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041842', 'tblTempVendorCDR_20' ) start [2024-12-17 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041842', 'tblTempVendorCDR_20' ) end [2024-12-17 15:50:21] Production.INFO: ProcessCDR(1,14041842,1,1,2) [2024-12-17 15:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041842', 'tblTempUsageDetail_20' ) start [2024-12-17 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041842', 'tblTempUsageDetail_20' ) end [2024-12-17 15:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:50:25] Production.INFO: ==13074== Releasing lock... [2024-12-17 15:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:50:25] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:51:05 [end_date_ymd] => 2024-12-17 15:51:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:51:05' and `end` < '2024-12-17 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-17 15:51:22] Production.INFO: count ==5075 [2024-12-17 15:51:24] Production.ERROR: pbx CDR StartTime 2024-12-17 12:51:05 - End Time 2024-12-17 15:51:05 [2024-12-17 15:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041848', 'tblTempUsageDetail_20' ) start [2024-12-17 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041848', 'tblTempUsageDetail_20' ) end [2024-12-17 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041848', 'tblTempVendorCDR_20' ) start [2024-12-17 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041848', 'tblTempVendorCDR_20' ) end [2024-12-17 15:51:25] Production.INFO: ProcessCDR(1,14041848,1,1,2) [2024-12-17 15:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041848', 'tblTempUsageDetail_20' ) start [2024-12-17 15:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041848', 'tblTempUsageDetail_20' ) end [2024-12-17 15:51:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:51:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:51:29] Production.INFO: ==13187== Releasing lock... [2024-12-17 15:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:51:29] Production.INFO: 66 MB #Memory Used# [2024-12-17 15:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:52:04 [end_date_ymd] => 2024-12-17 15:52:04 [RateCDR] => 1 ) [2024-12-17 15: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 12:52:04' and `end` < '2024-12-17 15: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-17 15:52:35] Production.INFO: count ==5069 [2024-12-17 15:52:37] Production.ERROR: pbx CDR StartTime 2024-12-17 12:52:04 - End Time 2024-12-17 15:52:04 [2024-12-17 15:52:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041853', 'tblTempUsageDetail_20' ) start [2024-12-17 15:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041853', 'tblTempUsageDetail_20' ) end [2024-12-17 15:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041853', 'tblTempVendorCDR_20' ) start [2024-12-17 15:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041853', 'tblTempVendorCDR_20' ) end [2024-12-17 15:52:37] Production.INFO: ProcessCDR(1,14041853,1,1,2) [2024-12-17 15:52:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:52:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:52:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:52:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:52:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041853', 'tblTempUsageDetail_20' ) start [2024-12-17 15:52:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041853', 'tblTempUsageDetail_20' ) end [2024-12-17 15:52:42] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:52:42] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:52:42] Production.INFO: ==13260== Releasing lock... [2024-12-17 15:52:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:52:42] Production.INFO: 66 MB #Memory Used# [2024-12-17 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:53:05 [end_date_ymd] => 2024-12-17 15:53:05 [RateCDR] => 1 ) [2024-12-17 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 12:53:05' and `end` < '2024-12-17 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 15:53:26] Production.INFO: count ==5057 [2024-12-17 15:53:28] Production.ERROR: pbx CDR StartTime 2024-12-17 12:53:05 - End Time 2024-12-17 15:53:05 [2024-12-17 15:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041858', 'tblTempUsageDetail_20' ) start [2024-12-17 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041858', 'tblTempUsageDetail_20' ) end [2024-12-17 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041858', 'tblTempVendorCDR_20' ) start [2024-12-17 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041858', 'tblTempVendorCDR_20' ) end [2024-12-17 15:53:28] Production.INFO: ProcessCDR(1,14041858,1,1,2) [2024-12-17 15:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041858', 'tblTempUsageDetail_20' ) start [2024-12-17 15:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041858', 'tblTempUsageDetail_20' ) end [2024-12-17 15:53:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:53:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:53:33] Production.INFO: ==13333== Releasing lock... [2024-12-17 15:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:53:33] Production.INFO: 66 MB #Memory Used# [2024-12-17 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:54:05 [end_date_ymd] => 2024-12-17 15:54:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:54:05' and `end` < '2024-12-17 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-17 15:54:34] Production.INFO: count ==5059 [2024-12-17 15:54:36] Production.ERROR: pbx CDR StartTime 2024-12-17 12:54:05 - End Time 2024-12-17 15:54:05 [2024-12-17 15:54:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041863', 'tblTempUsageDetail_20' ) start [2024-12-17 15:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041863', 'tblTempUsageDetail_20' ) end [2024-12-17 15:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041863', 'tblTempVendorCDR_20' ) start [2024-12-17 15:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041863', 'tblTempVendorCDR_20' ) end [2024-12-17 15:54:36] Production.INFO: ProcessCDR(1,14041863,1,1,2) [2024-12-17 15:54:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:54:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:54:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:54:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:54:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041863', 'tblTempUsageDetail_20' ) start [2024-12-17 15:54:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041863', 'tblTempUsageDetail_20' ) end [2024-12-17 15:54:41] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:54:41] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:54:41] Production.INFO: ==13407== Releasing lock... [2024-12-17 15:54:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:54:41] Production.INFO: 66 MB #Memory Used# [2024-12-17 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:55:05 [end_date_ymd] => 2024-12-17 15:55:05 [RateCDR] => 1 ) [2024-12-17 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 12:55:05' and `end` < '2024-12-17 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 15:55:27] Production.INFO: count ==5036 [2024-12-17 15:55:29] Production.ERROR: pbx CDR StartTime 2024-12-17 12:55:05 - End Time 2024-12-17 15:55:05 [2024-12-17 15:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041868', 'tblTempUsageDetail_20' ) start [2024-12-17 15:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041868', 'tblTempUsageDetail_20' ) end [2024-12-17 15:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041868', 'tblTempVendorCDR_20' ) start [2024-12-17 15:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041868', 'tblTempVendorCDR_20' ) end [2024-12-17 15:55:29] Production.INFO: ProcessCDR(1,14041868,1,1,2) [2024-12-17 15:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041868', 'tblTempUsageDetail_20' ) start [2024-12-17 15:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041868', 'tblTempUsageDetail_20' ) end [2024-12-17 15:55:34] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:55:34] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:55:34] Production.INFO: ==13477== Releasing lock... [2024-12-17 15:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:55:34] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:56:05 [end_date_ymd] => 2024-12-17 15:56:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:56:05' and `end` < '2024-12-17 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-17 15:56:26] Production.INFO: count ==5039 [2024-12-17 15:56:28] Production.ERROR: pbx CDR StartTime 2024-12-17 12:56:05 - End Time 2024-12-17 15:56:05 [2024-12-17 15:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041873', 'tblTempUsageDetail_20' ) start [2024-12-17 15:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041873', 'tblTempUsageDetail_20' ) end [2024-12-17 15:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041873', 'tblTempVendorCDR_20' ) start [2024-12-17 15:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041873', 'tblTempVendorCDR_20' ) end [2024-12-17 15:56:29] Production.INFO: ProcessCDR(1,14041873,1,1,2) [2024-12-17 15:56:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:56:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:56:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041873', 'tblTempUsageDetail_20' ) start [2024-12-17 15:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041873', 'tblTempUsageDetail_20' ) end [2024-12-17 15:56:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:56:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:56:33] Production.INFO: ==13554== Releasing lock... [2024-12-17 15:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:56:33] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:57:04 [end_date_ymd] => 2024-12-17 15:57:04 [RateCDR] => 1 ) [2024-12-17 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-17 12:57:04' and `end` < '2024-12-17 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-17 15:57:23] Production.INFO: count ==5029 [2024-12-17 15:57:25] Production.ERROR: pbx CDR StartTime 2024-12-17 12:57:04 - End Time 2024-12-17 15:57:04 [2024-12-17 15:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041878', 'tblTempUsageDetail_20' ) start [2024-12-17 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041878', 'tblTempUsageDetail_20' ) end [2024-12-17 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041878', 'tblTempVendorCDR_20' ) start [2024-12-17 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041878', 'tblTempVendorCDR_20' ) end [2024-12-17 15:57:25] Production.INFO: ProcessCDR(1,14041878,1,1,2) [2024-12-17 15:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041878', 'tblTempUsageDetail_20' ) start [2024-12-17 15:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041878', 'tblTempUsageDetail_20' ) end [2024-12-17 15:57:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:57:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:57:30] Production.INFO: ==13630== Releasing lock... [2024-12-17 15:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:57:30] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:58:05 [end_date_ymd] => 2024-12-17 15:58:05 [RateCDR] => 1 ) [2024-12-17 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-17 12:58:05' and `end` < '2024-12-17 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-17 15:58:24] Production.INFO: count ==5025 [2024-12-17 15:58:26] Production.ERROR: pbx CDR StartTime 2024-12-17 12:58:05 - End Time 2024-12-17 15:58:05 [2024-12-17 15:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041883', 'tblTempUsageDetail_20' ) start [2024-12-17 15:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041883', 'tblTempUsageDetail_20' ) end [2024-12-17 15:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041883', 'tblTempVendorCDR_20' ) start [2024-12-17 15:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041883', 'tblTempVendorCDR_20' ) end [2024-12-17 15:58:26] Production.INFO: ProcessCDR(1,14041883,1,1,2) [2024-12-17 15:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041883', 'tblTempUsageDetail_20' ) start [2024-12-17 15:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041883', 'tblTempUsageDetail_20' ) end [2024-12-17 15:58:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:58:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:58:31] Production.INFO: ==13699== Releasing lock... [2024-12-17 15:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:58:31] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 15:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 12:59:04 [end_date_ymd] => 2024-12-17 15:59:04 [RateCDR] => 1 ) [2024-12-17 15: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 12:59:04' and `end` < '2024-12-17 15: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-17 15:59:24] Production.INFO: count ==5036 [2024-12-17 15:59:26] Production.ERROR: pbx CDR StartTime 2024-12-17 12:59:04 - End Time 2024-12-17 15:59:04 [2024-12-17 15:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041888', 'tblTempUsageDetail_20' ) start [2024-12-17 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041888', 'tblTempUsageDetail_20' ) end [2024-12-17 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041888', 'tblTempVendorCDR_20' ) start [2024-12-17 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041888', 'tblTempVendorCDR_20' ) end [2024-12-17 15:59:26] Production.INFO: ProcessCDR(1,14041888,1,1,2) [2024-12-17 15:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 15:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 15:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041888', 'tblTempUsageDetail_20' ) start [2024-12-17 15:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041888', 'tblTempUsageDetail_20' ) end [2024-12-17 15:59:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 15:59:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 15:59:31] Production.INFO: ==13771== Releasing lock... [2024-12-17 15:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 15:59:31] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:00:06 [end_date_ymd] => 2024-12-17 16:00:06 [RateCDR] => 1 ) [2024-12-17 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:00:06' and `end` < '2024-12-17 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:00:30] Production.INFO: count ==5028 [2024-12-17 16:00:32] Production.ERROR: pbx CDR StartTime 2024-12-17 13:00:06 - End Time 2024-12-17 16:00:06 [2024-12-17 16:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041894', 'tblTempUsageDetail_20' ) start [2024-12-17 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041894', 'tblTempUsageDetail_20' ) end [2024-12-17 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041894', 'tblTempVendorCDR_20' ) start [2024-12-17 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041894', 'tblTempVendorCDR_20' ) end [2024-12-17 16:00:32] Production.INFO: ProcessCDR(1,14041894,1,1,2) [2024-12-17 16:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041894', 'tblTempUsageDetail_20' ) start [2024-12-17 16:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041894', 'tblTempUsageDetail_20' ) end [2024-12-17 16:00:36] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:00:36] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:00:36] Production.INFO: ==13847== Releasing lock... [2024-12-17 16:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:00:36] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 16:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:01:04 [end_date_ymd] => 2024-12-17 16:01:04 [RateCDR] => 1 ) [2024-12-17 16: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 13:01:04' and `end` < '2024-12-17 16: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-17 16:01:28] Production.INFO: count ==5068 [2024-12-17 16:01:30] Production.ERROR: pbx CDR StartTime 2024-12-17 13:01:04 - End Time 2024-12-17 16:01:04 [2024-12-17 16:01:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041899', 'tblTempUsageDetail_20' ) start [2024-12-17 16:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041899', 'tblTempUsageDetail_20' ) end [2024-12-17 16:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041899', 'tblTempVendorCDR_20' ) start [2024-12-17 16:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041899', 'tblTempVendorCDR_20' ) end [2024-12-17 16:01:30] Production.INFO: ProcessCDR(1,14041899,1,1,2) [2024-12-17 16:01:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:01:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:01:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:01:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041899', 'tblTempUsageDetail_20' ) start [2024-12-17 16:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041899', 'tblTempUsageDetail_20' ) end [2024-12-17 16:01:35] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:01:35] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:01:35] Production.INFO: ==13932== Releasing lock... [2024-12-17 16:01:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:01:35] Production.INFO: 66 MB #Memory Used# [2024-12-17 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:02:05 [end_date_ymd] => 2024-12-17 16:02:05 [RateCDR] => 1 ) [2024-12-17 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:02:05' and `end` < '2024-12-17 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:02:30] Production.INFO: count ==5080 [2024-12-17 16:02:32] Production.ERROR: pbx CDR StartTime 2024-12-17 13:02:05 - End Time 2024-12-17 16:02:05 [2024-12-17 16:02:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041904', 'tblTempUsageDetail_20' ) start [2024-12-17 16:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041904', 'tblTempUsageDetail_20' ) end [2024-12-17 16:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041904', 'tblTempVendorCDR_20' ) start [2024-12-17 16:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041904', 'tblTempVendorCDR_20' ) end [2024-12-17 16:02:32] Production.INFO: ProcessCDR(1,14041904,1,1,2) [2024-12-17 16:02:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041904', 'tblTempUsageDetail_20' ) start [2024-12-17 16:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041904', 'tblTempUsageDetail_20' ) end [2024-12-17 16:02:36] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:02:36] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:02:36] Production.INFO: ==14007== Releasing lock... [2024-12-17 16:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:02:36] Production.INFO: 66 MB #Memory Used# [2024-12-17 16:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:03:04 [end_date_ymd] => 2024-12-17 16:03:04 [RateCDR] => 1 ) [2024-12-17 16:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:03:04' and `end` < '2024-12-17 16:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:03:23] Production.INFO: count ==5074 [2024-12-17 16:03:25] Production.ERROR: pbx CDR StartTime 2024-12-17 13:03:04 - End Time 2024-12-17 16:03:04 [2024-12-17 16:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041909', 'tblTempUsageDetail_20' ) start [2024-12-17 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041909', 'tblTempUsageDetail_20' ) end [2024-12-17 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041909', 'tblTempVendorCDR_20' ) start [2024-12-17 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041909', 'tblTempVendorCDR_20' ) end [2024-12-17 16:03:25] Production.INFO: ProcessCDR(1,14041909,1,1,2) [2024-12-17 16:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041909', 'tblTempUsageDetail_20' ) start [2024-12-17 16:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041909', 'tblTempUsageDetail_20' ) end [2024-12-17 16:03:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:03:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:03:30] Production.INFO: ==14084== Releasing lock... [2024-12-17 16:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:03:30] Production.INFO: 66 MB #Memory Used# [2024-12-17 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:04:05 [end_date_ymd] => 2024-12-17 16:04:05 [RateCDR] => 1 ) [2024-12-17 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:04:05' and `end` < '2024-12-17 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:04:24] Production.INFO: count ==5046 [2024-12-17 16:04:26] Production.ERROR: pbx CDR StartTime 2024-12-17 13:04:05 - End Time 2024-12-17 16:04:05 [2024-12-17 16:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041914', 'tblTempUsageDetail_20' ) start [2024-12-17 16:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041914', 'tblTempUsageDetail_20' ) end [2024-12-17 16:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041914', 'tblTempVendorCDR_20' ) start [2024-12-17 16:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041914', 'tblTempVendorCDR_20' ) end [2024-12-17 16:04:26] Production.INFO: ProcessCDR(1,14041914,1,1,2) [2024-12-17 16:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041914', 'tblTempUsageDetail_20' ) start [2024-12-17 16:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041914', 'tblTempUsageDetail_20' ) end [2024-12-17 16:04:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:04:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:04:30] Production.INFO: ==14154== Releasing lock... [2024-12-17 16:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:04:30] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 16:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:05:04 [end_date_ymd] => 2024-12-17 16:05:04 [RateCDR] => 1 ) [2024-12-17 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-17 13:05:04' and `end` < '2024-12-17 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-17 16:05:30] Production.INFO: count ==5017 [2024-12-17 16:05:32] Production.ERROR: pbx CDR StartTime 2024-12-17 13:05:04 - End Time 2024-12-17 16:05:04 [2024-12-17 16:05:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041919', 'tblTempUsageDetail_20' ) start [2024-12-17 16:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041919', 'tblTempUsageDetail_20' ) end [2024-12-17 16:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041919', 'tblTempVendorCDR_20' ) start [2024-12-17 16:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041919', 'tblTempVendorCDR_20' ) end [2024-12-17 16:05:32] Production.INFO: ProcessCDR(1,14041919,1,1,2) [2024-12-17 16:05:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:05:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:05:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041919', 'tblTempUsageDetail_20' ) start [2024-12-17 16:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041919', 'tblTempUsageDetail_20' ) end [2024-12-17 16:05:37] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:05:37] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:05:37] Production.INFO: ==14230== Releasing lock... [2024-12-17 16:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:05:37] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:06:05 [end_date_ymd] => 2024-12-17 16:06:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:06:05' and `end` < '2024-12-17 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-17 16:06:24] Production.INFO: count ==4986 [2024-12-17 16:06:26] Production.ERROR: pbx CDR StartTime 2024-12-17 13:06:05 - End Time 2024-12-17 16:06:05 [2024-12-17 16:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041924', 'tblTempUsageDetail_20' ) start [2024-12-17 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041924', 'tblTempUsageDetail_20' ) end [2024-12-17 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041924', 'tblTempVendorCDR_20' ) start [2024-12-17 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041924', 'tblTempVendorCDR_20' ) end [2024-12-17 16:06:26] Production.INFO: ProcessCDR(1,14041924,1,1,2) [2024-12-17 16:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041924', 'tblTempUsageDetail_20' ) start [2024-12-17 16:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041924', 'tblTempUsageDetail_20' ) end [2024-12-17 16:06:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:06:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:06:31] Production.INFO: ==14302== Releasing lock... [2024-12-17 16:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:06:31] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:07:05 [end_date_ymd] => 2024-12-17 16:07:05 [RateCDR] => 1 ) [2024-12-17 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:07:05' and `end` < '2024-12-17 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:07:21] Production.INFO: count ==4974 [2024-12-17 16:07:23] Production.ERROR: pbx CDR StartTime 2024-12-17 13:07:05 - End Time 2024-12-17 16:07:05 [2024-12-17 16:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041929', 'tblTempUsageDetail_20' ) start [2024-12-17 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041929', 'tblTempUsageDetail_20' ) end [2024-12-17 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041929', 'tblTempVendorCDR_20' ) start [2024-12-17 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041929', 'tblTempVendorCDR_20' ) end [2024-12-17 16:07:23] Production.INFO: ProcessCDR(1,14041929,1,1,2) [2024-12-17 16:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041929', 'tblTempUsageDetail_20' ) start [2024-12-17 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041929', 'tblTempUsageDetail_20' ) end [2024-12-17 16:07:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:07:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:07:28] Production.INFO: ==14423== Releasing lock... [2024-12-17 16:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:07:28] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:08:05 [end_date_ymd] => 2024-12-17 16:08:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:08:05' and `end` < '2024-12-17 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-17 16:08:30] Production.INFO: count ==4974 [2024-12-17 16:08:32] Production.ERROR: pbx CDR StartTime 2024-12-17 13:08:05 - End Time 2024-12-17 16:08:05 [2024-12-17 16:08:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041934', 'tblTempUsageDetail_20' ) start [2024-12-17 16:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041934', 'tblTempUsageDetail_20' ) end [2024-12-17 16:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041934', 'tblTempVendorCDR_20' ) start [2024-12-17 16:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041934', 'tblTempVendorCDR_20' ) end [2024-12-17 16:08:32] Production.INFO: ProcessCDR(1,14041934,1,1,2) [2024-12-17 16:08:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:08:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:08:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:08:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:08:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041934', 'tblTempUsageDetail_20' ) start [2024-12-17 16:08:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041934', 'tblTempUsageDetail_20' ) end [2024-12-17 16:08:37] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:08:37] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:08:37] Production.INFO: ==14499== Releasing lock... [2024-12-17 16:08:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:08:37] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:09:04 [end_date_ymd] => 2024-12-17 16:09:04 [RateCDR] => 1 ) [2024-12-17 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-17 13:09:04' and `end` < '2024-12-17 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-17 16:09:27] Production.INFO: count ==4946 [2024-12-17 16:09:29] Production.ERROR: pbx CDR StartTime 2024-12-17 13:09:04 - End Time 2024-12-17 16:09:04 [2024-12-17 16:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041939', 'tblTempUsageDetail_20' ) start [2024-12-17 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041939', 'tblTempUsageDetail_20' ) end [2024-12-17 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041939', 'tblTempVendorCDR_20' ) start [2024-12-17 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041939', 'tblTempVendorCDR_20' ) end [2024-12-17 16:09:29] Production.INFO: ProcessCDR(1,14041939,1,1,2) [2024-12-17 16:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041939', 'tblTempUsageDetail_20' ) start [2024-12-17 16:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041939', 'tblTempUsageDetail_20' ) end [2024-12-17 16:09:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:09:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:09:32] Production.INFO: ==14578== Releasing lock... [2024-12-17 16:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:09:32] Production.INFO: 65 MB #Memory Used# [2024-12-17 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:10:05 [end_date_ymd] => 2024-12-17 16:10:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:10:05' and `end` < '2024-12-17 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-17 16:10:22] Production.INFO: count ==4939 [2024-12-17 16:10:24] Production.ERROR: pbx CDR StartTime 2024-12-17 13:10:05 - End Time 2024-12-17 16:10:05 [2024-12-17 16:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041944', 'tblTempUsageDetail_20' ) start [2024-12-17 16:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041944', 'tblTempUsageDetail_20' ) end [2024-12-17 16:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041944', 'tblTempVendorCDR_20' ) start [2024-12-17 16:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041944', 'tblTempVendorCDR_20' ) end [2024-12-17 16:10:25] Production.INFO: ProcessCDR(1,14041944,1,1,2) [2024-12-17 16:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041944', 'tblTempUsageDetail_20' ) start [2024-12-17 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041944', 'tblTempUsageDetail_20' ) end [2024-12-17 16:10:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:10:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:10:29] Production.INFO: ==14655== Releasing lock... [2024-12-17 16:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:10:29] Production.INFO: 65 MB #Memory Used# [2024-12-17 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:11:05 [end_date_ymd] => 2024-12-17 16:11:05 [RateCDR] => 1 ) [2024-12-17 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:11:05' and `end` < '2024-12-17 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:11:22] Production.INFO: count ==4964 [2024-12-17 16:11:24] Production.ERROR: pbx CDR StartTime 2024-12-17 13:11:05 - End Time 2024-12-17 16:11:05 [2024-12-17 16:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041950', 'tblTempUsageDetail_20' ) start [2024-12-17 16:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041950', 'tblTempUsageDetail_20' ) end [2024-12-17 16:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041950', 'tblTempVendorCDR_20' ) start [2024-12-17 16:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041950', 'tblTempVendorCDR_20' ) end [2024-12-17 16:11:24] Production.INFO: ProcessCDR(1,14041950,1,1,2) [2024-12-17 16:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041950', 'tblTempUsageDetail_20' ) start [2024-12-17 16:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041950', 'tblTempUsageDetail_20' ) end [2024-12-17 16:11:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:11:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:11:29] Production.INFO: ==14738== Releasing lock... [2024-12-17 16:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:11:29] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:12:04 [end_date_ymd] => 2024-12-17 16:12:04 [RateCDR] => 1 ) [2024-12-17 16: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-17 13:12:04' and `end` < '2024-12-17 16: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-17 16:12:21] Production.INFO: count ==4968 [2024-12-17 16:12:22] Production.ERROR: pbx CDR StartTime 2024-12-17 13:12:04 - End Time 2024-12-17 16:12:04 [2024-12-17 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041955', 'tblTempUsageDetail_20' ) start [2024-12-17 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041955', 'tblTempUsageDetail_20' ) end [2024-12-17 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041955', 'tblTempVendorCDR_20' ) start [2024-12-17 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041955', 'tblTempVendorCDR_20' ) end [2024-12-17 16:12:23] Production.INFO: ProcessCDR(1,14041955,1,1,2) [2024-12-17 16:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041955', 'tblTempUsageDetail_20' ) start [2024-12-17 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041955', 'tblTempUsageDetail_20' ) end [2024-12-17 16:12:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:12:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:12:27] Production.INFO: ==14818== Releasing lock... [2024-12-17 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:12:27] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:13:05 [end_date_ymd] => 2024-12-17 16:13:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:13:05' and `end` < '2024-12-17 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-17 16:13:18] Production.INFO: count ==4985 [2024-12-17 16:13:20] Production.ERROR: pbx CDR StartTime 2024-12-17 13:13:05 - End Time 2024-12-17 16:13:05 [2024-12-17 16:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041960', 'tblTempUsageDetail_20' ) start [2024-12-17 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041960', 'tblTempUsageDetail_20' ) end [2024-12-17 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041960', 'tblTempVendorCDR_20' ) start [2024-12-17 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041960', 'tblTempVendorCDR_20' ) end [2024-12-17 16:13:20] Production.INFO: ProcessCDR(1,14041960,1,1,2) [2024-12-17 16:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041960', 'tblTempUsageDetail_20' ) start [2024-12-17 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041960', 'tblTempUsageDetail_20' ) end [2024-12-17 16:13:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:13:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:13:25] Production.INFO: ==14895== Releasing lock... [2024-12-17 16:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:13:25] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:14:05 [end_date_ymd] => 2024-12-17 16:14:05 [RateCDR] => 1 ) [2024-12-17 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:14:05' and `end` < '2024-12-17 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:14:19] Production.INFO: count ==4994 [2024-12-17 16:14:21] Production.ERROR: pbx CDR StartTime 2024-12-17 13:14:05 - End Time 2024-12-17 16:14:05 [2024-12-17 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041965', 'tblTempUsageDetail_20' ) start [2024-12-17 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041965', 'tblTempUsageDetail_20' ) end [2024-12-17 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041965', 'tblTempVendorCDR_20' ) start [2024-12-17 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041965', 'tblTempVendorCDR_20' ) end [2024-12-17 16:14:21] Production.INFO: ProcessCDR(1,14041965,1,1,2) [2024-12-17 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041965', 'tblTempUsageDetail_20' ) start [2024-12-17 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041965', 'tblTempUsageDetail_20' ) end [2024-12-17 16:14:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:14:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:14:26] Production.INFO: ==14972== Releasing lock... [2024-12-17 16:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:14:26] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:15:05 [end_date_ymd] => 2024-12-17 16:15:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:15:05' and `end` < '2024-12-17 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-17 16:15:25] Production.INFO: count ==4989 [2024-12-17 16:15:27] Production.ERROR: pbx CDR StartTime 2024-12-17 13:15:05 - End Time 2024-12-17 16:15:05 [2024-12-17 16:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041970', 'tblTempUsageDetail_20' ) start [2024-12-17 16:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041970', 'tblTempUsageDetail_20' ) end [2024-12-17 16:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041970', 'tblTempVendorCDR_20' ) start [2024-12-17 16:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041970', 'tblTempVendorCDR_20' ) end [2024-12-17 16:15:27] Production.INFO: ProcessCDR(1,14041970,1,1,2) [2024-12-17 16:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041970', 'tblTempUsageDetail_20' ) start [2024-12-17 16:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041970', 'tblTempUsageDetail_20' ) end [2024-12-17 16:15:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:15:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:15:32] Production.INFO: ==15050== Releasing lock... [2024-12-17 16:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:15:32] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:16:05 [end_date_ymd] => 2024-12-17 16:16:05 [RateCDR] => 1 ) [2024-12-17 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:16:05' and `end` < '2024-12-17 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:16:23] Production.INFO: count ==4986 [2024-12-17 16:16:25] Production.ERROR: pbx CDR StartTime 2024-12-17 13:16:05 - End Time 2024-12-17 16:16:05 [2024-12-17 16:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041975', 'tblTempUsageDetail_20' ) start [2024-12-17 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041975', 'tblTempUsageDetail_20' ) end [2024-12-17 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041975', 'tblTempVendorCDR_20' ) start [2024-12-17 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041975', 'tblTempVendorCDR_20' ) end [2024-12-17 16:16:25] Production.INFO: ProcessCDR(1,14041975,1,1,2) [2024-12-17 16:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041975', 'tblTempUsageDetail_20' ) start [2024-12-17 16:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041975', 'tblTempUsageDetail_20' ) end [2024-12-17 16:16:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:16:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:16:30] Production.INFO: ==15129== Releasing lock... [2024-12-17 16:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:16:30] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:17:05 [end_date_ymd] => 2024-12-17 16:17:05 [RateCDR] => 1 ) [2024-12-17 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:17:05' and `end` < '2024-12-17 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:17:26] Production.INFO: count ==5001 [2024-12-17 16:17:28] Production.ERROR: pbx CDR StartTime 2024-12-17 13:17:05 - End Time 2024-12-17 16:17:05 [2024-12-17 16:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041980', 'tblTempUsageDetail_20' ) start [2024-12-17 16:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041980', 'tblTempUsageDetail_20' ) end [2024-12-17 16:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041980', 'tblTempVendorCDR_20' ) start [2024-12-17 16:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041980', 'tblTempVendorCDR_20' ) end [2024-12-17 16:17:28] Production.INFO: ProcessCDR(1,14041980,1,1,2) [2024-12-17 16:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041980', 'tblTempUsageDetail_20' ) start [2024-12-17 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041980', 'tblTempUsageDetail_20' ) end [2024-12-17 16:17:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:17:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:17:32] Production.INFO: ==15213== Releasing lock... [2024-12-17 16:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:17:32] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:18:05 [end_date_ymd] => 2024-12-17 16:18:05 [RateCDR] => 1 ) [2024-12-17 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:18:05' and `end` < '2024-12-17 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:18:21] Production.INFO: count ==4999 [2024-12-17 16:18:23] Production.ERROR: pbx CDR StartTime 2024-12-17 13:18:05 - End Time 2024-12-17 16:18:05 [2024-12-17 16:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041985', 'tblTempUsageDetail_20' ) start [2024-12-17 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041985', 'tblTempUsageDetail_20' ) end [2024-12-17 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041985', 'tblTempVendorCDR_20' ) start [2024-12-17 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041985', 'tblTempVendorCDR_20' ) end [2024-12-17 16:18:23] Production.INFO: ProcessCDR(1,14041985,1,1,2) [2024-12-17 16:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041985', 'tblTempUsageDetail_20' ) start [2024-12-17 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041985', 'tblTempUsageDetail_20' ) end [2024-12-17 16:18:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:18:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:18:28] Production.INFO: ==15294== Releasing lock... [2024-12-17 16:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:18:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:19:04 [end_date_ymd] => 2024-12-17 16:19:04 [RateCDR] => 1 ) [2024-12-17 16: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-17 13:19:04' and `end` < '2024-12-17 16: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-17 16:19:18] Production.INFO: count ==5007 [2024-12-17 16:19:20] Production.ERROR: pbx CDR StartTime 2024-12-17 13:19:04 - End Time 2024-12-17 16:19:04 [2024-12-17 16:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041990', 'tblTempUsageDetail_20' ) start [2024-12-17 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041990', 'tblTempUsageDetail_20' ) end [2024-12-17 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041990', 'tblTempVendorCDR_20' ) start [2024-12-17 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041990', 'tblTempVendorCDR_20' ) end [2024-12-17 16:19:20] Production.INFO: ProcessCDR(1,14041990,1,1,2) [2024-12-17 16:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041990', 'tblTempUsageDetail_20' ) start [2024-12-17 16:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041990', 'tblTempUsageDetail_20' ) end [2024-12-17 16:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:19:25] Production.INFO: ==15372== Releasing lock... [2024-12-17 16:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:19:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:20:06 [end_date_ymd] => 2024-12-17 16:20:06 [RateCDR] => 1 ) [2024-12-17 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-17 13:20:06' and `end` < '2024-12-17 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-17 16:20:24] Production.INFO: count ==5014 [2024-12-17 16:20:26] Production.ERROR: pbx CDR StartTime 2024-12-17 13:20:06 - End Time 2024-12-17 16:20:06 [2024-12-17 16:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041996', 'tblTempUsageDetail_20' ) start [2024-12-17 16:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14041996', 'tblTempUsageDetail_20' ) end [2024-12-17 16:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041996', 'tblTempVendorCDR_20' ) start [2024-12-17 16:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14041996', 'tblTempVendorCDR_20' ) end [2024-12-17 16:20:26] Production.INFO: ProcessCDR(1,14041996,1,1,2) [2024-12-17 16:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14041996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14041996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14041996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14041996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041996', 'tblTempUsageDetail_20' ) start [2024-12-17 16:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14041996', 'tblTempUsageDetail_20' ) end [2024-12-17 16:20:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:20:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:20:31] Production.INFO: ==15448== Releasing lock... [2024-12-17 16:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:20:31] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:21:04 [end_date_ymd] => 2024-12-17 16:21:04 [RateCDR] => 1 ) [2024-12-17 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-17 13:21:04' and `end` < '2024-12-17 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-17 16:21:17] Production.INFO: count ==5020 [2024-12-17 16:21:19] Production.ERROR: pbx CDR StartTime 2024-12-17 13:21:04 - End Time 2024-12-17 16:21:04 [2024-12-17 16:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042001', 'tblTempUsageDetail_20' ) start [2024-12-17 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042001', 'tblTempUsageDetail_20' ) end [2024-12-17 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042001', 'tblTempVendorCDR_20' ) start [2024-12-17 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042001', 'tblTempVendorCDR_20' ) end [2024-12-17 16:21:19] Production.INFO: ProcessCDR(1,14042001,1,1,2) [2024-12-17 16:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042001', 'tblTempUsageDetail_20' ) start [2024-12-17 16:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042001', 'tblTempUsageDetail_20' ) end [2024-12-17 16:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:21:24] Production.INFO: ==15533== Releasing lock... [2024-12-17 16:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:21:24] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:22:04 [end_date_ymd] => 2024-12-17 16:22:04 [RateCDR] => 1 ) [2024-12-17 16: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 13:22:04' and `end` < '2024-12-17 16: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-17 16:22:19] Production.INFO: count ==5024 [2024-12-17 16:22:21] Production.ERROR: pbx CDR StartTime 2024-12-17 13:22:04 - End Time 2024-12-17 16:22:04 [2024-12-17 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042006', 'tblTempUsageDetail_20' ) start [2024-12-17 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042006', 'tblTempUsageDetail_20' ) end [2024-12-17 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042006', 'tblTempVendorCDR_20' ) start [2024-12-17 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042006', 'tblTempVendorCDR_20' ) end [2024-12-17 16:22:22] Production.INFO: ProcessCDR(1,14042006,1,1,2) [2024-12-17 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042006', 'tblTempUsageDetail_20' ) start [2024-12-17 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042006', 'tblTempUsageDetail_20' ) end [2024-12-17 16:22:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:22:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:22:26] Production.INFO: ==15610== Releasing lock... [2024-12-17 16:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:22:26] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:23:05 [end_date_ymd] => 2024-12-17 16:23:05 [RateCDR] => 1 ) [2024-12-17 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:23:05' and `end` < '2024-12-17 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:23:18] Production.INFO: count ==5026 [2024-12-17 16:23:20] Production.ERROR: pbx CDR StartTime 2024-12-17 13:23:05 - End Time 2024-12-17 16:23:05 [2024-12-17 16:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042011', 'tblTempUsageDetail_20' ) start [2024-12-17 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042011', 'tblTempUsageDetail_20' ) end [2024-12-17 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042011', 'tblTempVendorCDR_20' ) start [2024-12-17 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042011', 'tblTempVendorCDR_20' ) end [2024-12-17 16:23:20] Production.INFO: ProcessCDR(1,14042011,1,1,2) [2024-12-17 16:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042011', 'tblTempUsageDetail_20' ) start [2024-12-17 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042011', 'tblTempUsageDetail_20' ) end [2024-12-17 16:23:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:23:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:23:25] Production.INFO: ==15725== Releasing lock... [2024-12-17 16:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:23:25] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:24:05 [end_date_ymd] => 2024-12-17 16:24:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:24:05' and `end` < '2024-12-17 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-17 16:24:25] Production.INFO: count ==5049 [2024-12-17 16:24:27] Production.ERROR: pbx CDR StartTime 2024-12-17 13:24:05 - End Time 2024-12-17 16:24:05 [2024-12-17 16:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042016', 'tblTempUsageDetail_20' ) start [2024-12-17 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042016', 'tblTempUsageDetail_20' ) end [2024-12-17 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042016', 'tblTempVendorCDR_20' ) start [2024-12-17 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042016', 'tblTempVendorCDR_20' ) end [2024-12-17 16:24:28] Production.INFO: ProcessCDR(1,14042016,1,1,2) [2024-12-17 16:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042016', 'tblTempUsageDetail_20' ) start [2024-12-17 16:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042016', 'tblTempUsageDetail_20' ) end [2024-12-17 16:24:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:24:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:24:32] Production.INFO: ==15800== Releasing lock... [2024-12-17 16:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:24:32] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:25:05 [end_date_ymd] => 2024-12-17 16:25:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:25:05' and `end` < '2024-12-17 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-17 16:25:23] Production.INFO: count ==5044 [2024-12-17 16:25:25] Production.ERROR: pbx CDR StartTime 2024-12-17 13:25:05 - End Time 2024-12-17 16:25:05 [2024-12-17 16:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042021', 'tblTempUsageDetail_20' ) start [2024-12-17 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042021', 'tblTempUsageDetail_20' ) end [2024-12-17 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042021', 'tblTempVendorCDR_20' ) start [2024-12-17 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042021', 'tblTempVendorCDR_20' ) end [2024-12-17 16:25:25] Production.INFO: ProcessCDR(1,14042021,1,1,2) [2024-12-17 16:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042021', 'tblTempUsageDetail_20' ) start [2024-12-17 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042021', 'tblTempUsageDetail_20' ) end [2024-12-17 16:25:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:25:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:25:30] Production.INFO: ==15884== Releasing lock... [2024-12-17 16:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:25:30] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 16:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:26:04 [end_date_ymd] => 2024-12-17 16:26:04 [RateCDR] => 1 ) [2024-12-17 16: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 13:26:04' and `end` < '2024-12-17 16: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-17 16:26:21] Production.INFO: count ==5002 [2024-12-17 16:26:23] Production.ERROR: pbx CDR StartTime 2024-12-17 13:26:04 - End Time 2024-12-17 16:26:04 [2024-12-17 16:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042026', 'tblTempUsageDetail_20' ) start [2024-12-17 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042026', 'tblTempUsageDetail_20' ) end [2024-12-17 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042026', 'tblTempVendorCDR_20' ) start [2024-12-17 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042026', 'tblTempVendorCDR_20' ) end [2024-12-17 16:26:23] Production.INFO: ProcessCDR(1,14042026,1,1,2) [2024-12-17 16:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042026', 'tblTempUsageDetail_20' ) start [2024-12-17 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042026', 'tblTempUsageDetail_20' ) end [2024-12-17 16:26:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:26:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:26:28] Production.INFO: ==15958== Releasing lock... [2024-12-17 16:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:26:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:27:05 [end_date_ymd] => 2024-12-17 16:27:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:27:05' and `end` < '2024-12-17 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-17 16:27:21] Production.INFO: count ==4995 [2024-12-17 16:27:23] Production.ERROR: pbx CDR StartTime 2024-12-17 13:27:05 - End Time 2024-12-17 16:27:05 [2024-12-17 16:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042031', 'tblTempUsageDetail_20' ) start [2024-12-17 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042031', 'tblTempUsageDetail_20' ) end [2024-12-17 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042031', 'tblTempVendorCDR_20' ) start [2024-12-17 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042031', 'tblTempVendorCDR_20' ) end [2024-12-17 16:27:23] Production.INFO: ProcessCDR(1,14042031,1,1,2) [2024-12-17 16:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042031', 'tblTempUsageDetail_20' ) start [2024-12-17 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042031', 'tblTempUsageDetail_20' ) end [2024-12-17 16:27:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:27:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:27:28] Production.INFO: ==16037== Releasing lock... [2024-12-17 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:27:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:28:04 [end_date_ymd] => 2024-12-17 16:28:04 [RateCDR] => 1 ) [2024-12-17 16: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 13:28:04' and `end` < '2024-12-17 16: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-17 16:28:24] Production.INFO: count ==4997 [2024-12-17 16:28:26] Production.ERROR: pbx CDR StartTime 2024-12-17 13:28:04 - End Time 2024-12-17 16:28:04 [2024-12-17 16:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042036', 'tblTempUsageDetail_20' ) start [2024-12-17 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042036', 'tblTempUsageDetail_20' ) end [2024-12-17 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042036', 'tblTempVendorCDR_20' ) start [2024-12-17 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042036', 'tblTempVendorCDR_20' ) end [2024-12-17 16:28:26] Production.INFO: ProcessCDR(1,14042036,1,1,2) [2024-12-17 16:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042036', 'tblTempUsageDetail_20' ) start [2024-12-17 16:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042036', 'tblTempUsageDetail_20' ) end [2024-12-17 16:28:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:28:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:28:31] Production.INFO: ==16109== Releasing lock... [2024-12-17 16:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:28:31] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:29:05 [end_date_ymd] => 2024-12-17 16:29:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:29:05' and `end` < '2024-12-17 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-17 16:29:27] Production.INFO: count ==5000 [2024-12-17 16:29:29] Production.ERROR: pbx CDR StartTime 2024-12-17 13:29:05 - End Time 2024-12-17 16:29:05 [2024-12-17 16:29:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042041', 'tblTempUsageDetail_20' ) start [2024-12-17 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042041', 'tblTempUsageDetail_20' ) end [2024-12-17 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042041', 'tblTempVendorCDR_20' ) start [2024-12-17 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042041', 'tblTempVendorCDR_20' ) end [2024-12-17 16:29:29] Production.INFO: ProcessCDR(1,14042041,1,1,2) [2024-12-17 16:29:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:29:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:29:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:29:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042041', 'tblTempUsageDetail_20' ) start [2024-12-17 16:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042041', 'tblTempUsageDetail_20' ) end [2024-12-17 16:29:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:29:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:29:33] Production.INFO: ==16191== Releasing lock... [2024-12-17 16:29:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:29:33] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:30:06 [end_date_ymd] => 2024-12-17 16:30:06 [RateCDR] => 1 ) [2024-12-17 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-17 13:30:06' and `end` < '2024-12-17 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-17 16:30:26] Production.INFO: count ==4985 [2024-12-17 16:30:28] Production.ERROR: pbx CDR StartTime 2024-12-17 13:30:06 - End Time 2024-12-17 16:30:06 [2024-12-17 16:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042047', 'tblTempUsageDetail_20' ) start [2024-12-17 16:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042047', 'tblTempUsageDetail_20' ) end [2024-12-17 16:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042047', 'tblTempVendorCDR_20' ) start [2024-12-17 16:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042047', 'tblTempVendorCDR_20' ) end [2024-12-17 16:30:29] Production.INFO: ProcessCDR(1,14042047,1,1,2) [2024-12-17 16:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042047', 'tblTempUsageDetail_20' ) start [2024-12-17 16:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042047', 'tblTempUsageDetail_20' ) end [2024-12-17 16:30:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:30:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:30:33] Production.INFO: ==16266== Releasing lock... [2024-12-17 16:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:30:33] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:31:04 [end_date_ymd] => 2024-12-17 16:31:04 [RateCDR] => 1 ) [2024-12-17 16: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 13:31:04' and `end` < '2024-12-17 16: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-17 16:31:33] Production.INFO: count ==4980 [2024-12-17 16:31:35] Production.ERROR: pbx CDR StartTime 2024-12-17 13:31:04 - End Time 2024-12-17 16:31:04 [2024-12-17 16:31:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042052', 'tblTempUsageDetail_20' ) start [2024-12-17 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042052', 'tblTempUsageDetail_20' ) end [2024-12-17 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042052', 'tblTempVendorCDR_20' ) start [2024-12-17 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042052', 'tblTempVendorCDR_20' ) end [2024-12-17 16:31:35] Production.INFO: ProcessCDR(1,14042052,1,1,2) [2024-12-17 16:31:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:31:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:31:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:31:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:31:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042052', 'tblTempUsageDetail_20' ) start [2024-12-17 16:31:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042052', 'tblTempUsageDetail_20' ) end [2024-12-17 16:31:40] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:31:40] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:31:40] Production.INFO: ==16342== Releasing lock... [2024-12-17 16:31:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:31:40] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:32:04 [end_date_ymd] => 2024-12-17 16:32:04 [RateCDR] => 1 ) [2024-12-17 16: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 13:32:04' and `end` < '2024-12-17 16: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-17 16:32:25] Production.INFO: count ==4987 [2024-12-17 16:32:27] Production.ERROR: pbx CDR StartTime 2024-12-17 13:32:04 - End Time 2024-12-17 16:32:04 [2024-12-17 16:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042057', 'tblTempUsageDetail_20' ) start [2024-12-17 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042057', 'tblTempUsageDetail_20' ) end [2024-12-17 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042057', 'tblTempVendorCDR_20' ) start [2024-12-17 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042057', 'tblTempVendorCDR_20' ) end [2024-12-17 16:32:27] Production.INFO: ProcessCDR(1,14042057,1,1,2) [2024-12-17 16:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042057', 'tblTempUsageDetail_20' ) start [2024-12-17 16:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042057', 'tblTempUsageDetail_20' ) end [2024-12-17 16:32:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:32:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:32:32] Production.INFO: ==16421== Releasing lock... [2024-12-17 16:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:32:32] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:33:04 [end_date_ymd] => 2024-12-17 16:33:04 [RateCDR] => 1 ) [2024-12-17 16: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 13:33:04' and `end` < '2024-12-17 16: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-17 16:33:21] Production.INFO: count ==4991 [2024-12-17 16:33:23] Production.ERROR: pbx CDR StartTime 2024-12-17 13:33:04 - End Time 2024-12-17 16:33:04 [2024-12-17 16:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042062', 'tblTempUsageDetail_20' ) start [2024-12-17 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042062', 'tblTempUsageDetail_20' ) end [2024-12-17 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042062', 'tblTempVendorCDR_20' ) start [2024-12-17 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042062', 'tblTempVendorCDR_20' ) end [2024-12-17 16:33:23] Production.INFO: ProcessCDR(1,14042062,1,1,2) [2024-12-17 16:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042062', 'tblTempUsageDetail_20' ) start [2024-12-17 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042062', 'tblTempUsageDetail_20' ) end [2024-12-17 16:33:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:33:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:33:28] Production.INFO: ==16501== Releasing lock... [2024-12-17 16:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:33:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:34:05 [end_date_ymd] => 2024-12-17 16:34:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:34:05' and `end` < '2024-12-17 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-17 16:34:34] Production.INFO: count ==4996 [2024-12-17 16:34:36] Production.ERROR: pbx CDR StartTime 2024-12-17 13:34:05 - End Time 2024-12-17 16:34:05 [2024-12-17 16:34:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:34:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042067', 'tblTempUsageDetail_20' ) start [2024-12-17 16:34:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042067', 'tblTempUsageDetail_20' ) end [2024-12-17 16:34:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042067', 'tblTempVendorCDR_20' ) start [2024-12-17 16:34:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042067', 'tblTempVendorCDR_20' ) end [2024-12-17 16:34:37] Production.INFO: ProcessCDR(1,14042067,1,1,2) [2024-12-17 16:34:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:34:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:34:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:34:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:34:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042067', 'tblTempUsageDetail_20' ) start [2024-12-17 16:34:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042067', 'tblTempUsageDetail_20' ) end [2024-12-17 16:34:42] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:34:42] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:34:42] Production.INFO: ==16574== Releasing lock... [2024-12-17 16:34:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:34:42] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:35:04 [end_date_ymd] => 2024-12-17 16:35:04 [RateCDR] => 1 ) [2024-12-17 16: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 13:35:04' and `end` < '2024-12-17 16: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-17 16:35:24] Production.INFO: count ==4988 [2024-12-17 16:35:26] Production.ERROR: pbx CDR StartTime 2024-12-17 13:35:04 - End Time 2024-12-17 16:35:04 [2024-12-17 16:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042072', 'tblTempUsageDetail_20' ) start [2024-12-17 16:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042072', 'tblTempUsageDetail_20' ) end [2024-12-17 16:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042072', 'tblTempVendorCDR_20' ) start [2024-12-17 16:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042072', 'tblTempVendorCDR_20' ) end [2024-12-17 16:35:26] Production.INFO: ProcessCDR(1,14042072,1,1,2) [2024-12-17 16:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042072', 'tblTempUsageDetail_20' ) start [2024-12-17 16:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042072', 'tblTempUsageDetail_20' ) end [2024-12-17 16:35:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:35:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:35:31] Production.INFO: ==16653== Releasing lock... [2024-12-17 16:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:35:31] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:36:05 [end_date_ymd] => 2024-12-17 16:36:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:36:05' and `end` < '2024-12-17 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-17 16:36:22] Production.INFO: count ==4987 [2024-12-17 16:36:24] Production.ERROR: pbx CDR StartTime 2024-12-17 13:36:05 - End Time 2024-12-17 16:36:05 [2024-12-17 16:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042077', 'tblTempUsageDetail_20' ) start [2024-12-17 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042077', 'tblTempUsageDetail_20' ) end [2024-12-17 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042077', 'tblTempVendorCDR_20' ) start [2024-12-17 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042077', 'tblTempVendorCDR_20' ) end [2024-12-17 16:36:24] Production.INFO: ProcessCDR(1,14042077,1,1,2) [2024-12-17 16:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042077', 'tblTempUsageDetail_20' ) start [2024-12-17 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042077', 'tblTempUsageDetail_20' ) end [2024-12-17 16:36:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:36:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:36:28] Production.INFO: ==16724== Releasing lock... [2024-12-17 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:36:28] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:37:04 [end_date_ymd] => 2024-12-17 16:37:04 [RateCDR] => 1 ) [2024-12-17 16: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 13:37:04' and `end` < '2024-12-17 16: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-17 16:37:22] Production.INFO: count ==4990 [2024-12-17 16:37:24] Production.ERROR: pbx CDR StartTime 2024-12-17 13:37:04 - End Time 2024-12-17 16:37:04 [2024-12-17 16:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042081', 'tblTempUsageDetail_20' ) start [2024-12-17 16:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042081', 'tblTempUsageDetail_20' ) end [2024-12-17 16:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042081', 'tblTempVendorCDR_20' ) start [2024-12-17 16:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042081', 'tblTempVendorCDR_20' ) end [2024-12-17 16:37:24] Production.INFO: ProcessCDR(1,14042081,1,1,2) [2024-12-17 16:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042081', 'tblTempUsageDetail_20' ) start [2024-12-17 16:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042081', 'tblTempUsageDetail_20' ) end [2024-12-17 16:37:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:37:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:37:29] Production.INFO: ==16795== Releasing lock... [2024-12-17 16:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:37:29] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:38:04 [end_date_ymd] => 2024-12-17 16:38:04 [RateCDR] => 1 ) [2024-12-17 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-17 13:38:04' and `end` < '2024-12-17 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-17 16:38:20] Production.INFO: count ==5006 [2024-12-17 16:38:22] Production.ERROR: pbx CDR StartTime 2024-12-17 13:38:04 - End Time 2024-12-17 16:38:04 [2024-12-17 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042087', 'tblTempUsageDetail_20' ) start [2024-12-17 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042087', 'tblTempUsageDetail_20' ) end [2024-12-17 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042087', 'tblTempVendorCDR_20' ) start [2024-12-17 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042087', 'tblTempVendorCDR_20' ) end [2024-12-17 16:38:23] Production.INFO: ProcessCDR(1,14042087,1,1,2) [2024-12-17 16:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042087', 'tblTempUsageDetail_20' ) start [2024-12-17 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042087', 'tblTempUsageDetail_20' ) end [2024-12-17 16:38:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:38:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:38:28] Production.INFO: ==16906== Releasing lock... [2024-12-17 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:38:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:39:05 [end_date_ymd] => 2024-12-17 16:39:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:39:05' and `end` < '2024-12-17 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-17 16:39:25] Production.INFO: count ==5017 [2024-12-17 16:39:27] Production.ERROR: pbx CDR StartTime 2024-12-17 13:39:05 - End Time 2024-12-17 16:39:05 [2024-12-17 16:39:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042092', 'tblTempUsageDetail_20' ) start [2024-12-17 16:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042092', 'tblTempUsageDetail_20' ) end [2024-12-17 16:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042092', 'tblTempVendorCDR_20' ) start [2024-12-17 16:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042092', 'tblTempVendorCDR_20' ) end [2024-12-17 16:39:27] Production.INFO: ProcessCDR(1,14042092,1,1,2) [2024-12-17 16:39:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042092', 'tblTempUsageDetail_20' ) start [2024-12-17 16:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042092', 'tblTempUsageDetail_20' ) end [2024-12-17 16:39:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:39:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:39:32] Production.INFO: ==16982== Releasing lock... [2024-12-17 16:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:39:32] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:40:06 [end_date_ymd] => 2024-12-17 16:40:06 [RateCDR] => 1 ) [2024-12-17 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:40:06' and `end` < '2024-12-17 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:40:24] Production.INFO: count ==5018 [2024-12-17 16:40:26] Production.ERROR: pbx CDR StartTime 2024-12-17 13:40:06 - End Time 2024-12-17 16:40:06 [2024-12-17 16:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042098', 'tblTempUsageDetail_20' ) start [2024-12-17 16:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042098', 'tblTempUsageDetail_20' ) end [2024-12-17 16:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042098', 'tblTempVendorCDR_20' ) start [2024-12-17 16:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042098', 'tblTempVendorCDR_20' ) end [2024-12-17 16:40:26] Production.INFO: ProcessCDR(1,14042098,1,1,2) [2024-12-17 16:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042098', 'tblTempUsageDetail_20' ) start [2024-12-17 16:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042098', 'tblTempUsageDetail_20' ) end [2024-12-17 16:40:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:40:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:40:31] Production.INFO: ==17061== Releasing lock... [2024-12-17 16:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:40:31] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:41:05 [end_date_ymd] => 2024-12-17 16:41:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:41:05' and `end` < '2024-12-17 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-17 16:41:24] Production.INFO: count ==5069 [2024-12-17 16:41:26] Production.ERROR: pbx CDR StartTime 2024-12-17 13:41:05 - End Time 2024-12-17 16:41:05 [2024-12-17 16:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042103', 'tblTempUsageDetail_20' ) start [2024-12-17 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042103', 'tblTempUsageDetail_20' ) end [2024-12-17 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042103', 'tblTempVendorCDR_20' ) start [2024-12-17 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042103', 'tblTempVendorCDR_20' ) end [2024-12-17 16:41:26] Production.INFO: ProcessCDR(1,14042103,1,1,2) [2024-12-17 16:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042103', 'tblTempUsageDetail_20' ) start [2024-12-17 16:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042103', 'tblTempUsageDetail_20' ) end [2024-12-17 16:41:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:41:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:41:31] Production.INFO: ==17133== Releasing lock... [2024-12-17 16:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:41:31] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:42:05 [end_date_ymd] => 2024-12-17 16:42:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:42:05' and `end` < '2024-12-17 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-17 16:42:19] Production.INFO: count ==5073 [2024-12-17 16:42:21] Production.ERROR: pbx CDR StartTime 2024-12-17 13:42:05 - End Time 2024-12-17 16:42:05 [2024-12-17 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042108', 'tblTempUsageDetail_20' ) start [2024-12-17 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042108', 'tblTempUsageDetail_20' ) end [2024-12-17 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042108', 'tblTempVendorCDR_20' ) start [2024-12-17 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042108', 'tblTempVendorCDR_20' ) end [2024-12-17 16:42:21] Production.INFO: ProcessCDR(1,14042108,1,1,2) [2024-12-17 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042108', 'tblTempUsageDetail_20' ) start [2024-12-17 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042108', 'tblTempUsageDetail_20' ) end [2024-12-17 16:42:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:42:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:42:26] Production.INFO: ==17208== Releasing lock... [2024-12-17 16:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:42:26] Production.INFO: 66 MB #Memory Used# [2024-12-17 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:43:05 [end_date_ymd] => 2024-12-17 16:43:05 [RateCDR] => 1 ) [2024-12-17 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:43:05' and `end` < '2024-12-17 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:43:21] Production.INFO: count ==5045 [2024-12-17 16:43:23] Production.ERROR: pbx CDR StartTime 2024-12-17 13:43:05 - End Time 2024-12-17 16:43:05 [2024-12-17 16:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042113', 'tblTempUsageDetail_20' ) start [2024-12-17 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042113', 'tblTempUsageDetail_20' ) end [2024-12-17 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042113', 'tblTempVendorCDR_20' ) start [2024-12-17 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042113', 'tblTempVendorCDR_20' ) end [2024-12-17 16:43:23] Production.INFO: ProcessCDR(1,14042113,1,1,2) [2024-12-17 16:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042113', 'tblTempUsageDetail_20' ) start [2024-12-17 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042113', 'tblTempUsageDetail_20' ) end [2024-12-17 16:43:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:43:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:43:26] Production.INFO: ==17279== Releasing lock... [2024-12-17 16:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:43:26] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 16:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:44:04 [end_date_ymd] => 2024-12-17 16:44:04 [RateCDR] => 1 ) [2024-12-17 16: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 13:44:04' and `end` < '2024-12-17 16: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-17 16:44:20] Production.INFO: count ==5051 [2024-12-17 16:44:21] Production.ERROR: pbx CDR StartTime 2024-12-17 13:44:04 - End Time 2024-12-17 16:44:04 [2024-12-17 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042118', 'tblTempUsageDetail_20' ) start [2024-12-17 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042118', 'tblTempUsageDetail_20' ) end [2024-12-17 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042118', 'tblTempVendorCDR_20' ) start [2024-12-17 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042118', 'tblTempVendorCDR_20' ) end [2024-12-17 16:44:22] Production.INFO: ProcessCDR(1,14042118,1,1,2) [2024-12-17 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042118', 'tblTempUsageDetail_20' ) start [2024-12-17 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042118', 'tblTempUsageDetail_20' ) end [2024-12-17 16:44:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:44:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:44:26] Production.INFO: ==17352== Releasing lock... [2024-12-17 16:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:44:26] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:45:05 [end_date_ymd] => 2024-12-17 16:45:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:45:05' and `end` < '2024-12-17 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-17 16:45:22] Production.INFO: count ==5033 [2024-12-17 16:45:24] Production.ERROR: pbx CDR StartTime 2024-12-17 13:45:05 - End Time 2024-12-17 16:45:05 [2024-12-17 16:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042123', 'tblTempUsageDetail_20' ) start [2024-12-17 16:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042123', 'tblTempUsageDetail_20' ) end [2024-12-17 16:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042123', 'tblTempVendorCDR_20' ) start [2024-12-17 16:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042123', 'tblTempVendorCDR_20' ) end [2024-12-17 16:45:24] Production.INFO: ProcessCDR(1,14042123,1,1,2) [2024-12-17 16:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042123', 'tblTempUsageDetail_20' ) start [2024-12-17 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042123', 'tblTempUsageDetail_20' ) end [2024-12-17 16:45:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:45:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:45:28] Production.INFO: ==17423== Releasing lock... [2024-12-17 16:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:45:28] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:46:06 [end_date_ymd] => 2024-12-17 16:46:06 [RateCDR] => 1 ) [2024-12-17 16:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:46:06' and `end` < '2024-12-17 16:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:46:26] Production.INFO: count ==4985 [2024-12-17 16:46:28] Production.ERROR: pbx CDR StartTime 2024-12-17 13:46:06 - End Time 2024-12-17 16:46:06 [2024-12-17 16:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042128', 'tblTempUsageDetail_20' ) start [2024-12-17 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042128', 'tblTempUsageDetail_20' ) end [2024-12-17 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042128', 'tblTempVendorCDR_20' ) start [2024-12-17 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042128', 'tblTempVendorCDR_20' ) end [2024-12-17 16:46:28] Production.INFO: ProcessCDR(1,14042128,1,1,2) [2024-12-17 16:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:46:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:46:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042128', 'tblTempUsageDetail_20' ) start [2024-12-17 16:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042128', 'tblTempUsageDetail_20' ) end [2024-12-17 16:46:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:46:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:46:33] Production.INFO: ==17497== Releasing lock... [2024-12-17 16:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:46:33] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:47:05 [end_date_ymd] => 2024-12-17 16:47:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:47:05' and `end` < '2024-12-17 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-17 16:47:22] Production.INFO: count ==4968 [2024-12-17 16:47:24] Production.ERROR: pbx CDR StartTime 2024-12-17 13:47:05 - End Time 2024-12-17 16:47:05 [2024-12-17 16:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042133', 'tblTempUsageDetail_20' ) start [2024-12-17 16:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042133', 'tblTempUsageDetail_20' ) end [2024-12-17 16:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042133', 'tblTempVendorCDR_20' ) start [2024-12-17 16:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042133', 'tblTempVendorCDR_20' ) end [2024-12-17 16:47:24] Production.INFO: ProcessCDR(1,14042133,1,1,2) [2024-12-17 16:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042133', 'tblTempUsageDetail_20' ) start [2024-12-17 16:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042133', 'tblTempUsageDetail_20' ) end [2024-12-17 16:47:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:47:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:47:29] Production.INFO: ==17566== Releasing lock... [2024-12-17 16:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:47:29] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:48:05 [end_date_ymd] => 2024-12-17 16:48:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:48:05' and `end` < '2024-12-17 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-17 16:48:26] Production.INFO: count ==4988 [2024-12-17 16:48:28] Production.ERROR: pbx CDR StartTime 2024-12-17 13:48:05 - End Time 2024-12-17 16:48:05 [2024-12-17 16:48:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042138', 'tblTempUsageDetail_20' ) start [2024-12-17 16:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042138', 'tblTempUsageDetail_20' ) end [2024-12-17 16:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042138', 'tblTempVendorCDR_20' ) start [2024-12-17 16:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042138', 'tblTempVendorCDR_20' ) end [2024-12-17 16:48:28] Production.INFO: ProcessCDR(1,14042138,1,1,2) [2024-12-17 16:48:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042138', 'tblTempUsageDetail_20' ) start [2024-12-17 16:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042138', 'tblTempUsageDetail_20' ) end [2024-12-17 16:48:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:48:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:48:33] Production.INFO: ==17639== Releasing lock... [2024-12-17 16:48:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:48:33] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:49:04 [end_date_ymd] => 2024-12-17 16:49:04 [RateCDR] => 1 ) [2024-12-17 16: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 13:49:04' and `end` < '2024-12-17 16: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-17 16:49:25] Production.INFO: count ==4979 [2024-12-17 16:49:27] Production.ERROR: pbx CDR StartTime 2024-12-17 13:49:04 - End Time 2024-12-17 16:49:04 [2024-12-17 16:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042143', 'tblTempUsageDetail_20' ) start [2024-12-17 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042143', 'tblTempUsageDetail_20' ) end [2024-12-17 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042143', 'tblTempVendorCDR_20' ) start [2024-12-17 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042143', 'tblTempVendorCDR_20' ) end [2024-12-17 16:49:27] Production.INFO: ProcessCDR(1,14042143,1,1,2) [2024-12-17 16:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042143', 'tblTempUsageDetail_20' ) start [2024-12-17 16:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042143', 'tblTempUsageDetail_20' ) end [2024-12-17 16:49:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:49:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:49:31] Production.INFO: ==17709== Releasing lock... [2024-12-17 16:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:49:31] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:50:06 [end_date_ymd] => 2024-12-17 16:50:06 [RateCDR] => 1 ) [2024-12-17 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:50:06' and `end` < '2024-12-17 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:50:34] Production.INFO: count ==4973 [2024-12-17 16:50:36] Production.ERROR: pbx CDR StartTime 2024-12-17 13:50:06 - End Time 2024-12-17 16:50:06 [2024-12-17 16:50:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042149', 'tblTempUsageDetail_20' ) start [2024-12-17 16:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042149', 'tblTempUsageDetail_20' ) end [2024-12-17 16:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042149', 'tblTempVendorCDR_20' ) start [2024-12-17 16:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042149', 'tblTempVendorCDR_20' ) end [2024-12-17 16:50:36] Production.INFO: ProcessCDR(1,14042149,1,1,2) [2024-12-17 16:50:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:50:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:50:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:50:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042149', 'tblTempUsageDetail_20' ) start [2024-12-17 16:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042149', 'tblTempUsageDetail_20' ) end [2024-12-17 16:50:41] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:50:41] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:50:41] Production.INFO: ==17781== Releasing lock... [2024-12-17 16:50:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:50:41] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 16:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:51:04 [end_date_ymd] => 2024-12-17 16:51:04 [RateCDR] => 1 ) [2024-12-17 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-17 13:51:04' and `end` < '2024-12-17 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-17 16:51:25] Production.INFO: count ==5029 [2024-12-17 16:51:27] Production.ERROR: pbx CDR StartTime 2024-12-17 13:51:04 - End Time 2024-12-17 16:51:04 [2024-12-17 16:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042154', 'tblTempUsageDetail_20' ) start [2024-12-17 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042154', 'tblTempUsageDetail_20' ) end [2024-12-17 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042154', 'tblTempVendorCDR_20' ) start [2024-12-17 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042154', 'tblTempVendorCDR_20' ) end [2024-12-17 16:51:27] Production.INFO: ProcessCDR(1,14042154,1,1,2) [2024-12-17 16:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042154', 'tblTempUsageDetail_20' ) start [2024-12-17 16:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042154', 'tblTempUsageDetail_20' ) end [2024-12-17 16:51:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:51:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:51:32] Production.INFO: ==17855== Releasing lock... [2024-12-17 16:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:51:32] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:52:05 [end_date_ymd] => 2024-12-17 16:52:05 [RateCDR] => 1 ) [2024-12-17 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:52:05' and `end` < '2024-12-17 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:52:25] Production.INFO: count ==5059 [2024-12-17 16:52:27] Production.ERROR: pbx CDR StartTime 2024-12-17 13:52:05 - End Time 2024-12-17 16:52:05 [2024-12-17 16:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042159', 'tblTempUsageDetail_20' ) start [2024-12-17 16:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042159', 'tblTempUsageDetail_20' ) end [2024-12-17 16:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042159', 'tblTempVendorCDR_20' ) start [2024-12-17 16:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042159', 'tblTempVendorCDR_20' ) end [2024-12-17 16:52:27] Production.INFO: ProcessCDR(1,14042159,1,1,2) [2024-12-17 16:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042159', 'tblTempUsageDetail_20' ) start [2024-12-17 16:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042159', 'tblTempUsageDetail_20' ) end [2024-12-17 16:52:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:52:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:52:32] Production.INFO: ==17927== Releasing lock... [2024-12-17 16:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:52:32] Production.INFO: 66 MB #Memory Used# [2024-12-17 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:53:05 [end_date_ymd] => 2024-12-17 16:53:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:53:05' and `end` < '2024-12-17 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-17 16:53:23] Production.INFO: count ==5067 [2024-12-17 16:53:25] Production.ERROR: pbx CDR StartTime 2024-12-17 13:53:05 - End Time 2024-12-17 16:53:05 [2024-12-17 16:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042164', 'tblTempUsageDetail_20' ) start [2024-12-17 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042164', 'tblTempUsageDetail_20' ) end [2024-12-17 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042164', 'tblTempVendorCDR_20' ) start [2024-12-17 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042164', 'tblTempVendorCDR_20' ) end [2024-12-17 16:53:25] Production.INFO: ProcessCDR(1,14042164,1,1,2) [2024-12-17 16:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042164', 'tblTempUsageDetail_20' ) start [2024-12-17 16:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042164', 'tblTempUsageDetail_20' ) end [2024-12-17 16:53:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:53:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:53:30] Production.INFO: ==18000== Releasing lock... [2024-12-17 16:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:53:30] Production.INFO: 66 MB #Memory Used# [2024-12-17 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:54:05 [end_date_ymd] => 2024-12-17 16:54:05 [RateCDR] => 1 ) [2024-12-17 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:54:05' and `end` < '2024-12-17 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:54:35] Production.INFO: count ==5064 [2024-12-17 16:54:37] Production.ERROR: pbx CDR StartTime 2024-12-17 13:54:05 - End Time 2024-12-17 16:54:05 [2024-12-17 16:54:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:54:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042169', 'tblTempUsageDetail_20' ) start [2024-12-17 16:54:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042169', 'tblTempUsageDetail_20' ) end [2024-12-17 16:54:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042169', 'tblTempVendorCDR_20' ) start [2024-12-17 16:54:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042169', 'tblTempVendorCDR_20' ) end [2024-12-17 16:54:37] Production.INFO: ProcessCDR(1,14042169,1,1,2) [2024-12-17 16:54:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:54:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:54:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:54:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:54:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042169', 'tblTempUsageDetail_20' ) start [2024-12-17 16:54:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042169', 'tblTempUsageDetail_20' ) end [2024-12-17 16:54:42] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:54:42] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:54:42] Production.INFO: ==18114== Releasing lock... [2024-12-17 16:54:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:54:42] Production.INFO: 66 MB #Memory Used# [2024-12-17 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:55:05 [end_date_ymd] => 2024-12-17 16:55:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:55:05' and `end` < '2024-12-17 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-17 16:55:26] Production.INFO: count ==5086 [2024-12-17 16:55:28] Production.ERROR: pbx CDR StartTime 2024-12-17 13:55:05 - End Time 2024-12-17 16:55:05 [2024-12-17 16:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042174', 'tblTempUsageDetail_20' ) start [2024-12-17 16:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042174', 'tblTempUsageDetail_20' ) end [2024-12-17 16:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042174', 'tblTempVendorCDR_20' ) start [2024-12-17 16:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042174', 'tblTempVendorCDR_20' ) end [2024-12-17 16:55:28] Production.INFO: ProcessCDR(1,14042174,1,1,2) [2024-12-17 16:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042174', 'tblTempUsageDetail_20' ) start [2024-12-17 16:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042174', 'tblTempUsageDetail_20' ) end [2024-12-17 16:55:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:55:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:55:33] Production.INFO: ==18189== Releasing lock... [2024-12-17 16:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:55:33] Production.INFO: 66 MB #Memory Used# [2024-12-17 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:56:05 [end_date_ymd] => 2024-12-17 16:56:05 [RateCDR] => 1 ) [2024-12-17 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-17 13:56:05' and `end` < '2024-12-17 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:56:23] Production.INFO: count ==5074 [2024-12-17 16:56:25] Production.ERROR: pbx CDR StartTime 2024-12-17 13:56:05 - End Time 2024-12-17 16:56:05 [2024-12-17 16:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042179', 'tblTempUsageDetail_20' ) start [2024-12-17 16:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042179', 'tblTempUsageDetail_20' ) end [2024-12-17 16:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042179', 'tblTempVendorCDR_20' ) start [2024-12-17 16:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042179', 'tblTempVendorCDR_20' ) end [2024-12-17 16:56:25] Production.INFO: ProcessCDR(1,14042179,1,1,2) [2024-12-17 16:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042179', 'tblTempUsageDetail_20' ) start [2024-12-17 16:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042179', 'tblTempUsageDetail_20' ) end [2024-12-17 16:56:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:56:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:56:30] Production.INFO: ==18260== Releasing lock... [2024-12-17 16:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:56:30] Production.INFO: 66 MB #Memory Used# [2024-12-17 16:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:57:04 [end_date_ymd] => 2024-12-17 16:57:04 [RateCDR] => 1 ) [2024-12-17 16:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:57:04' and `end` < '2024-12-17 16:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:57:19] Production.INFO: count ==5088 [2024-12-17 16:57:21] Production.ERROR: pbx CDR StartTime 2024-12-17 13:57:04 - End Time 2024-12-17 16:57:04 [2024-12-17 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042184', 'tblTempUsageDetail_20' ) start [2024-12-17 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042184', 'tblTempUsageDetail_20' ) end [2024-12-17 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042184', 'tblTempVendorCDR_20' ) start [2024-12-17 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042184', 'tblTempVendorCDR_20' ) end [2024-12-17 16:57:21] Production.INFO: ProcessCDR(1,14042184,1,1,2) [2024-12-17 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042184', 'tblTempUsageDetail_20' ) start [2024-12-17 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042184', 'tblTempUsageDetail_20' ) end [2024-12-17 16:57:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:57:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:57:26] Production.INFO: ==18330== Releasing lock... [2024-12-17 16:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:57:26] Production.INFO: 66 MB #Memory Used# [2024-12-17 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:58:05 [end_date_ymd] => 2024-12-17 16:58:05 [RateCDR] => 1 ) [2024-12-17 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 13:58:05' and `end` < '2024-12-17 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 16:58:19] Production.INFO: count ==5097 [2024-12-17 16:58:21] Production.ERROR: pbx CDR StartTime 2024-12-17 13:58:05 - End Time 2024-12-17 16:58:05 [2024-12-17 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042189', 'tblTempUsageDetail_20' ) start [2024-12-17 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042189', 'tblTempUsageDetail_20' ) end [2024-12-17 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042189', 'tblTempVendorCDR_20' ) start [2024-12-17 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042189', 'tblTempVendorCDR_20' ) end [2024-12-17 16:58:21] Production.INFO: ProcessCDR(1,14042189,1,1,2) [2024-12-17 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042189', 'tblTempUsageDetail_20' ) start [2024-12-17 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042189', 'tblTempUsageDetail_20' ) end [2024-12-17 16:58:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:58:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:58:26] Production.INFO: ==18404== Releasing lock... [2024-12-17 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:58:26] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 16:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 13:59:04 [end_date_ymd] => 2024-12-17 16:59:04 [RateCDR] => 1 ) [2024-12-17 16: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 13:59:04' and `end` < '2024-12-17 16: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-17 16:59:23] Production.INFO: count ==5097 [2024-12-17 16:59:25] Production.ERROR: pbx CDR StartTime 2024-12-17 13:59:04 - End Time 2024-12-17 16:59:04 [2024-12-17 16:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042194', 'tblTempUsageDetail_20' ) start [2024-12-17 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042194', 'tblTempUsageDetail_20' ) end [2024-12-17 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042194', 'tblTempVendorCDR_20' ) start [2024-12-17 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042194', 'tblTempVendorCDR_20' ) end [2024-12-17 16:59:25] Production.INFO: ProcessCDR(1,14042194,1,1,2) [2024-12-17 16:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 16:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 16:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042194', 'tblTempUsageDetail_20' ) start [2024-12-17 16:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042194', 'tblTempUsageDetail_20' ) end [2024-12-17 16:59:30] Production.ERROR: pbx prc_insertCDR start [2024-12-17 16:59:30] Production.ERROR: pbx prc_insertCDR end [2024-12-17 16:59:30] Production.INFO: ==18477== Releasing lock... [2024-12-17 16:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 16:59:30] Production.INFO: 66.25 MB #Memory Used# [2024-12-17 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:00:05 [end_date_ymd] => 2024-12-17 17:00:05 [RateCDR] => 1 ) [2024-12-17 17:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:00:05' and `end` < '2024-12-17 17:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:00:25] Production.INFO: count ==5073 [2024-12-17 17:00:27] Production.ERROR: pbx CDR StartTime 2024-12-17 14:00:05 - End Time 2024-12-17 17:00:05 [2024-12-17 17:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042199', 'tblTempUsageDetail_20' ) start [2024-12-17 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042199', 'tblTempUsageDetail_20' ) end [2024-12-17 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042199', 'tblTempVendorCDR_20' ) start [2024-12-17 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042199', 'tblTempVendorCDR_20' ) end [2024-12-17 17:00:27] Production.INFO: ProcessCDR(1,14042199,1,1,2) [2024-12-17 17:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042199', 'tblTempUsageDetail_20' ) start [2024-12-17 17:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042199', 'tblTempUsageDetail_20' ) end [2024-12-17 17:00:31] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:00:31] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:00:31] Production.INFO: ==18554== Releasing lock... [2024-12-17 17:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:00:31] Production.INFO: 66 MB #Memory Used# [2024-12-17 17:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:01:04 [end_date_ymd] => 2024-12-17 17:01:04 [RateCDR] => 1 ) [2024-12-17 17: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 14:01:04' and `end` < '2024-12-17 17: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-17 17:01:17] Production.INFO: count ==5074 [2024-12-17 17:01:19] Production.ERROR: pbx CDR StartTime 2024-12-17 14:01:04 - End Time 2024-12-17 17:01:04 [2024-12-17 17:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042205', 'tblTempUsageDetail_20' ) start [2024-12-17 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042205', 'tblTempUsageDetail_20' ) end [2024-12-17 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042205', 'tblTempVendorCDR_20' ) start [2024-12-17 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042205', 'tblTempVendorCDR_20' ) end [2024-12-17 17:01:19] Production.INFO: ProcessCDR(1,14042205,1,1,2) [2024-12-17 17:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042205', 'tblTempUsageDetail_20' ) start [2024-12-17 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042205', 'tblTempUsageDetail_20' ) end [2024-12-17 17:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:01:24] Production.INFO: ==18638== Releasing lock... [2024-12-17 17:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:01:24] Production.INFO: 66 MB #Memory Used# [2024-12-17 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:02:05 [end_date_ymd] => 2024-12-17 17:02:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:02:05' and `end` < '2024-12-17 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-17 17:02:18] Production.INFO: count ==5041 [2024-12-17 17:02:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:02:05 - End Time 2024-12-17 17:02:05 [2024-12-17 17:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042210', 'tblTempUsageDetail_20' ) start [2024-12-17 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042210', 'tblTempUsageDetail_20' ) end [2024-12-17 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042210', 'tblTempVendorCDR_20' ) start [2024-12-17 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042210', 'tblTempVendorCDR_20' ) end [2024-12-17 17:02:20] Production.INFO: ProcessCDR(1,14042210,1,1,2) [2024-12-17 17:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042210', 'tblTempUsageDetail_20' ) start [2024-12-17 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042210', 'tblTempUsageDetail_20' ) end [2024-12-17 17:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:02:24] Production.INFO: ==18708== Releasing lock... [2024-12-17 17:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:02:24] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:03:05 [end_date_ymd] => 2024-12-17 17:03:05 [RateCDR] => 1 ) [2024-12-17 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:03:05' and `end` < '2024-12-17 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:03:18] Production.INFO: count ==5015 [2024-12-17 17:03:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:03:05 - End Time 2024-12-17 17:03:05 [2024-12-17 17:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042215', 'tblTempUsageDetail_20' ) start [2024-12-17 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042215', 'tblTempUsageDetail_20' ) end [2024-12-17 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042215', 'tblTempVendorCDR_20' ) start [2024-12-17 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042215', 'tblTempVendorCDR_20' ) end [2024-12-17 17:03:20] Production.INFO: ProcessCDR(1,14042215,1,1,2) [2024-12-17 17:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042215', 'tblTempUsageDetail_20' ) start [2024-12-17 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042215', 'tblTempUsageDetail_20' ) end [2024-12-17 17:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:03:23] Production.INFO: ==18779== Releasing lock... [2024-12-17 17:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:03:23] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:04:05 [end_date_ymd] => 2024-12-17 17:04:05 [RateCDR] => 1 ) [2024-12-17 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:04:05' and `end` < '2024-12-17 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:04:18] Production.INFO: count ==5013 [2024-12-17 17:04:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:04:05 - End Time 2024-12-17 17:04:05 [2024-12-17 17:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042220', 'tblTempUsageDetail_20' ) start [2024-12-17 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042220', 'tblTempUsageDetail_20' ) end [2024-12-17 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042220', 'tblTempVendorCDR_20' ) start [2024-12-17 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042220', 'tblTempVendorCDR_20' ) end [2024-12-17 17:04:20] Production.INFO: ProcessCDR(1,14042220,1,1,2) [2024-12-17 17:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042220', 'tblTempUsageDetail_20' ) start [2024-12-17 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042220', 'tblTempUsageDetail_20' ) end [2024-12-17 17:04:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:04:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:04:25] Production.INFO: ==18853== Releasing lock... [2024-12-17 17:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:04:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:05:04 [end_date_ymd] => 2024-12-17 17:05:04 [RateCDR] => 1 ) [2024-12-17 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-17 14:05:04' and `end` < '2024-12-17 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-17 17:05:19] Production.INFO: count ==5000 [2024-12-17 17:05:21] Production.ERROR: pbx CDR StartTime 2024-12-17 14:05:04 - End Time 2024-12-17 17:05:04 [2024-12-17 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042224', 'tblTempUsageDetail_20' ) start [2024-12-17 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042224', 'tblTempUsageDetail_20' ) end [2024-12-17 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042224', 'tblTempVendorCDR_20' ) start [2024-12-17 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042224', 'tblTempVendorCDR_20' ) end [2024-12-17 17:05:21] Production.INFO: ProcessCDR(1,14042224,1,1,2) [2024-12-17 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042224', 'tblTempUsageDetail_20' ) start [2024-12-17 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042224', 'tblTempUsageDetail_20' ) end [2024-12-17 17:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:05:25] Production.INFO: ==18925== Releasing lock... [2024-12-17 17:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:05:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 17:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:06:04 [end_date_ymd] => 2024-12-17 17:06:04 [RateCDR] => 1 ) [2024-12-17 17: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 14:06:04' and `end` < '2024-12-17 17: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-17 17:06:19] Production.INFO: count ==4998 [2024-12-17 17:06:21] Production.ERROR: pbx CDR StartTime 2024-12-17 14:06:04 - End Time 2024-12-17 17:06:04 [2024-12-17 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042230', 'tblTempUsageDetail_20' ) start [2024-12-17 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042230', 'tblTempUsageDetail_20' ) end [2024-12-17 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042230', 'tblTempVendorCDR_20' ) start [2024-12-17 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042230', 'tblTempVendorCDR_20' ) end [2024-12-17 17:06:21] Production.INFO: ProcessCDR(1,14042230,1,1,2) [2024-12-17 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042230', 'tblTempUsageDetail_20' ) start [2024-12-17 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042230', 'tblTempUsageDetail_20' ) end [2024-12-17 17:06:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:06:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:06:25] Production.INFO: ==18998== Releasing lock... [2024-12-17 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:06:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 17:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:07:04 [end_date_ymd] => 2024-12-17 17:07:04 [RateCDR] => 1 ) [2024-12-17 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-17 14:07:04' and `end` < '2024-12-17 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-17 17:07:18] Production.INFO: count ==4988 [2024-12-17 17:07:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:07:04 - End Time 2024-12-17 17:07:04 [2024-12-17 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042235', 'tblTempUsageDetail_20' ) start [2024-12-17 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042235', 'tblTempUsageDetail_20' ) end [2024-12-17 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042235', 'tblTempVendorCDR_20' ) start [2024-12-17 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042235', 'tblTempVendorCDR_20' ) end [2024-12-17 17:07:20] Production.INFO: ProcessCDR(1,14042235,1,1,2) [2024-12-17 17:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042235', 'tblTempUsageDetail_20' ) start [2024-12-17 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042235', 'tblTempUsageDetail_20' ) end [2024-12-17 17:07:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:07:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:07:25] Production.INFO: ==19084== Releasing lock... [2024-12-17 17:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:07:25] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:08:05 [end_date_ymd] => 2024-12-17 17:08:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:08:05' and `end` < '2024-12-17 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-17 17:08:23] Production.INFO: count ==4983 [2024-12-17 17:08:25] Production.ERROR: pbx CDR StartTime 2024-12-17 14:08:05 - End Time 2024-12-17 17:08:05 [2024-12-17 17:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042240', 'tblTempUsageDetail_20' ) start [2024-12-17 17:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042240', 'tblTempUsageDetail_20' ) end [2024-12-17 17:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042240', 'tblTempVendorCDR_20' ) start [2024-12-17 17:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042240', 'tblTempVendorCDR_20' ) end [2024-12-17 17:08:25] Production.INFO: ProcessCDR(1,14042240,1,1,2) [2024-12-17 17:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042240', 'tblTempUsageDetail_20' ) start [2024-12-17 17:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042240', 'tblTempUsageDetail_20' ) end [2024-12-17 17:08:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:08:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:08:29] Production.INFO: ==19201== Releasing lock... [2024-12-17 17:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:08:29] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:09:05 [end_date_ymd] => 2024-12-17 17:09:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:09:05' and `end` < '2024-12-17 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-17 17:09:19] Production.INFO: count ==4992 [2024-12-17 17:09:21] Production.ERROR: pbx CDR StartTime 2024-12-17 14:09:05 - End Time 2024-12-17 17:09:05 [2024-12-17 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042245', 'tblTempUsageDetail_20' ) start [2024-12-17 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042245', 'tblTempUsageDetail_20' ) end [2024-12-17 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042245', 'tblTempVendorCDR_20' ) start [2024-12-17 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042245', 'tblTempVendorCDR_20' ) end [2024-12-17 17:09:21] Production.INFO: ProcessCDR(1,14042245,1,1,2) [2024-12-17 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042245', 'tblTempUsageDetail_20' ) start [2024-12-17 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042245', 'tblTempUsageDetail_20' ) end [2024-12-17 17:09:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:09:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:09:26] Production.INFO: ==19302== Releasing lock... [2024-12-17 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:09:26] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:10:05 [end_date_ymd] => 2024-12-17 17:10:05 [RateCDR] => 1 ) [2024-12-17 17:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:10:05' and `end` < '2024-12-17 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:10:26] Production.INFO: count ==4987 [2024-12-17 17:10:28] Production.ERROR: pbx CDR StartTime 2024-12-17 14:10:05 - End Time 2024-12-17 17:10:05 [2024-12-17 17:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042251', 'tblTempUsageDetail_20' ) start [2024-12-17 17:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042251', 'tblTempUsageDetail_20' ) end [2024-12-17 17:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042251', 'tblTempVendorCDR_20' ) start [2024-12-17 17:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042251', 'tblTempVendorCDR_20' ) end [2024-12-17 17:10:28] Production.INFO: ProcessCDR(1,14042251,1,1,2) [2024-12-17 17:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042251', 'tblTempUsageDetail_20' ) start [2024-12-17 17:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042251', 'tblTempUsageDetail_20' ) end [2024-12-17 17:10:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:10:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:10:33] Production.INFO: ==19447== Releasing lock... [2024-12-17 17:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:10:33] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 17:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:11:04 [end_date_ymd] => 2024-12-17 17:11:04 [RateCDR] => 1 ) [2024-12-17 17: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 14:11:04' and `end` < '2024-12-17 17: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-17 17:11:21] Production.INFO: count ==4984 [2024-12-17 17:11:23] Production.ERROR: pbx CDR StartTime 2024-12-17 14:11:04 - End Time 2024-12-17 17:11:04 [2024-12-17 17:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042256', 'tblTempUsageDetail_20' ) start [2024-12-17 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042256', 'tblTempUsageDetail_20' ) end [2024-12-17 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042256', 'tblTempVendorCDR_20' ) start [2024-12-17 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042256', 'tblTempVendorCDR_20' ) end [2024-12-17 17:11:23] Production.INFO: ProcessCDR(1,14042256,1,1,2) [2024-12-17 17:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042256', 'tblTempUsageDetail_20' ) start [2024-12-17 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042256', 'tblTempUsageDetail_20' ) end [2024-12-17 17:11:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:11:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:11:26] Production.INFO: ==19559== Releasing lock... [2024-12-17 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:11:26] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 17:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:12:04 [end_date_ymd] => 2024-12-17 17:12:04 [RateCDR] => 1 ) [2024-12-17 17: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-17 14:12:04' and `end` < '2024-12-17 17: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-17 17:12:20] Production.INFO: count ==4951 [2024-12-17 17:12:22] Production.ERROR: pbx CDR StartTime 2024-12-17 14:12:04 - End Time 2024-12-17 17:12:04 [2024-12-17 17:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042261', 'tblTempUsageDetail_20' ) start [2024-12-17 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042261', 'tblTempUsageDetail_20' ) end [2024-12-17 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042261', 'tblTempVendorCDR_20' ) start [2024-12-17 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042261', 'tblTempVendorCDR_20' ) end [2024-12-17 17:12:22] Production.INFO: ProcessCDR(1,14042261,1,1,2) [2024-12-17 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042261', 'tblTempUsageDetail_20' ) start [2024-12-17 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042261', 'tblTempUsageDetail_20' ) end [2024-12-17 17:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:12:25] Production.INFO: ==19656== Releasing lock... [2024-12-17 17:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:12:25] Production.INFO: 65 MB #Memory Used# [2024-12-17 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:13:05 [end_date_ymd] => 2024-12-17 17:13:05 [RateCDR] => 1 ) [2024-12-17 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:13:05' and `end` < '2024-12-17 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:13:20] Production.INFO: count ==4924 [2024-12-17 17:13:22] Production.ERROR: pbx CDR StartTime 2024-12-17 14:13:05 - End Time 2024-12-17 17:13:05 [2024-12-17 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042266', 'tblTempUsageDetail_20' ) start [2024-12-17 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042266', 'tblTempUsageDetail_20' ) end [2024-12-17 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042266', 'tblTempVendorCDR_20' ) start [2024-12-17 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042266', 'tblTempVendorCDR_20' ) end [2024-12-17 17:13:22] Production.INFO: ProcessCDR(1,14042266,1,1,2) [2024-12-17 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042266', 'tblTempUsageDetail_20' ) start [2024-12-17 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042266', 'tblTempUsageDetail_20' ) end [2024-12-17 17:13:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:13:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:13:26] Production.INFO: ==19762== Releasing lock... [2024-12-17 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:13:26] Production.INFO: 64.75 MB #Memory Used# [2024-12-17 17:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:14:04 [end_date_ymd] => 2024-12-17 17:14:04 [RateCDR] => 1 ) [2024-12-17 17: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 14:14:04' and `end` < '2024-12-17 17: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-17 17:14:18] Production.INFO: count ==4949 [2024-12-17 17:14:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:14:04 - End Time 2024-12-17 17:14:04 [2024-12-17 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042271', 'tblTempUsageDetail_20' ) start [2024-12-17 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042271', 'tblTempUsageDetail_20' ) end [2024-12-17 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042271', 'tblTempVendorCDR_20' ) start [2024-12-17 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042271', 'tblTempVendorCDR_20' ) end [2024-12-17 17:14:20] Production.INFO: ProcessCDR(1,14042271,1,1,2) [2024-12-17 17:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042271', 'tblTempUsageDetail_20' ) start [2024-12-17 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042271', 'tblTempUsageDetail_20' ) end [2024-12-17 17:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:14:25] Production.INFO: ==19865== Releasing lock... [2024-12-17 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:14:25] Production.INFO: 65 MB #Memory Used# [2024-12-17 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:15:05 [end_date_ymd] => 2024-12-17 17:15:05 [RateCDR] => 1 ) [2024-12-17 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:15:05' and `end` < '2024-12-17 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:15:18] Production.INFO: count ==5029 [2024-12-17 17:15:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:15:05 - End Time 2024-12-17 17:15:05 [2024-12-17 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042276', 'tblTempUsageDetail_20' ) start [2024-12-17 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042276', 'tblTempUsageDetail_20' ) end [2024-12-17 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042276', 'tblTempVendorCDR_20' ) start [2024-12-17 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042276', 'tblTempVendorCDR_20' ) end [2024-12-17 17:15:20] Production.INFO: ProcessCDR(1,14042276,1,1,2) [2024-12-17 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042276', 'tblTempUsageDetail_20' ) start [2024-12-17 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042276', 'tblTempUsageDetail_20' ) end [2024-12-17 17:15:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:15:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:15:25] Production.INFO: ==19970== Releasing lock... [2024-12-17 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:15:25] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 17:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:16:04 [end_date_ymd] => 2024-12-17 17:16:04 [RateCDR] => 1 ) [2024-12-17 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-17 14:16:04' and `end` < '2024-12-17 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-17 17:16:17] Production.INFO: count ==5025 [2024-12-17 17:16:19] Production.ERROR: pbx CDR StartTime 2024-12-17 14:16:04 - End Time 2024-12-17 17:16:04 [2024-12-17 17:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042281', 'tblTempUsageDetail_20' ) start [2024-12-17 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042281', 'tblTempUsageDetail_20' ) end [2024-12-17 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042281', 'tblTempVendorCDR_20' ) start [2024-12-17 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042281', 'tblTempVendorCDR_20' ) end [2024-12-17 17:16:19] Production.INFO: ProcessCDR(1,14042281,1,1,2) [2024-12-17 17:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042281', 'tblTempUsageDetail_20' ) start [2024-12-17 17:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042281', 'tblTempUsageDetail_20' ) end [2024-12-17 17:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:16:22] Production.INFO: ==20079== Releasing lock... [2024-12-17 17:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:16:22] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 17:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:17:04 [end_date_ymd] => 2024-12-17 17:17:04 [RateCDR] => 1 ) [2024-12-17 17: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 14:17:04' and `end` < '2024-12-17 17: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-17 17:17:18] Production.INFO: count ==5026 [2024-12-17 17:17:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:17:04 - End Time 2024-12-17 17:17:04 [2024-12-17 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042286', 'tblTempUsageDetail_20' ) start [2024-12-17 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042286', 'tblTempUsageDetail_20' ) end [2024-12-17 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042286', 'tblTempVendorCDR_20' ) start [2024-12-17 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042286', 'tblTempVendorCDR_20' ) end [2024-12-17 17:17:20] Production.INFO: ProcessCDR(1,14042286,1,1,2) [2024-12-17 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042286', 'tblTempUsageDetail_20' ) start [2024-12-17 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042286', 'tblTempUsageDetail_20' ) end [2024-12-17 17:17:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:17:25] Production.INFO: ==20155== Releasing lock... [2024-12-17 17:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:17:25] Production.INFO: 65.75 MB #Memory Used# [2024-12-17 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:18:05 [end_date_ymd] => 2024-12-17 17:18:05 [RateCDR] => 1 ) [2024-12-17 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:18:05' and `end` < '2024-12-17 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:18:21] Production.INFO: count ==5019 [2024-12-17 17:18:23] Production.ERROR: pbx CDR StartTime 2024-12-17 14:18:05 - End Time 2024-12-17 17:18:05 [2024-12-17 17:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042291', 'tblTempUsageDetail_20' ) start [2024-12-17 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042291', 'tblTempUsageDetail_20' ) end [2024-12-17 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042291', 'tblTempVendorCDR_20' ) start [2024-12-17 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042291', 'tblTempVendorCDR_20' ) end [2024-12-17 17:18:23] Production.INFO: ProcessCDR(1,14042291,1,1,2) [2024-12-17 17:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042291', 'tblTempUsageDetail_20' ) start [2024-12-17 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042291', 'tblTempUsageDetail_20' ) end [2024-12-17 17:18:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:18:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:18:27] Production.INFO: ==20226== Releasing lock... [2024-12-17 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:18:27] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 17:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:19:04 [end_date_ymd] => 2024-12-17 17:19:04 [RateCDR] => 1 ) [2024-12-17 17: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-17 14:19:04' and `end` < '2024-12-17 17: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-17 17:19:20] Production.INFO: count ==5001 [2024-12-17 17:19:22] Production.ERROR: pbx CDR StartTime 2024-12-17 14:19:04 - End Time 2024-12-17 17:19:04 [2024-12-17 17:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042296', 'tblTempUsageDetail_20' ) start [2024-12-17 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042296', 'tblTempUsageDetail_20' ) end [2024-12-17 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042296', 'tblTempVendorCDR_20' ) start [2024-12-17 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042296', 'tblTempVendorCDR_20' ) end [2024-12-17 17:19:22] Production.INFO: ProcessCDR(1,14042296,1,1,2) [2024-12-17 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042296', 'tblTempUsageDetail_20' ) start [2024-12-17 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042296', 'tblTempUsageDetail_20' ) end [2024-12-17 17:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:19:25] Production.INFO: ==20299== Releasing lock... [2024-12-17 17:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:19:26] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:20:05 [end_date_ymd] => 2024-12-17 17:20:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:20:05' and `end` < '2024-12-17 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-17 17:20:22] Production.INFO: count ==5013 [2024-12-17 17:20:24] Production.ERROR: pbx CDR StartTime 2024-12-17 14:20:05 - End Time 2024-12-17 17:20:05 [2024-12-17 17:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042301', 'tblTempUsageDetail_20' ) start [2024-12-17 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042301', 'tblTempUsageDetail_20' ) end [2024-12-17 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042301', 'tblTempVendorCDR_20' ) start [2024-12-17 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042301', 'tblTempVendorCDR_20' ) end [2024-12-17 17:20:24] Production.INFO: ProcessCDR(1,14042301,1,1,2) [2024-12-17 17:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042301', 'tblTempUsageDetail_20' ) start [2024-12-17 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042301', 'tblTempUsageDetail_20' ) end [2024-12-17 17:20:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:20:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:20:28] Production.INFO: ==20374== Releasing lock... [2024-12-17 17:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:20:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-17 17:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:21:04 [end_date_ymd] => 2024-12-17 17:21:04 [RateCDR] => 1 ) [2024-12-17 17: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-17 14:21:04' and `end` < '2024-12-17 17: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-17 17:21:21] Production.INFO: count ==4987 [2024-12-17 17:21:23] Production.ERROR: pbx CDR StartTime 2024-12-17 14:21:04 - End Time 2024-12-17 17:21:04 [2024-12-17 17:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042307', 'tblTempUsageDetail_20' ) start [2024-12-17 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042307', 'tblTempUsageDetail_20' ) end [2024-12-17 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042307', 'tblTempVendorCDR_20' ) start [2024-12-17 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042307', 'tblTempVendorCDR_20' ) end [2024-12-17 17:21:23] Production.INFO: ProcessCDR(1,14042307,1,1,2) [2024-12-17 17:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042307', 'tblTempUsageDetail_20' ) start [2024-12-17 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042307', 'tblTempUsageDetail_20' ) end [2024-12-17 17:21:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:21:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:21:27] Production.INFO: ==20449== Releasing lock... [2024-12-17 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:21:27] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:22:04 [end_date_ymd] => 2024-12-17 17:22:04 [RateCDR] => 1 ) [2024-12-17 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-17 14:22:04' and `end` < '2024-12-17 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-17 17:22:21] Production.INFO: count ==4964 [2024-12-17 17:22:22] Production.ERROR: pbx CDR StartTime 2024-12-17 14:22:04 - End Time 2024-12-17 17:22:04 [2024-12-17 17:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042312', 'tblTempUsageDetail_20' ) start [2024-12-17 17:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042312', 'tblTempUsageDetail_20' ) end [2024-12-17 17:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042312', 'tblTempVendorCDR_20' ) start [2024-12-17 17:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042312', 'tblTempVendorCDR_20' ) end [2024-12-17 17:22:23] Production.INFO: ProcessCDR(1,14042312,1,1,2) [2024-12-17 17:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042312', 'tblTempUsageDetail_20' ) start [2024-12-17 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042312', 'tblTempUsageDetail_20' ) end [2024-12-17 17:22:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:22:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:22:27] Production.INFO: ==20522== Releasing lock... [2024-12-17 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:22:27] Production.INFO: 65.25 MB #Memory Used# [2024-12-17 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:23:05 [end_date_ymd] => 2024-12-17 17:23:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:23:05' and `end` < '2024-12-17 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:23:18] Production.INFO: count ==4937 [2024-12-17 17:23:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:23:05 - End Time 2024-12-17 17:23:05 [2024-12-17 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042317', 'tblTempUsageDetail_20' ) start [2024-12-17 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042317', 'tblTempUsageDetail_20' ) end [2024-12-17 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042317', 'tblTempVendorCDR_20' ) start [2024-12-17 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042317', 'tblTempVendorCDR_20' ) end [2024-12-17 17:23:20] Production.INFO: ProcessCDR(1,14042317,1,1,2) [2024-12-17 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042317', 'tblTempUsageDetail_20' ) start [2024-12-17 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042317', 'tblTempUsageDetail_20' ) end [2024-12-17 17:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:23:24] Production.INFO: ==20598== Releasing lock... [2024-12-17 17:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:23:24] Production.INFO: 65 MB #Memory Used# [2024-12-17 17:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:24:04 [end_date_ymd] => 2024-12-17 17:24:04 [RateCDR] => 1 ) [2024-12-17 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-17 14:24:04' and `end` < '2024-12-17 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-17 17:24:17] Production.INFO: count ==4931 [2024-12-17 17:24:19] Production.ERROR: pbx CDR StartTime 2024-12-17 14:24:04 - End Time 2024-12-17 17:24:04 [2024-12-17 17:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042322', 'tblTempUsageDetail_20' ) start [2024-12-17 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042322', 'tblTempUsageDetail_20' ) end [2024-12-17 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042322', 'tblTempVendorCDR_20' ) start [2024-12-17 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042322', 'tblTempVendorCDR_20' ) end [2024-12-17 17:24:19] Production.INFO: ProcessCDR(1,14042322,1,1,2) [2024-12-17 17:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042322', 'tblTempUsageDetail_20' ) start [2024-12-17 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042322', 'tblTempUsageDetail_20' ) end [2024-12-17 17:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:24:24] Production.INFO: ==20671== Releasing lock... [2024-12-17 17:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:24:24] Production.INFO: 65 MB #Memory Used# [2024-12-17 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:25:05 [end_date_ymd] => 2024-12-17 17:25:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:25:05' and `end` < '2024-12-17 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:25:20] Production.INFO: count ==4921 [2024-12-17 17:25:22] Production.ERROR: pbx CDR StartTime 2024-12-17 14:25:05 - End Time 2024-12-17 17:25:05 [2024-12-17 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042327', 'tblTempUsageDetail_20' ) start [2024-12-17 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042327', 'tblTempUsageDetail_20' ) end [2024-12-17 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042327', 'tblTempVendorCDR_20' ) start [2024-12-17 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042327', 'tblTempVendorCDR_20' ) end [2024-12-17 17:25:22] Production.INFO: ProcessCDR(1,14042327,1,1,2) [2024-12-17 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042327', 'tblTempUsageDetail_20' ) start [2024-12-17 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042327', 'tblTempUsageDetail_20' ) end [2024-12-17 17:25:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:25:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:25:27] Production.INFO: ==20742== Releasing lock... [2024-12-17 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:25:27] Production.INFO: 64.75 MB #Memory Used# [2024-12-17 17:26:15] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:26:15 [end_date_ymd] => 2024-12-17 17:26:15 [RateCDR] => 1 ) [2024-12-17 17:26:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:26:15' and `end` < '2024-12-17 17:26:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:26:27] Production.INFO: count ==4919 [2024-12-17 17:27:23] Production.ERROR: pbx CDR StartTime 2024-12-17 14:26:15 - End Time 2024-12-17 17:26:15 [2024-12-17 17:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042332', 'tblTempUsageDetail_20' ) start [2024-12-17 17:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042332', 'tblTempUsageDetail_20' ) end [2024-12-17 17:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042332', 'tblTempVendorCDR_20' ) start [2024-12-17 17:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042332', 'tblTempVendorCDR_20' ) end [2024-12-17 17:27:26] Production.INFO: ProcessCDR(1,14042332,1,1,2) [2024-12-17 17:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:27:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:27:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042332', 'tblTempUsageDetail_20' ) start [2024-12-17 17:28:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042332', 'tblTempUsageDetail_20' ) end [2024-12-17 17:28:04] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:28:04] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:28:08] Production.INFO: ==20853== Releasing lock... [2024-12-17 17:28:08] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:28:08] Production.INFO: 64.75 MB #Memory Used# [2024-12-17 17:29:14] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:29:14 [end_date_ymd] => 2024-12-17 17:29:14 [RateCDR] => 1 ) [2024-12-17 17:29:14] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and 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 14:29:14' and `end` < '2024-12-17 17:29:14' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:29:27] Production.INFO: count ==4889 [2024-12-17 17:30:16] Production.ERROR: pbx CDR StartTime 2024-12-17 14:29:14 - End Time 2024-12-17 17:29:14 [2024-12-17 17:30:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:30:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042344', 'tblTempUsageDetail_20' ) start [2024-12-17 17:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042344', 'tblTempUsageDetail_20' ) end [2024-12-17 17:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042344', 'tblTempVendorCDR_20' ) start [2024-12-17 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042344', 'tblTempVendorCDR_20' ) end [2024-12-17 17:30:19] Production.INFO: ProcessCDR(1,14042344,1,1,2) [2024-12-17 17:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:30:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:30:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042344', 'tblTempUsageDetail_20' ) start [2024-12-17 17:31:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042344', 'tblTempUsageDetail_20' ) end [2024-12-17 17:31:09] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:31:09] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:31:13] Production.INFO: ==21053== Releasing lock... [2024-12-17 17:31:13] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:31:13] Production.INFO: 64.5 MB #Memory Used# [2024-12-17 17:32:25] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:32:25 [end_date_ymd] => 2024-12-17 17:32:25 [RateCDR] => 1 ) [2024-12-17 17:32:25] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:32:25' and `end` < '2024-12-17 17:32:25' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:32:41] Production.INFO: count ==4901 [2024-12-17 17:32:43] Production.ERROR: pbx CDR StartTime 2024-12-17 14:32:25 - End Time 2024-12-17 17:32:25 [2024-12-17 17:32:43] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:32:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042356', 'tblTempUsageDetail_20' ) start [2024-12-17 17:32:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042356', 'tblTempUsageDetail_20' ) end [2024-12-17 17:32:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042356', 'tblTempVendorCDR_20' ) start [2024-12-17 17:32:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042356', 'tblTempVendorCDR_20' ) end [2024-12-17 17:32:43] Production.INFO: ProcessCDR(1,14042356,1,1,2) [2024-12-17 17:32:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:32:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:32:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:32:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:32:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042356', 'tblTempUsageDetail_20' ) start [2024-12-17 17:32:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042356', 'tblTempUsageDetail_20' ) end [2024-12-17 17:32:48] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:32:48] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:32:48] Production.INFO: ==21257== Releasing lock... [2024-12-17 17:32:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:32:48] Production.INFO: 64.75 MB #Memory Used# [2024-12-17 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:33:05 [end_date_ymd] => 2024-12-17 17:33:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:33:05' and `end` < '2024-12-17 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-17 17:33:20] Production.INFO: count ==4903 [2024-12-17 17:33:22] Production.ERROR: pbx CDR StartTime 2024-12-17 14:33:05 - End Time 2024-12-17 17:33:05 [2024-12-17 17:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042361', 'tblTempUsageDetail_20' ) start [2024-12-17 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042361', 'tblTempUsageDetail_20' ) end [2024-12-17 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042361', 'tblTempVendorCDR_20' ) start [2024-12-17 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042361', 'tblTempVendorCDR_20' ) end [2024-12-17 17:33:22] Production.INFO: ProcessCDR(1,14042361,1,1,2) [2024-12-17 17:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042361', 'tblTempUsageDetail_20' ) start [2024-12-17 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042361', 'tblTempUsageDetail_20' ) end [2024-12-17 17:33:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:33:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:33:27] Production.INFO: ==21330== Releasing lock... [2024-12-17 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:33:27] Production.INFO: 64.75 MB #Memory Used# [2024-12-17 17:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:34:04 [end_date_ymd] => 2024-12-17 17:34:04 [RateCDR] => 1 ) [2024-12-17 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-17 14:34:04' and `end` < '2024-12-17 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-17 17:34:18] Production.INFO: count ==4867 [2024-12-17 17:34:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:34:04 - End Time 2024-12-17 17:34:04 [2024-12-17 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042366', 'tblTempUsageDetail_20' ) start [2024-12-17 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042366', 'tblTempUsageDetail_20' ) end [2024-12-17 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042366', 'tblTempVendorCDR_20' ) start [2024-12-17 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042366', 'tblTempVendorCDR_20' ) end [2024-12-17 17:34:20] Production.INFO: ProcessCDR(1,14042366,1,1,2) [2024-12-17 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042366', 'tblTempUsageDetail_20' ) start [2024-12-17 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042366', 'tblTempUsageDetail_20' ) end [2024-12-17 17:34:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:34:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:34:25] Production.INFO: ==21404== Releasing lock... [2024-12-17 17:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:34:25] Production.INFO: 64.5 MB #Memory Used# [2024-12-17 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:35:05 [end_date_ymd] => 2024-12-17 17:35:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:35:05' and `end` < '2024-12-17 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-17 17:35:18] Production.INFO: count ==4843 [2024-12-17 17:35:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:35:05 - End Time 2024-12-17 17:35:05 [2024-12-17 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042371', 'tblTempUsageDetail_20' ) start [2024-12-17 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042371', 'tblTempUsageDetail_20' ) end [2024-12-17 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042371', 'tblTempVendorCDR_20' ) start [2024-12-17 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042371', 'tblTempVendorCDR_20' ) end [2024-12-17 17:35:20] Production.INFO: ProcessCDR(1,14042371,1,1,2) [2024-12-17 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042371', 'tblTempUsageDetail_20' ) start [2024-12-17 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042371', 'tblTempUsageDetail_20' ) end [2024-12-17 17:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:35:24] Production.INFO: ==21475== Releasing lock... [2024-12-17 17:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:35:24] Production.INFO: 64.25 MB #Memory Used# [2024-12-17 17:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:36:04 [end_date_ymd] => 2024-12-17 17:36:04 [RateCDR] => 1 ) [2024-12-17 17: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-17 14:36:04' and `end` < '2024-12-17 17: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-17 17:36:18] Production.INFO: count ==4817 [2024-12-17 17:36:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:36:04 - End Time 2024-12-17 17:36:04 [2024-12-17 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042376', 'tblTempUsageDetail_20' ) start [2024-12-17 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042376', 'tblTempUsageDetail_20' ) end [2024-12-17 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042376', 'tblTempVendorCDR_20' ) start [2024-12-17 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042376', 'tblTempVendorCDR_20' ) end [2024-12-17 17:36:20] Production.INFO: ProcessCDR(1,14042376,1,1,2) [2024-12-17 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042376', 'tblTempUsageDetail_20' ) start [2024-12-17 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042376', 'tblTempUsageDetail_20' ) end [2024-12-17 17:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:36:23] Production.INFO: ==21547== Releasing lock... [2024-12-17 17:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:36:23] Production.INFO: 64 MB #Memory Used# [2024-12-17 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:37:05 [end_date_ymd] => 2024-12-17 17:37:05 [RateCDR] => 1 ) [2024-12-17 17: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-17 14:37:05' and `end` < '2024-12-17 17: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-17 17:37:20] Production.INFO: count ==4821 [2024-12-17 17:37:22] Production.ERROR: pbx CDR StartTime 2024-12-17 14:37:05 - End Time 2024-12-17 17:37:05 [2024-12-17 17:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042381', 'tblTempUsageDetail_20' ) start [2024-12-17 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042381', 'tblTempUsageDetail_20' ) end [2024-12-17 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042381', 'tblTempVendorCDR_20' ) start [2024-12-17 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042381', 'tblTempVendorCDR_20' ) end [2024-12-17 17:37:22] Production.INFO: ProcessCDR(1,14042381,1,1,2) [2024-12-17 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042381', 'tblTempUsageDetail_20' ) start [2024-12-17 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042381', 'tblTempUsageDetail_20' ) end [2024-12-17 17:37:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:37:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:37:27] Production.INFO: ==21619== Releasing lock... [2024-12-17 17:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:37:27] Production.INFO: 64 MB #Memory Used# [2024-12-17 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:38:05 [end_date_ymd] => 2024-12-17 17:38:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:38:05' and `end` < '2024-12-17 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-17 17:38:18] Production.INFO: count ==4807 [2024-12-17 17:38:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:38:05 - End Time 2024-12-17 17:38:05 [2024-12-17 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042386', 'tblTempUsageDetail_20' ) start [2024-12-17 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042386', 'tblTempUsageDetail_20' ) end [2024-12-17 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042386', 'tblTempVendorCDR_20' ) start [2024-12-17 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042386', 'tblTempVendorCDR_20' ) end [2024-12-17 17:38:20] Production.INFO: ProcessCDR(1,14042386,1,1,2) [2024-12-17 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042386', 'tblTempUsageDetail_20' ) start [2024-12-17 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042386', 'tblTempUsageDetail_20' ) end [2024-12-17 17:38:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:38:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:38:25] Production.INFO: ==21705== Releasing lock... [2024-12-17 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:38:25] Production.INFO: 64 MB #Memory Used# [2024-12-17 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:39:05 [end_date_ymd] => 2024-12-17 17:39:05 [RateCDR] => 1 ) [2024-12-17 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:39:05' and `end` < '2024-12-17 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:39:18] Production.INFO: count ==4805 [2024-12-17 17:39:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:39:05 - End Time 2024-12-17 17:39:05 [2024-12-17 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042391', 'tblTempUsageDetail_20' ) start [2024-12-17 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042391', 'tblTempUsageDetail_20' ) end [2024-12-17 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042391', 'tblTempVendorCDR_20' ) start [2024-12-17 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042391', 'tblTempVendorCDR_20' ) end [2024-12-17 17:39:20] Production.INFO: ProcessCDR(1,14042391,1,1,2) [2024-12-17 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042391', 'tblTempUsageDetail_20' ) start [2024-12-17 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042391', 'tblTempUsageDetail_20' ) end [2024-12-17 17:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:39:23] Production.INFO: ==21811== Releasing lock... [2024-12-17 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:39:23] Production.INFO: 64 MB #Memory Used# [2024-12-17 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:40:05 [end_date_ymd] => 2024-12-17 17:40:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:40:05' and `end` < '2024-12-17 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-17 17:40:26] Production.INFO: count ==4792 [2024-12-17 17:40:28] Production.ERROR: pbx CDR StartTime 2024-12-17 14:40:05 - End Time 2024-12-17 17:40:05 [2024-12-17 17:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042394', 'tblTempUsageDetail_20' ) start [2024-12-17 17:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042394', 'tblTempUsageDetail_20' ) end [2024-12-17 17:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042394', 'tblTempVendorCDR_20' ) start [2024-12-17 17:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042394', 'tblTempVendorCDR_20' ) end [2024-12-17 17:40:28] Production.INFO: ProcessCDR(1,14042394,1,1,2) [2024-12-17 17:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042394', 'tblTempUsageDetail_20' ) start [2024-12-17 17:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042394', 'tblTempUsageDetail_20' ) end [2024-12-17 17:40:33] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:40:33] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:40:33] Production.INFO: ==21903== Releasing lock... [2024-12-17 17:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:40:33] Production.INFO: 63.75 MB #Memory Used# [2024-12-17 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:41:05 [end_date_ymd] => 2024-12-17 17:41:05 [RateCDR] => 1 ) [2024-12-17 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:41:05' and `end` < '2024-12-17 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:41:22] Production.INFO: count ==4769 [2024-12-17 17:41:24] Production.ERROR: pbx CDR StartTime 2024-12-17 14:41:05 - End Time 2024-12-17 17:41:05 [2024-12-17 17:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042402', 'tblTempUsageDetail_20' ) start [2024-12-17 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042402', 'tblTempUsageDetail_20' ) end [2024-12-17 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042402', 'tblTempVendorCDR_20' ) start [2024-12-17 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042402', 'tblTempVendorCDR_20' ) end [2024-12-17 17:41:24] Production.INFO: ProcessCDR(1,14042402,1,1,2) [2024-12-17 17:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042402', 'tblTempUsageDetail_20' ) start [2024-12-17 17:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042402', 'tblTempUsageDetail_20' ) end [2024-12-17 17:41:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:41:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:41:29] Production.INFO: ==22051== Releasing lock... [2024-12-17 17:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:41:29] Production.INFO: 64 MB #Memory Used# [2024-12-17 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:42:05 [end_date_ymd] => 2024-12-17 17:42:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:42:05' and `end` < '2024-12-17 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-17 17:42:18] Production.INFO: count ==4781 [2024-12-17 17:42:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:42:05 - End Time 2024-12-17 17:42:05 [2024-12-17 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042407', 'tblTempUsageDetail_20' ) start [2024-12-17 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042407', 'tblTempUsageDetail_20' ) end [2024-12-17 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042407', 'tblTempVendorCDR_20' ) start [2024-12-17 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042407', 'tblTempVendorCDR_20' ) end [2024-12-17 17:42:20] Production.INFO: ProcessCDR(1,14042407,1,1,2) [2024-12-17 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042407', 'tblTempUsageDetail_20' ) start [2024-12-17 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042407', 'tblTempUsageDetail_20' ) end [2024-12-17 17:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:42:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:42:25] Production.INFO: ==22152== Releasing lock... [2024-12-17 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:42:25] Production.INFO: 63.75 MB #Memory Used# [2024-12-17 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:43:06 [end_date_ymd] => 2024-12-17 17:43:06 [RateCDR] => 1 ) [2024-12-17 17:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:43:06' and `end` < '2024-12-17 17:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:43:19] Production.INFO: count ==4773 [2024-12-17 17:43:21] Production.ERROR: pbx CDR StartTime 2024-12-17 14:43:06 - End Time 2024-12-17 17:43:06 [2024-12-17 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042412', 'tblTempUsageDetail_20' ) start [2024-12-17 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042412', 'tblTempUsageDetail_20' ) end [2024-12-17 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042412', 'tblTempVendorCDR_20' ) start [2024-12-17 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042412', 'tblTempVendorCDR_20' ) end [2024-12-17 17:43:21] Production.INFO: ProcessCDR(1,14042412,1,1,2) [2024-12-17 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042412', 'tblTempUsageDetail_20' ) start [2024-12-17 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042412', 'tblTempUsageDetail_20' ) end [2024-12-17 17:43:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:43:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:43:26] Production.INFO: ==22276== Releasing lock... [2024-12-17 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:43:26] Production.INFO: 63.75 MB #Memory Used# [2024-12-17 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:44:05 [end_date_ymd] => 2024-12-17 17:44:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:44:05' and `end` < '2024-12-17 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-17 17:44:18] Production.INFO: count ==4787 [2024-12-17 17:44:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:44:05 - End Time 2024-12-17 17:44:05 [2024-12-17 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042417', 'tblTempUsageDetail_20' ) start [2024-12-17 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042417', 'tblTempUsageDetail_20' ) end [2024-12-17 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042417', 'tblTempVendorCDR_20' ) start [2024-12-17 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042417', 'tblTempVendorCDR_20' ) end [2024-12-17 17:44:20] Production.INFO: ProcessCDR(1,14042417,1,1,2) [2024-12-17 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042417', 'tblTempUsageDetail_20' ) start [2024-12-17 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042417', 'tblTempUsageDetail_20' ) end [2024-12-17 17:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:44:25] Production.INFO: ==22390== Releasing lock... [2024-12-17 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:44:25] Production.INFO: 63.75 MB #Memory Used# [2024-12-17 17:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:45:04 [end_date_ymd] => 2024-12-17 17:45:04 [RateCDR] => 1 ) [2024-12-17 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-17 14:45:04' and `end` < '2024-12-17 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-17 17:45:22] Production.INFO: count ==4794 [2024-12-17 17:45:24] Production.ERROR: pbx CDR StartTime 2024-12-17 14:45:04 - End Time 2024-12-17 17:45:04 [2024-12-17 17:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042422', 'tblTempUsageDetail_20' ) start [2024-12-17 17:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042422', 'tblTempUsageDetail_20' ) end [2024-12-17 17:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042422', 'tblTempVendorCDR_20' ) start [2024-12-17 17:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042422', 'tblTempVendorCDR_20' ) end [2024-12-17 17:45:24] Production.INFO: ProcessCDR(1,14042422,1,1,2) [2024-12-17 17:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042422', 'tblTempUsageDetail_20' ) start [2024-12-17 17:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042422', 'tblTempUsageDetail_20' ) end [2024-12-17 17:45:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:45:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:45:28] Production.INFO: ==22510== Releasing lock... [2024-12-17 17:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:45:28] Production.INFO: 64 MB #Memory Used# [2024-12-17 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:46:05 [end_date_ymd] => 2024-12-17 17:46:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:46:05' and `end` < '2024-12-17 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-17 17:46:18] Production.INFO: count ==4789 [2024-12-17 17:46:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:46:05 - End Time 2024-12-17 17:46:05 [2024-12-17 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042427', 'tblTempUsageDetail_20' ) start [2024-12-17 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042427', 'tblTempUsageDetail_20' ) end [2024-12-17 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042427', 'tblTempVendorCDR_20' ) start [2024-12-17 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042427', 'tblTempVendorCDR_20' ) end [2024-12-17 17:46:20] Production.INFO: ProcessCDR(1,14042427,1,1,2) [2024-12-17 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042427', 'tblTempUsageDetail_20' ) start [2024-12-17 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042427', 'tblTempUsageDetail_20' ) end [2024-12-17 17:46:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:46:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:46:25] Production.INFO: ==22636== Releasing lock... [2024-12-17 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:46:25] Production.INFO: 63.75 MB #Memory Used# [2024-12-17 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:47:05 [end_date_ymd] => 2024-12-17 17:47:05 [RateCDR] => 1 ) [2024-12-17 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:47:05' and `end` < '2024-12-17 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:47:18] Production.INFO: count ==4779 [2024-12-17 17:47:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:47:05 - End Time 2024-12-17 17:47:05 [2024-12-17 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042432', 'tblTempUsageDetail_20' ) start [2024-12-17 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042432', 'tblTempUsageDetail_20' ) end [2024-12-17 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042432', 'tblTempVendorCDR_20' ) start [2024-12-17 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042432', 'tblTempVendorCDR_20' ) end [2024-12-17 17:47:20] Production.INFO: ProcessCDR(1,14042432,1,1,2) [2024-12-17 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042432', 'tblTempUsageDetail_20' ) start [2024-12-17 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042432', 'tblTempUsageDetail_20' ) end [2024-12-17 17:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:47:24] Production.INFO: ==22756== Releasing lock... [2024-12-17 17:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:47:24] Production.INFO: 63.75 MB #Memory Used# [2024-12-17 17:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:48:04 [end_date_ymd] => 2024-12-17 17:48:04 [RateCDR] => 1 ) [2024-12-17 17:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:48:04' and `end` < '2024-12-17 17:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:48:18] Production.INFO: count ==4743 [2024-12-17 17:48:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:48:04 - End Time 2024-12-17 17:48:04 [2024-12-17 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042437', 'tblTempUsageDetail_20' ) start [2024-12-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042437', 'tblTempUsageDetail_20' ) end [2024-12-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042437', 'tblTempVendorCDR_20' ) start [2024-12-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042437', 'tblTempVendorCDR_20' ) end [2024-12-17 17:48:20] Production.INFO: ProcessCDR(1,14042437,1,1,2) [2024-12-17 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042437', 'tblTempUsageDetail_20' ) start [2024-12-17 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042437', 'tblTempUsageDetail_20' ) end [2024-12-17 17:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:48:24] Production.INFO: ==22869== Releasing lock... [2024-12-17 17:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:48:24] Production.INFO: 63.5 MB #Memory Used# [2024-12-17 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:49:05 [end_date_ymd] => 2024-12-17 17:49:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:49:05' and `end` < '2024-12-17 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-17 17:49:18] Production.INFO: count ==4726 [2024-12-17 17:49:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:49:05 - End Time 2024-12-17 17:49:05 [2024-12-17 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042442', 'tblTempUsageDetail_20' ) start [2024-12-17 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042442', 'tblTempUsageDetail_20' ) end [2024-12-17 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042442', 'tblTempVendorCDR_20' ) start [2024-12-17 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042442', 'tblTempVendorCDR_20' ) end [2024-12-17 17:49:20] Production.INFO: ProcessCDR(1,14042442,1,1,2) [2024-12-17 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042442', 'tblTempUsageDetail_20' ) start [2024-12-17 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042442', 'tblTempUsageDetail_20' ) end [2024-12-17 17:49:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:49:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:49:24] Production.INFO: ==22982== Releasing lock... [2024-12-17 17:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:49:24] Production.INFO: 63.5 MB #Memory Used# [2024-12-17 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:50:05 [end_date_ymd] => 2024-12-17 17:50:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:50:05' and `end` < '2024-12-17 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-17 17:50:20] Production.INFO: count ==4722 [2024-12-17 17:50:22] Production.ERROR: pbx CDR StartTime 2024-12-17 14:50:05 - End Time 2024-12-17 17:50:05 [2024-12-17 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042448', 'tblTempUsageDetail_20' ) start [2024-12-17 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042448', 'tblTempUsageDetail_20' ) end [2024-12-17 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042448', 'tblTempVendorCDR_20' ) start [2024-12-17 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042448', 'tblTempVendorCDR_20' ) end [2024-12-17 17:50:22] Production.INFO: ProcessCDR(1,14042448,1,1,2) [2024-12-17 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042448', 'tblTempUsageDetail_20' ) start [2024-12-17 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042448', 'tblTempUsageDetail_20' ) end [2024-12-17 17:50:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:50:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:50:26] Production.INFO: ==23107== Releasing lock... [2024-12-17 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:50:26] Production.INFO: 63.25 MB #Memory Used# [2024-12-17 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:51:05 [end_date_ymd] => 2024-12-17 17:51:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:51:05' and `end` < '2024-12-17 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-17 17:51:18] Production.INFO: count ==4733 [2024-12-17 17:51:19] Production.ERROR: pbx CDR StartTime 2024-12-17 14:51:05 - End Time 2024-12-17 17:51:05 [2024-12-17 17:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042453', 'tblTempUsageDetail_20' ) start [2024-12-17 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042453', 'tblTempUsageDetail_20' ) end [2024-12-17 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042453', 'tblTempVendorCDR_20' ) start [2024-12-17 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042453', 'tblTempVendorCDR_20' ) end [2024-12-17 17:51:19] Production.INFO: ProcessCDR(1,14042453,1,1,2) [2024-12-17 17:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042453', 'tblTempUsageDetail_20' ) start [2024-12-17 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042453', 'tblTempUsageDetail_20' ) end [2024-12-17 17:51:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:51:24] Production.INFO: ==23228== Releasing lock... [2024-12-17 17:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:51:24] Production.INFO: 63.5 MB #Memory Used# [2024-12-17 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:52:06 [end_date_ymd] => 2024-12-17 17:52:06 [RateCDR] => 1 ) [2024-12-17 17:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:52:06' and `end` < '2024-12-17 17:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:52:21] Production.INFO: count ==4710 [2024-12-17 17:52:23] Production.ERROR: pbx CDR StartTime 2024-12-17 14:52:06 - End Time 2024-12-17 17:52:06 [2024-12-17 17:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042458', 'tblTempUsageDetail_20' ) start [2024-12-17 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042458', 'tblTempUsageDetail_20' ) end [2024-12-17 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042458', 'tblTempVendorCDR_20' ) start [2024-12-17 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042458', 'tblTempVendorCDR_20' ) end [2024-12-17 17:52:23] Production.INFO: ProcessCDR(1,14042458,1,1,2) [2024-12-17 17:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042458', 'tblTempUsageDetail_20' ) start [2024-12-17 17:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042458', 'tblTempUsageDetail_20' ) end [2024-12-17 17:52:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:52:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:52:28] Production.INFO: ==23358== Releasing lock... [2024-12-17 17:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:52:28] Production.INFO: 63.25 MB #Memory Used# [2024-12-17 17:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:53:04 [end_date_ymd] => 2024-12-17 17:53:04 [RateCDR] => 1 ) [2024-12-17 17: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-17 14:53:04' and `end` < '2024-12-17 17: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-17 17:53:20] Production.INFO: count ==4688 [2024-12-17 17:53:22] Production.ERROR: pbx CDR StartTime 2024-12-17 14:53:04 - End Time 2024-12-17 17:53:04 [2024-12-17 17:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042463', 'tblTempUsageDetail_20' ) start [2024-12-17 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042463', 'tblTempUsageDetail_20' ) end [2024-12-17 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042463', 'tblTempVendorCDR_20' ) start [2024-12-17 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042463', 'tblTempVendorCDR_20' ) end [2024-12-17 17:53:22] Production.INFO: ProcessCDR(1,14042463,1,1,2) [2024-12-17 17:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042463', 'tblTempUsageDetail_20' ) start [2024-12-17 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042463', 'tblTempUsageDetail_20' ) end [2024-12-17 17:53:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:53:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:53:27] Production.INFO: ==23465== Releasing lock... [2024-12-17 17:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:53:27] Production.INFO: 63 MB #Memory Used# [2024-12-17 17:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:54:04 [end_date_ymd] => 2024-12-17 17:54:04 [RateCDR] => 1 ) [2024-12-17 17:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:54:04' and `end` < '2024-12-17 17:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:54:18] Production.INFO: count ==4645 [2024-12-17 17:54:19] Production.ERROR: pbx CDR StartTime 2024-12-17 14:54:04 - End Time 2024-12-17 17:54:04 [2024-12-17 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042468', 'tblTempUsageDetail_20' ) start [2024-12-17 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042468', 'tblTempUsageDetail_20' ) end [2024-12-17 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042468', 'tblTempVendorCDR_20' ) start [2024-12-17 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042468', 'tblTempVendorCDR_20' ) end [2024-12-17 17:54:20] Production.INFO: ProcessCDR(1,14042468,1,1,2) [2024-12-17 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042468', 'tblTempUsageDetail_20' ) start [2024-12-17 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042468', 'tblTempUsageDetail_20' ) end [2024-12-17 17:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:54:24] Production.INFO: ==23556== Releasing lock... [2024-12-17 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:54:24] Production.INFO: 62.75 MB #Memory Used# [2024-12-17 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:55:05 [end_date_ymd] => 2024-12-17 17:55:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:55:05' and `end` < '2024-12-17 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-17 17:55:18] Production.INFO: count ==4624 [2024-12-17 17:55:19] Production.ERROR: pbx CDR StartTime 2024-12-17 14:55:05 - End Time 2024-12-17 17:55:05 [2024-12-17 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042473', 'tblTempUsageDetail_20' ) start [2024-12-17 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042473', 'tblTempUsageDetail_20' ) end [2024-12-17 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042473', 'tblTempVendorCDR_20' ) start [2024-12-17 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042473', 'tblTempVendorCDR_20' ) end [2024-12-17 17:55:19] Production.INFO: ProcessCDR(1,14042473,1,1,2) [2024-12-17 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042473', 'tblTempUsageDetail_20' ) start [2024-12-17 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042473', 'tblTempUsageDetail_20' ) end [2024-12-17 17:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:55:24] Production.INFO: ==23652== Releasing lock... [2024-12-17 17:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:55:24] Production.INFO: 62.5 MB #Memory Used# [2024-12-17 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:56:06 [end_date_ymd] => 2024-12-17 17:56:06 [RateCDR] => 1 ) [2024-12-17 17:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:56:06' and `end` < '2024-12-17 17:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:56:21] Production.INFO: count ==4614 [2024-12-17 17:56:23] Production.ERROR: pbx CDR StartTime 2024-12-17 14:56:06 - End Time 2024-12-17 17:56:06 [2024-12-17 17:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042478', 'tblTempUsageDetail_20' ) start [2024-12-17 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042478', 'tblTempUsageDetail_20' ) end [2024-12-17 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042478', 'tblTempVendorCDR_20' ) start [2024-12-17 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042478', 'tblTempVendorCDR_20' ) end [2024-12-17 17:56:23] Production.INFO: ProcessCDR(1,14042478,1,1,2) [2024-12-17 17:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042478', 'tblTempUsageDetail_20' ) start [2024-12-17 17:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042478', 'tblTempUsageDetail_20' ) end [2024-12-17 17:56:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:56:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:56:28] Production.INFO: ==23745== Releasing lock... [2024-12-17 17:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:56:28] Production.INFO: 62.5 MB #Memory Used# [2024-12-17 17:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:57:04 [end_date_ymd] => 2024-12-17 17:57:04 [RateCDR] => 1 ) [2024-12-17 17: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 14:57:04' and `end` < '2024-12-17 17: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-17 17:57:18] Production.INFO: count ==4589 [2024-12-17 17:57:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:57:04 - End Time 2024-12-17 17:57:04 [2024-12-17 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042483', 'tblTempUsageDetail_20' ) start [2024-12-17 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042483', 'tblTempUsageDetail_20' ) end [2024-12-17 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042483', 'tblTempVendorCDR_20' ) start [2024-12-17 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042483', 'tblTempVendorCDR_20' ) end [2024-12-17 17:57:20] Production.INFO: ProcessCDR(1,14042483,1,1,2) [2024-12-17 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042483', 'tblTempUsageDetail_20' ) start [2024-12-17 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042483', 'tblTempUsageDetail_20' ) end [2024-12-17 17:57:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:57:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:57:25] Production.INFO: ==23875== Releasing lock... [2024-12-17 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:57:25] Production.INFO: 62.25 MB #Memory Used# [2024-12-17 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:58:05 [end_date_ymd] => 2024-12-17 17:58:05 [RateCDR] => 1 ) [2024-12-17 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-17 14:58:05' and `end` < '2024-12-17 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-17 17:58:21] Production.INFO: count ==4583 [2024-12-17 17:58:23] Production.ERROR: pbx CDR StartTime 2024-12-17 14:58:05 - End Time 2024-12-17 17:58:05 [2024-12-17 17:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042488', 'tblTempUsageDetail_20' ) start [2024-12-17 17:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042488', 'tblTempUsageDetail_20' ) end [2024-12-17 17:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042488', 'tblTempVendorCDR_20' ) start [2024-12-17 17:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042488', 'tblTempVendorCDR_20' ) end [2024-12-17 17:58:23] Production.INFO: ProcessCDR(1,14042488,1,1,2) [2024-12-17 17:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042488', 'tblTempUsageDetail_20' ) start [2024-12-17 17:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042488', 'tblTempUsageDetail_20' ) end [2024-12-17 17:58:28] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:58:28] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:58:28] Production.INFO: ==23966== Releasing lock... [2024-12-17 17:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:58:28] Production.INFO: 62.25 MB #Memory Used# [2024-12-17 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 14:59:05 [end_date_ymd] => 2024-12-17 17:59:05 [RateCDR] => 1 ) [2024-12-17 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 14:59:05' and `end` < '2024-12-17 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 17:59:19] Production.INFO: count ==4528 [2024-12-17 17:59:20] Production.ERROR: pbx CDR StartTime 2024-12-17 14:59:05 - End Time 2024-12-17 17:59:05 [2024-12-17 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042493', 'tblTempUsageDetail_20' ) start [2024-12-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042493', 'tblTempUsageDetail_20' ) end [2024-12-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042493', 'tblTempVendorCDR_20' ) start [2024-12-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042493', 'tblTempVendorCDR_20' ) end [2024-12-17 17:59:20] Production.INFO: ProcessCDR(1,14042493,1,1,2) [2024-12-17 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042493', 'tblTempUsageDetail_20' ) start [2024-12-17 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042493', 'tblTempUsageDetail_20' ) end [2024-12-17 17:59:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 17:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 17:59:25] Production.INFO: ==24056== Releasing lock... [2024-12-17 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 17:59:25] Production.INFO: 62.25 MB #Memory Used# [2024-12-17 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:00:06 [end_date_ymd] => 2024-12-17 18:00:06 [RateCDR] => 1 ) [2024-12-17 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 15:00:06' and `end` < '2024-12-17 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 18:00:19] Production.INFO: count ==4492 [2024-12-17 18:00:21] Production.ERROR: pbx CDR StartTime 2024-12-17 15:00:06 - End Time 2024-12-17 18:00:06 [2024-12-17 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042499', 'tblTempUsageDetail_20' ) start [2024-12-17 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042499', 'tblTempUsageDetail_20' ) end [2024-12-17 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042499', 'tblTempVendorCDR_20' ) start [2024-12-17 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042499', 'tblTempVendorCDR_20' ) end [2024-12-17 18:00:21] Production.INFO: ProcessCDR(1,14042499,1,1,2) [2024-12-17 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042499', 'tblTempUsageDetail_20' ) start [2024-12-17 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042499', 'tblTempUsageDetail_20' ) end [2024-12-17 18:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:00:25] Production.INFO: ==24149== Releasing lock... [2024-12-17 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:00:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-17 18:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:01:04 [end_date_ymd] => 2024-12-17 18:01:04 [RateCDR] => 1 ) [2024-12-17 18: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 15:01:04' and `end` < '2024-12-17 18: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-17 18:01:17] Production.INFO: count ==4511 [2024-12-17 18:01:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:01:04 - End Time 2024-12-17 18:01:04 [2024-12-17 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042504', 'tblTempUsageDetail_20' ) start [2024-12-17 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042504', 'tblTempUsageDetail_20' ) end [2024-12-17 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042504', 'tblTempVendorCDR_20' ) start [2024-12-17 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042504', 'tblTempVendorCDR_20' ) end [2024-12-17 18:01:19] Production.INFO: ProcessCDR(1,14042504,1,1,2) [2024-12-17 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042504', 'tblTempUsageDetail_20' ) start [2024-12-17 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042504', 'tblTempUsageDetail_20' ) end [2024-12-17 18:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:01:24] Production.INFO: ==24258== Releasing lock... [2024-12-17 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:01:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-17 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:02:05 [end_date_ymd] => 2024-12-17 18:02:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:02:05' and `end` < '2024-12-17 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-17 18:02:26] Production.INFO: count ==4506 [2024-12-17 18:02:28] Production.ERROR: pbx CDR StartTime 2024-12-17 15:02:05 - End Time 2024-12-17 18:02:05 [2024-12-17 18:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042509', 'tblTempUsageDetail_20' ) start [2024-12-17 18:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042509', 'tblTempUsageDetail_20' ) end [2024-12-17 18:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042509', 'tblTempVendorCDR_20' ) start [2024-12-17 18:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042509', 'tblTempVendorCDR_20' ) end [2024-12-17 18:02:28] Production.INFO: ProcessCDR(1,14042509,1,1,2) [2024-12-17 18:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042509', 'tblTempUsageDetail_20' ) start [2024-12-17 18:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042509', 'tblTempUsageDetail_20' ) end [2024-12-17 18:02:32] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:02:32] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:02:32] Production.INFO: ==24347== Releasing lock... [2024-12-17 18:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:02:32] Production.INFO: 61.75 MB #Memory Used# [2024-12-17 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:03:04 [end_date_ymd] => 2024-12-17 18:03:04 [RateCDR] => 1 ) [2024-12-17 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-17 15:03:04' and `end` < '2024-12-17 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-17 18:03:21] Production.INFO: count ==4498 [2024-12-17 18:03:22] Production.ERROR: pbx CDR StartTime 2024-12-17 15:03:04 - End Time 2024-12-17 18:03:04 [2024-12-17 18:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042514', 'tblTempUsageDetail_20' ) start [2024-12-17 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042514', 'tblTempUsageDetail_20' ) end [2024-12-17 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042514', 'tblTempVendorCDR_20' ) start [2024-12-17 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042514', 'tblTempVendorCDR_20' ) end [2024-12-17 18:03:22] Production.INFO: ProcessCDR(1,14042514,1,1,2) [2024-12-17 18:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042514', 'tblTempUsageDetail_20' ) start [2024-12-17 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042514', 'tblTempUsageDetail_20' ) end [2024-12-17 18:03:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:03:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:03:25] Production.INFO: ==24438== Releasing lock... [2024-12-17 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:03:25] Production.INFO: 61.75 MB #Memory Used# [2024-12-17 18:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:04:04 [end_date_ymd] => 2024-12-17 18:04:04 [RateCDR] => 1 ) [2024-12-17 18: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 15:04:04' and `end` < '2024-12-17 18: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-17 18:04:17] Production.INFO: count ==4485 [2024-12-17 18:04:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:04:04 - End Time 2024-12-17 18:04:04 [2024-12-17 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042519', 'tblTempUsageDetail_20' ) start [2024-12-17 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042519', 'tblTempUsageDetail_20' ) end [2024-12-17 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042519', 'tblTempVendorCDR_20' ) start [2024-12-17 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042519', 'tblTempVendorCDR_20' ) end [2024-12-17 18:04:19] Production.INFO: ProcessCDR(1,14042519,1,1,2) [2024-12-17 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042519', 'tblTempUsageDetail_20' ) start [2024-12-17 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042519', 'tblTempUsageDetail_20' ) end [2024-12-17 18:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:04:24] Production.INFO: ==24532== Releasing lock... [2024-12-17 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:04:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-17 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:05:05 [end_date_ymd] => 2024-12-17 18:05:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:05:05' and `end` < '2024-12-17 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-17 18:05:17] Production.INFO: count ==4482 [2024-12-17 18:05:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:05:05 - End Time 2024-12-17 18:05:05 [2024-12-17 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042524', 'tblTempUsageDetail_20' ) start [2024-12-17 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042524', 'tblTempUsageDetail_20' ) end [2024-12-17 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042524', 'tblTempVendorCDR_20' ) start [2024-12-17 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042524', 'tblTempVendorCDR_20' ) end [2024-12-17 18:05:19] Production.INFO: ProcessCDR(1,14042524,1,1,2) [2024-12-17 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042524', 'tblTempUsageDetail_20' ) start [2024-12-17 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042524', 'tblTempUsageDetail_20' ) end [2024-12-17 18:05:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:05:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:05:24] Production.INFO: ==24623== Releasing lock... [2024-12-17 18:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:05:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-17 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:06:05 [end_date_ymd] => 2024-12-17 18:06:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:06:05' and `end` < '2024-12-17 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-17 18:06:18] Production.INFO: count ==4473 [2024-12-17 18:06:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:06:05 - End Time 2024-12-17 18:06:05 [2024-12-17 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042529', 'tblTempUsageDetail_20' ) start [2024-12-17 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042529', 'tblTempUsageDetail_20' ) end [2024-12-17 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042529', 'tblTempVendorCDR_20' ) start [2024-12-17 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042529', 'tblTempVendorCDR_20' ) end [2024-12-17 18:06:19] Production.INFO: ProcessCDR(1,14042529,1,1,2) [2024-12-17 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042529', 'tblTempUsageDetail_20' ) start [2024-12-17 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042529', 'tblTempUsageDetail_20' ) end [2024-12-17 18:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:06:24] Production.INFO: ==24715== Releasing lock... [2024-12-17 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:06:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-17 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:07:04 [end_date_ymd] => 2024-12-17 18:07:04 [RateCDR] => 1 ) [2024-12-17 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-17 15:07:04' and `end` < '2024-12-17 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-17 18:07:18] Production.INFO: count ==4462 [2024-12-17 18:07:20] Production.ERROR: pbx CDR StartTime 2024-12-17 15:07:04 - End Time 2024-12-17 18:07:04 [2024-12-17 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042534', 'tblTempUsageDetail_20' ) start [2024-12-17 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042534', 'tblTempUsageDetail_20' ) end [2024-12-17 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042534', 'tblTempVendorCDR_20' ) start [2024-12-17 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042534', 'tblTempVendorCDR_20' ) end [2024-12-17 18:07:20] Production.INFO: ProcessCDR(1,14042534,1,1,2) [2024-12-17 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042534', 'tblTempUsageDetail_20' ) start [2024-12-17 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042534', 'tblTempUsageDetail_20' ) end [2024-12-17 18:07:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:07:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:07:25] Production.INFO: ==24807== Releasing lock... [2024-12-17 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:07:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-17 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:08:05 [end_date_ymd] => 2024-12-17 18:08:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:08:05' and `end` < '2024-12-17 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-17 18:08:18] Production.INFO: count ==4460 [2024-12-17 18:08:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:08:05 - End Time 2024-12-17 18:08:05 [2024-12-17 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042539', 'tblTempUsageDetail_20' ) start [2024-12-17 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042539', 'tblTempUsageDetail_20' ) end [2024-12-17 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042539', 'tblTempVendorCDR_20' ) start [2024-12-17 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042539', 'tblTempVendorCDR_20' ) end [2024-12-17 18:08:19] Production.INFO: ProcessCDR(1,14042539,1,1,2) [2024-12-17 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042539', 'tblTempUsageDetail_20' ) start [2024-12-17 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042539', 'tblTempUsageDetail_20' ) end [2024-12-17 18:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:08:24] Production.INFO: ==24890== Releasing lock... [2024-12-17 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:08:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-17 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:09:05 [end_date_ymd] => 2024-12-17 18:09:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:09:05' and `end` < '2024-12-17 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-17 18:09:22] Production.INFO: count ==4460 [2024-12-17 18:09:24] Production.ERROR: pbx CDR StartTime 2024-12-17 15:09:05 - End Time 2024-12-17 18:09:05 [2024-12-17 18:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042544', 'tblTempUsageDetail_20' ) start [2024-12-17 18:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042544', 'tblTempUsageDetail_20' ) end [2024-12-17 18:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042544', 'tblTempVendorCDR_20' ) start [2024-12-17 18:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042544', 'tblTempVendorCDR_20' ) end [2024-12-17 18:09:24] Production.INFO: ProcessCDR(1,14042544,1,1,2) [2024-12-17 18:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042544', 'tblTempUsageDetail_20' ) start [2024-12-17 18:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042544', 'tblTempUsageDetail_20' ) end [2024-12-17 18:09:29] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:09:29] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:09:29] Production.INFO: ==24961== Releasing lock... [2024-12-17 18:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:09:29] Production.INFO: 61.5 MB #Memory Used# [2024-12-17 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:10:05 [end_date_ymd] => 2024-12-17 18:10:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:10:05' and `end` < '2024-12-17 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-17 18:10:20] Production.INFO: count ==4468 [2024-12-17 18:10:22] Production.ERROR: pbx CDR StartTime 2024-12-17 15:10:05 - End Time 2024-12-17 18:10:05 [2024-12-17 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042550', 'tblTempUsageDetail_20' ) start [2024-12-17 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042550', 'tblTempUsageDetail_20' ) end [2024-12-17 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042550', 'tblTempVendorCDR_20' ) start [2024-12-17 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042550', 'tblTempVendorCDR_20' ) end [2024-12-17 18:10:22] Production.INFO: ProcessCDR(1,14042550,1,1,2) [2024-12-17 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042550', 'tblTempUsageDetail_20' ) start [2024-12-17 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042550', 'tblTempUsageDetail_20' ) end [2024-12-17 18:10:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:10:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:10:27] Production.INFO: ==25034== Releasing lock... [2024-12-17 18:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:10:27] Production.INFO: 61.5 MB #Memory Used# [2024-12-17 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:11:04 [end_date_ymd] => 2024-12-17 18:11:04 [RateCDR] => 1 ) [2024-12-17 18: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 15:11:04' and `end` < '2024-12-17 18: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-17 18:11:18] Production.INFO: count ==4450 [2024-12-17 18:11:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:11:04 - End Time 2024-12-17 18:11:04 [2024-12-17 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042555', 'tblTempUsageDetail_20' ) start [2024-12-17 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042555', 'tblTempUsageDetail_20' ) end [2024-12-17 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042555', 'tblTempVendorCDR_20' ) start [2024-12-17 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042555', 'tblTempVendorCDR_20' ) end [2024-12-17 18:11:20] Production.INFO: ProcessCDR(1,14042555,1,1,2) [2024-12-17 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042555', 'tblTempUsageDetail_20' ) start [2024-12-17 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042555', 'tblTempUsageDetail_20' ) end [2024-12-17 18:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:11:23] Production.INFO: ==25109== Releasing lock... [2024-12-17 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:11:23] Production.INFO: 61.25 MB #Memory Used# [2024-12-17 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:12:05 [end_date_ymd] => 2024-12-17 18:12:05 [RateCDR] => 1 ) [2024-12-17 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 15:12:05' and `end` < '2024-12-17 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 18:12:17] Production.INFO: count ==4449 [2024-12-17 18:12:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:12:05 - End Time 2024-12-17 18:12:05 [2024-12-17 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042560', 'tblTempUsageDetail_20' ) start [2024-12-17 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042560', 'tblTempUsageDetail_20' ) end [2024-12-17 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042560', 'tblTempVendorCDR_20' ) start [2024-12-17 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042560', 'tblTempVendorCDR_20' ) end [2024-12-17 18:12:19] Production.INFO: ProcessCDR(1,14042560,1,1,2) [2024-12-17 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042560', 'tblTempUsageDetail_20' ) start [2024-12-17 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042560', 'tblTempUsageDetail_20' ) end [2024-12-17 18:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:12:24] Production.INFO: ==25184== Releasing lock... [2024-12-17 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:12:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-17 18:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:13:04 [end_date_ymd] => 2024-12-17 18:13:04 [RateCDR] => 1 ) [2024-12-17 18: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 15:13:04' and `end` < '2024-12-17 18: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-17 18:13:18] Production.INFO: count ==4438 [2024-12-17 18:13:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:13:04 - End Time 2024-12-17 18:13:04 [2024-12-17 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042565', 'tblTempUsageDetail_20' ) start [2024-12-17 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042565', 'tblTempUsageDetail_20' ) end [2024-12-17 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042565', 'tblTempVendorCDR_20' ) start [2024-12-17 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042565', 'tblTempVendorCDR_20' ) end [2024-12-17 18:13:19] Production.INFO: ProcessCDR(1,14042565,1,1,2) [2024-12-17 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042565', 'tblTempUsageDetail_20' ) start [2024-12-17 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042565', 'tblTempUsageDetail_20' ) end [2024-12-17 18:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:13:22] Production.INFO: ==25296== Releasing lock... [2024-12-17 18:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:13:22] Production.INFO: 61.25 MB #Memory Used# [2024-12-17 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:14:05 [end_date_ymd] => 2024-12-17 18:14:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:14:05' and `end` < '2024-12-17 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-17 18:14:18] Production.INFO: count ==4430 [2024-12-17 18:14:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:14:05 - End Time 2024-12-17 18:14:05 [2024-12-17 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042570', 'tblTempUsageDetail_20' ) start [2024-12-17 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042570', 'tblTempUsageDetail_20' ) end [2024-12-17 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042570', 'tblTempVendorCDR_20' ) start [2024-12-17 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042570', 'tblTempVendorCDR_20' ) end [2024-12-17 18:14:19] Production.INFO: ProcessCDR(1,14042570,1,1,2) [2024-12-17 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042570', 'tblTempUsageDetail_20' ) start [2024-12-17 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042570', 'tblTempUsageDetail_20' ) end [2024-12-17 18:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:14:24] Production.INFO: ==25369== Releasing lock... [2024-12-17 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:14:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-17 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:15:05 [end_date_ymd] => 2024-12-17 18:15:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:15:05' and `end` < '2024-12-17 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-17 18:15:20] Production.INFO: count ==4424 [2024-12-17 18:15:22] Production.ERROR: pbx CDR StartTime 2024-12-17 15:15:05 - End Time 2024-12-17 18:15:05 [2024-12-17 18:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042575', 'tblTempUsageDetail_20' ) start [2024-12-17 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042575', 'tblTempUsageDetail_20' ) end [2024-12-17 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042575', 'tblTempVendorCDR_20' ) start [2024-12-17 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042575', 'tblTempVendorCDR_20' ) end [2024-12-17 18:15:22] Production.INFO: ProcessCDR(1,14042575,1,1,2) [2024-12-17 18:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042575', 'tblTempUsageDetail_20' ) start [2024-12-17 18:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042575', 'tblTempUsageDetail_20' ) end [2024-12-17 18:15:27] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:15:27] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:15:27] Production.INFO: ==25447== Releasing lock... [2024-12-17 18:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:15:27] Production.INFO: 61 MB #Memory Used# [2024-12-17 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:16:05 [end_date_ymd] => 2024-12-17 18:16:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:16:05' and `end` < '2024-12-17 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-17 18:16:18] Production.INFO: count ==4387 [2024-12-17 18:16:20] Production.ERROR: pbx CDR StartTime 2024-12-17 15:16:05 - End Time 2024-12-17 18:16:05 [2024-12-17 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042580', 'tblTempUsageDetail_20' ) start [2024-12-17 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042580', 'tblTempUsageDetail_20' ) end [2024-12-17 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042580', 'tblTempVendorCDR_20' ) start [2024-12-17 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042580', 'tblTempVendorCDR_20' ) end [2024-12-17 18:16:20] Production.INFO: ProcessCDR(1,14042580,1,1,2) [2024-12-17 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042580', 'tblTempUsageDetail_20' ) start [2024-12-17 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042580', 'tblTempUsageDetail_20' ) end [2024-12-17 18:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:16:24] Production.INFO: ==25524== Releasing lock... [2024-12-17 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:16:24] Production.INFO: 60.75 MB #Memory Used# [2024-12-17 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:17:05 [end_date_ymd] => 2024-12-17 18:17:05 [RateCDR] => 1 ) [2024-12-17 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 15:17:05' and `end` < '2024-12-17 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 18:17:18] Production.INFO: count ==4375 [2024-12-17 18:17:20] Production.ERROR: pbx CDR StartTime 2024-12-17 15:17:05 - End Time 2024-12-17 18:17:05 [2024-12-17 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042585', 'tblTempUsageDetail_20' ) start [2024-12-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042585', 'tblTempUsageDetail_20' ) end [2024-12-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042585', 'tblTempVendorCDR_20' ) start [2024-12-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042585', 'tblTempVendorCDR_20' ) end [2024-12-17 18:17:20] Production.INFO: ProcessCDR(1,14042585,1,1,2) [2024-12-17 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042585', 'tblTempUsageDetail_20' ) start [2024-12-17 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042585', 'tblTempUsageDetail_20' ) end [2024-12-17 18:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:17:24] Production.INFO: ==25603== Releasing lock... [2024-12-17 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:17:24] Production.INFO: 60.75 MB #Memory Used# [2024-12-17 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:18:05 [end_date_ymd] => 2024-12-17 18:18:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:18:05' and `end` < '2024-12-17 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-17 18:18:18] Production.INFO: count ==4371 [2024-12-17 18:18:20] Production.ERROR: pbx CDR StartTime 2024-12-17 15:18:05 - End Time 2024-12-17 18:18:05 [2024-12-17 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042590', 'tblTempUsageDetail_20' ) start [2024-12-17 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042590', 'tblTempUsageDetail_20' ) end [2024-12-17 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042590', 'tblTempVendorCDR_20' ) start [2024-12-17 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042590', 'tblTempVendorCDR_20' ) end [2024-12-17 18:18:20] Production.INFO: ProcessCDR(1,14042590,1,1,2) [2024-12-17 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042590', 'tblTempUsageDetail_20' ) start [2024-12-17 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042590', 'tblTempUsageDetail_20' ) end [2024-12-17 18:18:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:18:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:18:25] Production.INFO: ==25675== Releasing lock... [2024-12-17 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:18:25] Production.INFO: 60.75 MB #Memory Used# [2024-12-17 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:19:05 [end_date_ymd] => 2024-12-17 18:19:05 [RateCDR] => 1 ) [2024-12-17 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 15:19:05' and `end` < '2024-12-17 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 18:19:18] Production.INFO: count ==4361 [2024-12-17 18:19:20] Production.ERROR: pbx CDR StartTime 2024-12-17 15:19:05 - End Time 2024-12-17 18:19:05 [2024-12-17 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042595', 'tblTempUsageDetail_20' ) start [2024-12-17 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042595', 'tblTempUsageDetail_20' ) end [2024-12-17 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042595', 'tblTempVendorCDR_20' ) start [2024-12-17 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042595', 'tblTempVendorCDR_20' ) end [2024-12-17 18:19:20] Production.INFO: ProcessCDR(1,14042595,1,1,2) [2024-12-17 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042595', 'tblTempUsageDetail_20' ) start [2024-12-17 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042595', 'tblTempUsageDetail_20' ) end [2024-12-17 18:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:19:24] Production.INFO: ==25771== Releasing lock... [2024-12-17 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:19:24] Production.INFO: 60.5 MB #Memory Used# [2024-12-17 18:20:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:20:04 [end_date_ymd] => 2024-12-17 18:20:04 [RateCDR] => 1 ) [2024-12-17 18:20:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and 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 15:20:04' and `end` < '2024-12-17 18: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-17 18:20:18] Production.INFO: count ==4353 [2024-12-17 18:20:20] Production.ERROR: pbx CDR StartTime 2024-12-17 15:20:04 - End Time 2024-12-17 18:20:04 [2024-12-17 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042600', 'tblTempUsageDetail_20' ) start [2024-12-17 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042600', 'tblTempUsageDetail_20' ) end [2024-12-17 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042600', 'tblTempVendorCDR_20' ) start [2024-12-17 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042600', 'tblTempVendorCDR_20' ) end [2024-12-17 18:20:20] Production.INFO: ProcessCDR(1,14042600,1,1,2) [2024-12-17 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042600', 'tblTempUsageDetail_20' ) start [2024-12-17 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042600', 'tblTempUsageDetail_20' ) end [2024-12-17 18:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:20:25] Production.INFO: ==25846== Releasing lock... [2024-12-17 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:20:25] Production.INFO: 60.5 MB #Memory Used# [2024-12-17 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:21:05 [end_date_ymd] => 2024-12-17 18:21:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:21:05' and `end` < '2024-12-17 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-17 18:21:19] Production.INFO: count ==4326 [2024-12-17 18:21:20] Production.ERROR: pbx CDR StartTime 2024-12-17 15:21:05 - End Time 2024-12-17 18:21:05 [2024-12-17 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042606', 'tblTempUsageDetail_20' ) start [2024-12-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042606', 'tblTempUsageDetail_20' ) end [2024-12-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042606', 'tblTempVendorCDR_20' ) start [2024-12-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042606', 'tblTempVendorCDR_20' ) end [2024-12-17 18:21:20] Production.INFO: ProcessCDR(1,14042606,1,1,2) [2024-12-17 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042606', 'tblTempUsageDetail_20' ) start [2024-12-17 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042606', 'tblTempUsageDetail_20' ) end [2024-12-17 18:21:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:21:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:21:25] Production.INFO: ==25931== Releasing lock... [2024-12-17 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:21:25] Production.INFO: 60.25 MB #Memory Used# [2024-12-17 18:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:22:04 [end_date_ymd] => 2024-12-17 18:22:04 [RateCDR] => 1 ) [2024-12-17 18: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 15:22:04' and `end` < '2024-12-17 18: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-17 18:22:19] Production.INFO: count ==4324 [2024-12-17 18:22:21] Production.ERROR: pbx CDR StartTime 2024-12-17 15:22:04 - End Time 2024-12-17 18:22:04 [2024-12-17 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042611', 'tblTempUsageDetail_20' ) start [2024-12-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042611', 'tblTempUsageDetail_20' ) end [2024-12-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042611', 'tblTempVendorCDR_20' ) start [2024-12-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042611', 'tblTempVendorCDR_20' ) end [2024-12-17 18:22:21] Production.INFO: ProcessCDR(1,14042611,1,1,2) [2024-12-17 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042611', 'tblTempUsageDetail_20' ) start [2024-12-17 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042611', 'tblTempUsageDetail_20' ) end [2024-12-17 18:22:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:22:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:22:25] Production.INFO: ==26004== Releasing lock... [2024-12-17 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:22:25] Production.INFO: 60.25 MB #Memory Used# [2024-12-17 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:23:05 [end_date_ymd] => 2024-12-17 18:23:05 [RateCDR] => 1 ) [2024-12-17 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 15:23:05' and `end` < '2024-12-17 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 18:23:19] Production.INFO: count ==4310 [2024-12-17 18:23:21] Production.ERROR: pbx CDR StartTime 2024-12-17 15:23:05 - End Time 2024-12-17 18:23:05 [2024-12-17 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042616', 'tblTempUsageDetail_20' ) start [2024-12-17 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042616', 'tblTempUsageDetail_20' ) end [2024-12-17 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042616', 'tblTempVendorCDR_20' ) start [2024-12-17 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042616', 'tblTempVendorCDR_20' ) end [2024-12-17 18:23:21] Production.INFO: ProcessCDR(1,14042616,1,1,2) [2024-12-17 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042616', 'tblTempUsageDetail_20' ) start [2024-12-17 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042616', 'tblTempUsageDetail_20' ) end [2024-12-17 18:23:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:23:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:23:25] Production.INFO: ==26076== Releasing lock... [2024-12-17 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:23:25] Production.INFO: 60.25 MB #Memory Used# [2024-12-17 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:24:05 [end_date_ymd] => 2024-12-17 18:24:05 [RateCDR] => 1 ) [2024-12-17 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 15:24:05' and `end` < '2024-12-17 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 18:24:20] Production.INFO: count ==4271 [2024-12-17 18:24:22] Production.ERROR: pbx CDR StartTime 2024-12-17 15:24:05 - End Time 2024-12-17 18:24:05 [2024-12-17 18:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042621', 'tblTempUsageDetail_20' ) start [2024-12-17 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042621', 'tblTempUsageDetail_20' ) end [2024-12-17 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042621', 'tblTempVendorCDR_20' ) start [2024-12-17 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042621', 'tblTempVendorCDR_20' ) end [2024-12-17 18:24:22] Production.INFO: ProcessCDR(1,14042621,1,1,2) [2024-12-17 18:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042621', 'tblTempUsageDetail_20' ) start [2024-12-17 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042621', 'tblTempUsageDetail_20' ) end [2024-12-17 18:24:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:24:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:24:25] Production.INFO: ==26151== Releasing lock... [2024-12-17 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:24:25] Production.INFO: 60 MB #Memory Used# [2024-12-17 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:25:04 [end_date_ymd] => 2024-12-17 18:25:04 [RateCDR] => 1 ) [2024-12-17 18: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 15:25:04' and `end` < '2024-12-17 18: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-17 18:25:20] Production.INFO: count ==4253 [2024-12-17 18:25:21] Production.ERROR: pbx CDR StartTime 2024-12-17 15:25:04 - End Time 2024-12-17 18:25:04 [2024-12-17 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042626', 'tblTempUsageDetail_20' ) start [2024-12-17 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042626', 'tblTempUsageDetail_20' ) end [2024-12-17 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042626', 'tblTempVendorCDR_20' ) start [2024-12-17 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042626', 'tblTempVendorCDR_20' ) end [2024-12-17 18:25:21] Production.INFO: ProcessCDR(1,14042626,1,1,2) [2024-12-17 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042626', 'tblTempUsageDetail_20' ) start [2024-12-17 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042626', 'tblTempUsageDetail_20' ) end [2024-12-17 18:25:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:25:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:25:26] Production.INFO: ==26227== Releasing lock... [2024-12-17 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:25:26] Production.INFO: 59.75 MB #Memory Used# [2024-12-17 18:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:26:04 [end_date_ymd] => 2024-12-17 18:26:04 [RateCDR] => 1 ) [2024-12-17 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-17 15:26:04' and `end` < '2024-12-17 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-17 18:26:18] Production.INFO: count ==4217 [2024-12-17 18:26:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:26:04 - End Time 2024-12-17 18:26:04 [2024-12-17 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042631', 'tblTempUsageDetail_20' ) start [2024-12-17 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042631', 'tblTempUsageDetail_20' ) end [2024-12-17 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042631', 'tblTempVendorCDR_20' ) start [2024-12-17 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042631', 'tblTempVendorCDR_20' ) end [2024-12-17 18:26:19] Production.INFO: ProcessCDR(1,14042631,1,1,2) [2024-12-17 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042631', 'tblTempUsageDetail_20' ) start [2024-12-17 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042631', 'tblTempUsageDetail_20' ) end [2024-12-17 18:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:26:24] Production.INFO: ==26302== Releasing lock... [2024-12-17 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:26:24] Production.INFO: 59.5 MB #Memory Used# [2024-12-17 18:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:27:04 [end_date_ymd] => 2024-12-17 18:27:04 [RateCDR] => 1 ) [2024-12-17 18: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 15:27:04' and `end` < '2024-12-17 18: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-17 18:27:17] Production.INFO: count ==4214 [2024-12-17 18:27:18] Production.ERROR: pbx CDR StartTime 2024-12-17 15:27:04 - End Time 2024-12-17 18:27:04 [2024-12-17 18:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042636', 'tblTempUsageDetail_20' ) start [2024-12-17 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042636', 'tblTempUsageDetail_20' ) end [2024-12-17 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042636', 'tblTempVendorCDR_20' ) start [2024-12-17 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042636', 'tblTempVendorCDR_20' ) end [2024-12-17 18:27:18] Production.INFO: ProcessCDR(1,14042636,1,1,2) [2024-12-17 18:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042636', 'tblTempUsageDetail_20' ) start [2024-12-17 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042636', 'tblTempUsageDetail_20' ) end [2024-12-17 18:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:27:22] Production.INFO: ==26375== Releasing lock... [2024-12-17 18:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:27:22] Production.INFO: 59.5 MB #Memory Used# [2024-12-17 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:28:05 [end_date_ymd] => 2024-12-17 18:28:05 [RateCDR] => 1 ) [2024-12-17 18: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 15:28:05' and `end` < '2024-12-17 18: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-17 18:28:18] Production.INFO: count ==4216 [2024-12-17 18:28:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:28:05 - End Time 2024-12-17 18:28:05 [2024-12-17 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042641', 'tblTempUsageDetail_20' ) start [2024-12-17 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042641', 'tblTempUsageDetail_20' ) end [2024-12-17 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042641', 'tblTempVendorCDR_20' ) start [2024-12-17 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042641', 'tblTempVendorCDR_20' ) end [2024-12-17 18:28:19] Production.INFO: ProcessCDR(1,14042641,1,1,2) [2024-12-17 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042641', 'tblTempUsageDetail_20' ) start [2024-12-17 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042641', 'tblTempUsageDetail_20' ) end [2024-12-17 18:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:28:24] Production.INFO: ==26488== Releasing lock... [2024-12-17 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:28:24] Production.INFO: 59.5 MB #Memory Used# [2024-12-17 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:29:05 [end_date_ymd] => 2024-12-17 18:29:05 [RateCDR] => 1 ) [2024-12-17 18: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 15:29:05' and `end` < '2024-12-17 18: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-17 18:29:18] Production.INFO: count ==4188 [2024-12-17 18:29:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:29:05 - End Time 2024-12-17 18:29:05 [2024-12-17 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042646', 'tblTempUsageDetail_20' ) start [2024-12-17 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042646', 'tblTempUsageDetail_20' ) end [2024-12-17 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042646', 'tblTempVendorCDR_20' ) start [2024-12-17 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042646', 'tblTempVendorCDR_20' ) end [2024-12-17 18:29:19] Production.INFO: ProcessCDR(1,14042646,1,1,2) [2024-12-17 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042646', 'tblTempUsageDetail_20' ) start [2024-12-17 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042646', 'tblTempUsageDetail_20' ) end [2024-12-17 18:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:29:24] Production.INFO: ==26566== Releasing lock... [2024-12-17 18:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:29:24] Production.INFO: 59.25 MB #Memory Used# [2024-12-17 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:30:05 [end_date_ymd] => 2024-12-17 18:30:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:30:05' and `end` < '2024-12-17 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-17 18:30:19] Production.INFO: count ==4181 [2024-12-17 18:30:20] Production.ERROR: pbx CDR StartTime 2024-12-17 15:30:05 - End Time 2024-12-17 18:30:05 [2024-12-17 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042652', 'tblTempUsageDetail_20' ) start [2024-12-17 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042652', 'tblTempUsageDetail_20' ) end [2024-12-17 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042652', 'tblTempVendorCDR_20' ) start [2024-12-17 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042652', 'tblTempVendorCDR_20' ) end [2024-12-17 18:30:21] Production.INFO: ProcessCDR(1,14042652,1,1,2) [2024-12-17 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042652', 'tblTempUsageDetail_20' ) start [2024-12-17 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042652', 'tblTempUsageDetail_20' ) end [2024-12-17 18:30:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:30:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:30:25] Production.INFO: ==26645== Releasing lock... [2024-12-17 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:30:25] Production.INFO: 59.25 MB #Memory Used# [2024-12-17 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:31:05 [end_date_ymd] => 2024-12-17 18:31:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:31:05' and `end` < '2024-12-17 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-17 18:31:18] Production.INFO: count ==4215 [2024-12-17 18:31:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:31:05 - End Time 2024-12-17 18:31:05 [2024-12-17 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042657', 'tblTempUsageDetail_20' ) start [2024-12-17 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042657', 'tblTempUsageDetail_20' ) end [2024-12-17 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042657', 'tblTempVendorCDR_20' ) start [2024-12-17 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042657', 'tblTempVendorCDR_20' ) end [2024-12-17 18:31:19] Production.INFO: ProcessCDR(1,14042657,1,1,2) [2024-12-17 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042657', 'tblTempUsageDetail_20' ) start [2024-12-17 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042657', 'tblTempUsageDetail_20' ) end [2024-12-17 18:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:31:24] Production.INFO: ==26721== Releasing lock... [2024-12-17 18:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:31:24] Production.INFO: 59.5 MB #Memory Used# [2024-12-17 18:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:32:04 [end_date_ymd] => 2024-12-17 18:32:04 [RateCDR] => 1 ) [2024-12-17 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-17 15:32:04' and `end` < '2024-12-17 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-17 18:32:18] Production.INFO: count ==4199 [2024-12-17 18:32:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:32:04 - End Time 2024-12-17 18:32:04 [2024-12-17 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042662', 'tblTempUsageDetail_20' ) start [2024-12-17 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042662', 'tblTempUsageDetail_20' ) end [2024-12-17 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042662', 'tblTempVendorCDR_20' ) start [2024-12-17 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042662', 'tblTempVendorCDR_20' ) end [2024-12-17 18:32:19] Production.INFO: ProcessCDR(1,14042662,1,1,2) [2024-12-17 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042662', 'tblTempUsageDetail_20' ) start [2024-12-17 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042662', 'tblTempUsageDetail_20' ) end [2024-12-17 18:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:32:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:32:24] Production.INFO: ==26792== Releasing lock... [2024-12-17 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:32:24] Production.INFO: 59.5 MB #Memory Used# [2024-12-17 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:33:05 [end_date_ymd] => 2024-12-17 18:33:05 [RateCDR] => 1 ) [2024-12-17 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 15:33:05' and `end` < '2024-12-17 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 18:33:17] Production.INFO: count ==4167 [2024-12-17 18:33:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:33:05 - End Time 2024-12-17 18:33:05 [2024-12-17 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042667', 'tblTempUsageDetail_20' ) start [2024-12-17 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042667', 'tblTempUsageDetail_20' ) end [2024-12-17 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042667', 'tblTempVendorCDR_20' ) start [2024-12-17 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042667', 'tblTempVendorCDR_20' ) end [2024-12-17 18:33:19] Production.INFO: ProcessCDR(1,14042667,1,1,2) [2024-12-17 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042667', 'tblTempUsageDetail_20' ) start [2024-12-17 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042667', 'tblTempUsageDetail_20' ) end [2024-12-17 18:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:33:23] Production.INFO: ==26869== Releasing lock... [2024-12-17 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:33:23] Production.INFO: 59.25 MB #Memory Used# [2024-12-17 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:34:05 [end_date_ymd] => 2024-12-17 18:34:05 [RateCDR] => 1 ) [2024-12-17 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 15:34:05' and `end` < '2024-12-17 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 18:34:19] Production.INFO: count ==4195 [2024-12-17 18:34:20] Production.ERROR: pbx CDR StartTime 2024-12-17 15:34:05 - End Time 2024-12-17 18:34:05 [2024-12-17 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042672', 'tblTempUsageDetail_20' ) start [2024-12-17 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042672', 'tblTempUsageDetail_20' ) end [2024-12-17 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042672', 'tblTempVendorCDR_20' ) start [2024-12-17 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042672', 'tblTempVendorCDR_20' ) end [2024-12-17 18:34:20] Production.INFO: ProcessCDR(1,14042672,1,1,2) [2024-12-17 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042672', 'tblTempUsageDetail_20' ) start [2024-12-17 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042672', 'tblTempUsageDetail_20' ) end [2024-12-17 18:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:34:24] Production.INFO: ==26947== Releasing lock... [2024-12-17 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:34:24] Production.INFO: 59.25 MB #Memory Used# [2024-12-17 18:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:35:04 [end_date_ymd] => 2024-12-17 18:35:04 [RateCDR] => 1 ) [2024-12-17 18: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 15:35:04' and `end` < '2024-12-17 18: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-17 18:35:17] Production.INFO: count ==4173 [2024-12-17 18:35:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:35:04 - End Time 2024-12-17 18:35:04 [2024-12-17 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042677', 'tblTempUsageDetail_20' ) start [2024-12-17 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042677', 'tblTempUsageDetail_20' ) end [2024-12-17 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042677', 'tblTempVendorCDR_20' ) start [2024-12-17 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042677', 'tblTempVendorCDR_20' ) end [2024-12-17 18:35:19] Production.INFO: ProcessCDR(1,14042677,1,1,2) [2024-12-17 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042677', 'tblTempUsageDetail_20' ) start [2024-12-17 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042677', 'tblTempUsageDetail_20' ) end [2024-12-17 18:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:35:23] Production.INFO: ==27026== Releasing lock... [2024-12-17 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:35:23] Production.INFO: 59.25 MB #Memory Used# [2024-12-17 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:36:05 [end_date_ymd] => 2024-12-17 18:36:05 [RateCDR] => 1 ) [2024-12-17 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 15:36:05' and `end` < '2024-12-17 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 18:36:18] Production.INFO: count ==4170 [2024-12-17 18:36:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:36:05 - End Time 2024-12-17 18:36:05 [2024-12-17 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042682', 'tblTempUsageDetail_20' ) start [2024-12-17 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042682', 'tblTempUsageDetail_20' ) end [2024-12-17 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042682', 'tblTempVendorCDR_20' ) start [2024-12-17 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042682', 'tblTempVendorCDR_20' ) end [2024-12-17 18:36:19] Production.INFO: ProcessCDR(1,14042682,1,1,2) [2024-12-17 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042682', 'tblTempUsageDetail_20' ) start [2024-12-17 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042682', 'tblTempUsageDetail_20' ) end [2024-12-17 18:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:36:24] Production.INFO: ==27102== Releasing lock... [2024-12-17 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:36:24] Production.INFO: 59.25 MB #Memory Used# [2024-12-17 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:37:05 [end_date_ymd] => 2024-12-17 18:37:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:37:05' and `end` < '2024-12-17 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-17 18:37:19] Production.INFO: count ==4164 [2024-12-17 18:37:20] Production.ERROR: pbx CDR StartTime 2024-12-17 15:37:05 - End Time 2024-12-17 18:37:05 [2024-12-17 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042687', 'tblTempUsageDetail_20' ) start [2024-12-17 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042687', 'tblTempUsageDetail_20' ) end [2024-12-17 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042687', 'tblTempVendorCDR_20' ) start [2024-12-17 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042687', 'tblTempVendorCDR_20' ) end [2024-12-17 18:37:20] Production.INFO: ProcessCDR(1,14042687,1,1,2) [2024-12-17 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042687', 'tblTempUsageDetail_20' ) start [2024-12-17 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042687', 'tblTempUsageDetail_20' ) end [2024-12-17 18:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:37:24] Production.INFO: ==27175== Releasing lock... [2024-12-17 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:37:24] Production.INFO: 59.25 MB #Memory Used# [2024-12-17 18:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:38:04 [end_date_ymd] => 2024-12-17 18:38:04 [RateCDR] => 1 ) [2024-12-17 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-17 15:38:04' and `end` < '2024-12-17 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-17 18:38:17] Production.INFO: count ==4153 [2024-12-17 18:38:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:38:04 - End Time 2024-12-17 18:38:04 [2024-12-17 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042692', 'tblTempUsageDetail_20' ) start [2024-12-17 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042692', 'tblTempUsageDetail_20' ) end [2024-12-17 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042692', 'tblTempVendorCDR_20' ) start [2024-12-17 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042692', 'tblTempVendorCDR_20' ) end [2024-12-17 18:38:19] Production.INFO: ProcessCDR(1,14042692,1,1,2) [2024-12-17 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042692', 'tblTempUsageDetail_20' ) start [2024-12-17 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042692', 'tblTempUsageDetail_20' ) end [2024-12-17 18:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:38:23] Production.INFO: ==27250== Releasing lock... [2024-12-17 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:38:23] Production.INFO: 59 MB #Memory Used# [2024-12-17 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:39:05 [end_date_ymd] => 2024-12-17 18:39:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:39:05' and `end` < '2024-12-17 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-17 18:39:17] Production.INFO: count ==4121 [2024-12-17 18:39:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:39:05 - End Time 2024-12-17 18:39:05 [2024-12-17 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042697', 'tblTempUsageDetail_20' ) start [2024-12-17 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042697', 'tblTempUsageDetail_20' ) end [2024-12-17 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042697', 'tblTempVendorCDR_20' ) start [2024-12-17 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042697', 'tblTempVendorCDR_20' ) end [2024-12-17 18:39:19] Production.INFO: ProcessCDR(1,14042697,1,1,2) [2024-12-17 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042697', 'tblTempUsageDetail_20' ) start [2024-12-17 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042697', 'tblTempUsageDetail_20' ) end [2024-12-17 18:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:39:23] Production.INFO: ==27323== Releasing lock... [2024-12-17 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:39:23] Production.INFO: 59 MB #Memory Used# [2024-12-17 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:40:05 [end_date_ymd] => 2024-12-17 18:40:05 [RateCDR] => 1 ) [2024-12-17 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 15:40:05' and `end` < '2024-12-17 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 18:40:20] Production.INFO: count ==4116 [2024-12-17 18:40:21] Production.ERROR: pbx CDR StartTime 2024-12-17 15:40:05 - End Time 2024-12-17 18:40:05 [2024-12-17 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042702', 'tblTempUsageDetail_20' ) start [2024-12-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042702', 'tblTempUsageDetail_20' ) end [2024-12-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042702', 'tblTempVendorCDR_20' ) start [2024-12-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042702', 'tblTempVendorCDR_20' ) end [2024-12-17 18:40:21] Production.INFO: ProcessCDR(1,14042702,1,1,2) [2024-12-17 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042702', 'tblTempUsageDetail_20' ) start [2024-12-17 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042702', 'tblTempUsageDetail_20' ) end [2024-12-17 18:40:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:40:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:40:26] Production.INFO: ==27397== Releasing lock... [2024-12-17 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:40:26] Production.INFO: 58.75 MB #Memory Used# [2024-12-17 18:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:41:04 [end_date_ymd] => 2024-12-17 18:41:04 [RateCDR] => 1 ) [2024-12-17 18: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 15:41:04' and `end` < '2024-12-17 18: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-17 18:41:18] Production.INFO: count ==4052 [2024-12-17 18:41:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:41:04 - End Time 2024-12-17 18:41:04 [2024-12-17 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042708', 'tblTempUsageDetail_20' ) start [2024-12-17 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042708', 'tblTempUsageDetail_20' ) end [2024-12-17 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042708', 'tblTempVendorCDR_20' ) start [2024-12-17 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042708', 'tblTempVendorCDR_20' ) end [2024-12-17 18:41:19] Production.INFO: ProcessCDR(1,14042708,1,1,2) [2024-12-17 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042708', 'tblTempUsageDetail_20' ) start [2024-12-17 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042708', 'tblTempUsageDetail_20' ) end [2024-12-17 18:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:41:24] Production.INFO: ==27471== Releasing lock... [2024-12-17 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:41:24] Production.INFO: 58.5 MB #Memory Used# [2024-12-17 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:42:05 [end_date_ymd] => 2024-12-17 18:42:05 [RateCDR] => 1 ) [2024-12-17 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 15:42:05' and `end` < '2024-12-17 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 18:42:18] Production.INFO: count ==4056 [2024-12-17 18:42:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:42:05 - End Time 2024-12-17 18:42:05 [2024-12-17 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042713', 'tblTempUsageDetail_20' ) start [2024-12-17 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042713', 'tblTempUsageDetail_20' ) end [2024-12-17 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042713', 'tblTempVendorCDR_20' ) start [2024-12-17 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042713', 'tblTempVendorCDR_20' ) end [2024-12-17 18:42:19] Production.INFO: ProcessCDR(1,14042713,1,1,2) [2024-12-17 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042713', 'tblTempUsageDetail_20' ) start [2024-12-17 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042713', 'tblTempUsageDetail_20' ) end [2024-12-17 18:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:42:24] Production.INFO: ==27549== Releasing lock... [2024-12-17 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:42:24] Production.INFO: 58.25 MB #Memory Used# [2024-12-17 18:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:43:04 [end_date_ymd] => 2024-12-17 18:43:04 [RateCDR] => 1 ) [2024-12-17 18: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 15:43:04' and `end` < '2024-12-17 18: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-17 18:43:17] Production.INFO: count ==4035 [2024-12-17 18:43:18] Production.ERROR: pbx CDR StartTime 2024-12-17 15:43:04 - End Time 2024-12-17 18:43:04 [2024-12-17 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042718', 'tblTempUsageDetail_20' ) start [2024-12-17 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042718', 'tblTempUsageDetail_20' ) end [2024-12-17 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042718', 'tblTempVendorCDR_20' ) start [2024-12-17 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042718', 'tblTempVendorCDR_20' ) end [2024-12-17 18:43:18] Production.INFO: ProcessCDR(1,14042718,1,1,2) [2024-12-17 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042718', 'tblTempUsageDetail_20' ) start [2024-12-17 18:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042718', 'tblTempUsageDetail_20' ) end [2024-12-17 18:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:43:21] Production.INFO: ==27622== Releasing lock... [2024-12-17 18:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:43:21] Production.INFO: 58.25 MB #Memory Used# [2024-12-17 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:44:05 [end_date_ymd] => 2024-12-17 18:44:05 [RateCDR] => 1 ) [2024-12-17 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 15:44:05' and `end` < '2024-12-17 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 18:44:18] Production.INFO: count ==4021 [2024-12-17 18:44:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:44:05 - End Time 2024-12-17 18:44:05 [2024-12-17 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042723', 'tblTempUsageDetail_20' ) start [2024-12-17 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042723', 'tblTempUsageDetail_20' ) end [2024-12-17 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042723', 'tblTempVendorCDR_20' ) start [2024-12-17 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042723', 'tblTempVendorCDR_20' ) end [2024-12-17 18:44:19] Production.INFO: ProcessCDR(1,14042723,1,1,2) [2024-12-17 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042723', 'tblTempUsageDetail_20' ) start [2024-12-17 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042723', 'tblTempUsageDetail_20' ) end [2024-12-17 18:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:44:22] Production.INFO: ==27736== Releasing lock... [2024-12-17 18:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:44:22] Production.INFO: 58.25 MB #Memory Used# [2024-12-17 18:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:45:04 [end_date_ymd] => 2024-12-17 18:45:04 [RateCDR] => 1 ) [2024-12-17 18: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 15:45:04' and `end` < '2024-12-17 18: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-17 18:45:18] Production.INFO: count ==4008 [2024-12-17 18:45:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:45:04 - End Time 2024-12-17 18:45:04 [2024-12-17 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042728', 'tblTempUsageDetail_20' ) start [2024-12-17 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042728', 'tblTempUsageDetail_20' ) end [2024-12-17 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042728', 'tblTempVendorCDR_20' ) start [2024-12-17 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042728', 'tblTempVendorCDR_20' ) end [2024-12-17 18:45:19] Production.INFO: ProcessCDR(1,14042728,1,1,2) [2024-12-17 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042728', 'tblTempUsageDetail_20' ) start [2024-12-17 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042728', 'tblTempUsageDetail_20' ) end [2024-12-17 18:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:45:22] Production.INFO: ==27807== Releasing lock... [2024-12-17 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:45:22] Production.INFO: 58 MB #Memory Used# [2024-12-17 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:46:05 [end_date_ymd] => 2024-12-17 18:46:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:46:05' and `end` < '2024-12-17 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-17 18:46:20] Production.INFO: count ==3990 [2024-12-17 18:46:21] Production.ERROR: pbx CDR StartTime 2024-12-17 15:46:05 - End Time 2024-12-17 18:46:05 [2024-12-17 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042733', 'tblTempUsageDetail_20' ) start [2024-12-17 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042733', 'tblTempUsageDetail_20' ) end [2024-12-17 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042733', 'tblTempVendorCDR_20' ) start [2024-12-17 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042733', 'tblTempVendorCDR_20' ) end [2024-12-17 18:46:21] Production.INFO: ProcessCDR(1,14042733,1,1,2) [2024-12-17 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042733', 'tblTempUsageDetail_20' ) start [2024-12-17 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042733', 'tblTempUsageDetail_20' ) end [2024-12-17 18:46:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:46:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:46:26] Production.INFO: ==27886== Releasing lock... [2024-12-17 18:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:46:26] Production.INFO: 57.75 MB #Memory Used# [2024-12-17 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:47:05 [end_date_ymd] => 2024-12-17 18:47:05 [RateCDR] => 1 ) [2024-12-17 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 15:47:05' and `end` < '2024-12-17 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 18:47:17] Production.INFO: count ==3977 [2024-12-17 18:47:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:47:05 - End Time 2024-12-17 18:47:05 [2024-12-17 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042738', 'tblTempUsageDetail_20' ) start [2024-12-17 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042738', 'tblTempUsageDetail_20' ) end [2024-12-17 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042738', 'tblTempVendorCDR_20' ) start [2024-12-17 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042738', 'tblTempVendorCDR_20' ) end [2024-12-17 18:47:19] Production.INFO: ProcessCDR(1,14042738,1,1,2) [2024-12-17 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042738', 'tblTempUsageDetail_20' ) start [2024-12-17 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042738', 'tblTempUsageDetail_20' ) end [2024-12-17 18:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:47:22] Production.INFO: ==27958== Releasing lock... [2024-12-17 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:47:22] Production.INFO: 57.75 MB #Memory Used# [2024-12-17 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:48:05 [end_date_ymd] => 2024-12-17 18:48:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:48:05' and `end` < '2024-12-17 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-17 18:48:18] Production.INFO: count ==3953 [2024-12-17 18:48:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:48:05 - End Time 2024-12-17 18:48:05 [2024-12-17 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042743', 'tblTempUsageDetail_20' ) start [2024-12-17 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042743', 'tblTempUsageDetail_20' ) end [2024-12-17 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042743', 'tblTempVendorCDR_20' ) start [2024-12-17 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042743', 'tblTempVendorCDR_20' ) end [2024-12-17 18:48:19] Production.INFO: ProcessCDR(1,14042743,1,1,2) [2024-12-17 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042743', 'tblTempUsageDetail_20' ) start [2024-12-17 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042743', 'tblTempUsageDetail_20' ) end [2024-12-17 18:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:48:22] Production.INFO: ==28036== Releasing lock... [2024-12-17 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:48:22] Production.INFO: 57.5 MB #Memory Used# [2024-12-17 18:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:49:04 [end_date_ymd] => 2024-12-17 18:49:04 [RateCDR] => 1 ) [2024-12-17 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-17 15:49:04' and `end` < '2024-12-17 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-17 18:49:17] Production.INFO: count ==3947 [2024-12-17 18:49:18] Production.ERROR: pbx CDR StartTime 2024-12-17 15:49:04 - End Time 2024-12-17 18:49:04 [2024-12-17 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042748', 'tblTempUsageDetail_20' ) start [2024-12-17 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042748', 'tblTempUsageDetail_20' ) end [2024-12-17 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042748', 'tblTempVendorCDR_20' ) start [2024-12-17 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042748', 'tblTempVendorCDR_20' ) end [2024-12-17 18:49:18] Production.INFO: ProcessCDR(1,14042748,1,1,2) [2024-12-17 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042748', 'tblTempUsageDetail_20' ) start [2024-12-17 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042748', 'tblTempUsageDetail_20' ) end [2024-12-17 18:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:49:21] Production.INFO: ==28112== Releasing lock... [2024-12-17 18:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:49:21] Production.INFO: 57.5 MB #Memory Used# [2024-12-17 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:50:05 [end_date_ymd] => 2024-12-17 18:50:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:50:05' and `end` < '2024-12-17 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-17 18:50:20] Production.INFO: count ==3942 [2024-12-17 18:50:21] Production.ERROR: pbx CDR StartTime 2024-12-17 15:50:05 - End Time 2024-12-17 18:50:05 [2024-12-17 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042753', 'tblTempUsageDetail_20' ) start [2024-12-17 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042753', 'tblTempUsageDetail_20' ) end [2024-12-17 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042753', 'tblTempVendorCDR_20' ) start [2024-12-17 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042753', 'tblTempVendorCDR_20' ) end [2024-12-17 18:50:21] Production.INFO: ProcessCDR(1,14042753,1,1,2) [2024-12-17 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042753', 'tblTempUsageDetail_20' ) start [2024-12-17 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042753', 'tblTempUsageDetail_20' ) end [2024-12-17 18:50:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:50:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:50:26] Production.INFO: ==28194== Releasing lock... [2024-12-17 18:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:50:26] Production.INFO: 57.5 MB #Memory Used# [2024-12-17 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:51:04 [end_date_ymd] => 2024-12-17 18:51:04 [RateCDR] => 1 ) [2024-12-17 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-17 15:51:04' and `end` < '2024-12-17 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-17 18:51:18] Production.INFO: count ==3889 [2024-12-17 18:51:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:51:04 - End Time 2024-12-17 18:51:04 [2024-12-17 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042759', 'tblTempUsageDetail_20' ) start [2024-12-17 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042759', 'tblTempUsageDetail_20' ) end [2024-12-17 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042759', 'tblTempVendorCDR_20' ) start [2024-12-17 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042759', 'tblTempVendorCDR_20' ) end [2024-12-17 18:51:19] Production.INFO: ProcessCDR(1,14042759,1,1,2) [2024-12-17 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042759', 'tblTempUsageDetail_20' ) start [2024-12-17 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042759', 'tblTempUsageDetail_20' ) end [2024-12-17 18:51:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:51:24] Production.INFO: ==28269== Releasing lock... [2024-12-17 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:51:24] Production.INFO: 57.25 MB #Memory Used# [2024-12-17 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:52:05 [end_date_ymd] => 2024-12-17 18:52:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:52:05' and `end` < '2024-12-17 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-17 18:52:17] Production.INFO: count ==3867 [2024-12-17 18:52:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:52:05 - End Time 2024-12-17 18:52:05 [2024-12-17 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042764', 'tblTempUsageDetail_20' ) start [2024-12-17 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042764', 'tblTempUsageDetail_20' ) end [2024-12-17 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042764', 'tblTempVendorCDR_20' ) start [2024-12-17 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042764', 'tblTempVendorCDR_20' ) end [2024-12-17 18:52:19] Production.INFO: ProcessCDR(1,14042764,1,1,2) [2024-12-17 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042764', 'tblTempUsageDetail_20' ) start [2024-12-17 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042764', 'tblTempUsageDetail_20' ) end [2024-12-17 18:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:52:22] Production.INFO: ==28343== Releasing lock... [2024-12-17 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:52:22] Production.INFO: 57 MB #Memory Used# [2024-12-17 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:53:04 [end_date_ymd] => 2024-12-17 18:53:04 [RateCDR] => 1 ) [2024-12-17 18: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-17 15:53:04' and `end` < '2024-12-17 18: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-17 18:53:18] Production.INFO: count ==3854 [2024-12-17 18:53:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:53:04 - End Time 2024-12-17 18:53:04 [2024-12-17 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042769', 'tblTempUsageDetail_20' ) start [2024-12-17 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042769', 'tblTempUsageDetail_20' ) end [2024-12-17 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042769', 'tblTempVendorCDR_20' ) start [2024-12-17 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042769', 'tblTempVendorCDR_20' ) end [2024-12-17 18:53:20] Production.INFO: ProcessCDR(1,14042769,1,1,2) [2024-12-17 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042769', 'tblTempUsageDetail_20' ) start [2024-12-17 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042769', 'tblTempUsageDetail_20' ) end [2024-12-17 18:53:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:53:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:53:25] Production.INFO: ==28417== Releasing lock... [2024-12-17 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:53:25] Production.INFO: 57 MB #Memory Used# [2024-12-17 18:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:54:04 [end_date_ymd] => 2024-12-17 18:54:04 [RateCDR] => 1 ) [2024-12-17 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-17 15:54:04' and `end` < '2024-12-17 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-17 18:54:18] Production.INFO: count ==3819 [2024-12-17 18:54:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:54:04 - End Time 2024-12-17 18:54:04 [2024-12-17 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042774', 'tblTempUsageDetail_20' ) start [2024-12-17 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042774', 'tblTempUsageDetail_20' ) end [2024-12-17 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042774', 'tblTempVendorCDR_20' ) start [2024-12-17 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042774', 'tblTempVendorCDR_20' ) end [2024-12-17 18:54:19] Production.INFO: ProcessCDR(1,14042774,1,1,2) [2024-12-17 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042774', 'tblTempUsageDetail_20' ) start [2024-12-17 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042774', 'tblTempUsageDetail_20' ) end [2024-12-17 18:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:54:22] Production.INFO: ==28494== Releasing lock... [2024-12-17 18:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:54:22] Production.INFO: 56.5 MB #Memory Used# [2024-12-17 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:55:05 [end_date_ymd] => 2024-12-17 18:55:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:55:05' and `end` < '2024-12-17 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-17 18:55:18] Production.INFO: count ==3797 [2024-12-17 18:55:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:55:05 - End Time 2024-12-17 18:55:05 [2024-12-17 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042779', 'tblTempUsageDetail_20' ) start [2024-12-17 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042779', 'tblTempUsageDetail_20' ) end [2024-12-17 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042779', 'tblTempVendorCDR_20' ) start [2024-12-17 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042779', 'tblTempVendorCDR_20' ) end [2024-12-17 18:55:19] Production.INFO: ProcessCDR(1,14042779,1,1,2) [2024-12-17 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042779', 'tblTempUsageDetail_20' ) start [2024-12-17 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042779', 'tblTempUsageDetail_20' ) end [2024-12-17 18:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:55:22] Production.INFO: ==28572== Releasing lock... [2024-12-17 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:55:22] Production.INFO: 56.5 MB #Memory Used# [2024-12-17 18:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:56:04 [end_date_ymd] => 2024-12-17 18:56:04 [RateCDR] => 1 ) [2024-12-17 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-17 15:56:04' and `end` < '2024-12-17 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-17 18:56:17] Production.INFO: count ==3777 [2024-12-17 18:56:18] Production.ERROR: pbx CDR StartTime 2024-12-17 15:56:04 - End Time 2024-12-17 18:56:04 [2024-12-17 18:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042784', 'tblTempUsageDetail_20' ) start [2024-12-17 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042784', 'tblTempUsageDetail_20' ) end [2024-12-17 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042784', 'tblTempVendorCDR_20' ) start [2024-12-17 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042784', 'tblTempVendorCDR_20' ) end [2024-12-17 18:56:18] Production.INFO: ProcessCDR(1,14042784,1,1,2) [2024-12-17 18:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042784', 'tblTempUsageDetail_20' ) start [2024-12-17 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042784', 'tblTempUsageDetail_20' ) end [2024-12-17 18:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:56:23] Production.INFO: ==28647== Releasing lock... [2024-12-17 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:56:23] Production.INFO: 56.5 MB #Memory Used# [2024-12-17 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:57:05 [end_date_ymd] => 2024-12-17 18:57:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:57:05' and `end` < '2024-12-17 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-17 18:57:20] Production.INFO: count ==3770 [2024-12-17 18:57:21] Production.ERROR: pbx CDR StartTime 2024-12-17 15:57:05 - End Time 2024-12-17 18:57:05 [2024-12-17 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042789', 'tblTempUsageDetail_20' ) start [2024-12-17 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042789', 'tblTempUsageDetail_20' ) end [2024-12-17 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042789', 'tblTempVendorCDR_20' ) start [2024-12-17 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042789', 'tblTempVendorCDR_20' ) end [2024-12-17 18:57:21] Production.INFO: ProcessCDR(1,14042789,1,1,2) [2024-12-17 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042789', 'tblTempUsageDetail_20' ) start [2024-12-17 18:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042789', 'tblTempUsageDetail_20' ) end [2024-12-17 18:57:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:57:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:57:26] Production.INFO: ==28722== Releasing lock... [2024-12-17 18:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:57:26] Production.INFO: 56.5 MB #Memory Used# [2024-12-17 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:58:05 [end_date_ymd] => 2024-12-17 18:58:05 [RateCDR] => 1 ) [2024-12-17 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 15:58:05' and `end` < '2024-12-17 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 18:58:18] Production.INFO: count ==3755 [2024-12-17 18:58:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:58:05 - End Time 2024-12-17 18:58:05 [2024-12-17 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042794', 'tblTempUsageDetail_20' ) start [2024-12-17 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042794', 'tblTempUsageDetail_20' ) end [2024-12-17 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042794', 'tblTempVendorCDR_20' ) start [2024-12-17 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042794', 'tblTempVendorCDR_20' ) end [2024-12-17 18:58:19] Production.INFO: ProcessCDR(1,14042794,1,1,2) [2024-12-17 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042794', 'tblTempUsageDetail_20' ) start [2024-12-17 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042794', 'tblTempUsageDetail_20' ) end [2024-12-17 18:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:58:22] Production.INFO: ==28797== Releasing lock... [2024-12-17 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:58:22] Production.INFO: 56.25 MB #Memory Used# [2024-12-17 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 15:59:05 [end_date_ymd] => 2024-12-17 18:59:05 [RateCDR] => 1 ) [2024-12-17 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-17 15:59:05' and `end` < '2024-12-17 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-17 18:59:17] Production.INFO: count ==3733 [2024-12-17 18:59:19] Production.ERROR: pbx CDR StartTime 2024-12-17 15:59:05 - End Time 2024-12-17 18:59:05 [2024-12-17 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042799', 'tblTempUsageDetail_20' ) start [2024-12-17 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042799', 'tblTempUsageDetail_20' ) end [2024-12-17 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042799', 'tblTempVendorCDR_20' ) start [2024-12-17 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042799', 'tblTempVendorCDR_20' ) end [2024-12-17 18:59:19] Production.INFO: ProcessCDR(1,14042799,1,1,2) [2024-12-17 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042799', 'tblTempUsageDetail_20' ) start [2024-12-17 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042799', 'tblTempUsageDetail_20' ) end [2024-12-17 18:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 18:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 18:59:23] Production.INFO: ==28874== Releasing lock... [2024-12-17 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 18:59:23] Production.INFO: 56 MB #Memory Used# [2024-12-17 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:00:05 [end_date_ymd] => 2024-12-17 19:00:05 [RateCDR] => 1 ) [2024-12-17 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:00:05' and `end` < '2024-12-17 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:00:18] Production.INFO: count ==3722 [2024-12-17 19:00:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:00:05 - End Time 2024-12-17 19:00:05 [2024-12-17 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042805', 'tblTempUsageDetail_20' ) start [2024-12-17 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042805', 'tblTempUsageDetail_20' ) end [2024-12-17 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042805', 'tblTempVendorCDR_20' ) start [2024-12-17 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042805', 'tblTempVendorCDR_20' ) end [2024-12-17 19:00:19] Production.INFO: ProcessCDR(1,14042805,1,1,2) [2024-12-17 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042805', 'tblTempUsageDetail_20' ) start [2024-12-17 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042805', 'tblTempUsageDetail_20' ) end [2024-12-17 19:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:00:24] Production.INFO: ==28993== Releasing lock... [2024-12-17 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:00:24] Production.INFO: 56.5 MB #Memory Used# [2024-12-17 19:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:01:04 [end_date_ymd] => 2024-12-17 19:01:04 [RateCDR] => 1 ) [2024-12-17 19: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 16:01:04' and `end` < '2024-12-17 19: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-17 19:01:17] Production.INFO: count ==3613 [2024-12-17 19:01:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:01:04 - End Time 2024-12-17 19:01:04 [2024-12-17 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042810', 'tblTempUsageDetail_20' ) start [2024-12-17 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042810', 'tblTempUsageDetail_20' ) end [2024-12-17 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042810', 'tblTempVendorCDR_20' ) start [2024-12-17 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042810', 'tblTempVendorCDR_20' ) end [2024-12-17 19:01:18] Production.INFO: ProcessCDR(1,14042810,1,1,2) [2024-12-17 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042810', 'tblTempUsageDetail_20' ) start [2024-12-17 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042810', 'tblTempUsageDetail_20' ) end [2024-12-17 19:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:01:23] Production.INFO: ==29084== Releasing lock... [2024-12-17 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:01:23] Production.INFO: 55 MB #Memory Used# [2024-12-17 19:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:02:04 [end_date_ymd] => 2024-12-17 19:02:04 [RateCDR] => 1 ) [2024-12-17 19: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 16:02:04' and `end` < '2024-12-17 19: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-17 19:02:17] Production.INFO: count ==3585 [2024-12-17 19:02:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:02:04 - End Time 2024-12-17 19:02:04 [2024-12-17 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042815', 'tblTempUsageDetail_20' ) start [2024-12-17 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042815', 'tblTempUsageDetail_20' ) end [2024-12-17 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042815', 'tblTempVendorCDR_20' ) start [2024-12-17 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042815', 'tblTempVendorCDR_20' ) end [2024-12-17 19:02:19] Production.INFO: ProcessCDR(1,14042815,1,1,2) [2024-12-17 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042815', 'tblTempUsageDetail_20' ) start [2024-12-17 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042815', 'tblTempUsageDetail_20' ) end [2024-12-17 19:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:02:23] Production.INFO: ==29237== Releasing lock... [2024-12-17 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:02:23] Production.INFO: 55.75 MB #Memory Used# [2024-12-17 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:03:05 [end_date_ymd] => 2024-12-17 19:03:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:03:05' and `end` < '2024-12-17 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-17 19:03:18] Production.INFO: count ==3577 [2024-12-17 19:03:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:03:05 - End Time 2024-12-17 19:03:05 [2024-12-17 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042820', 'tblTempUsageDetail_20' ) start [2024-12-17 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042820', 'tblTempUsageDetail_20' ) end [2024-12-17 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042820', 'tblTempVendorCDR_20' ) start [2024-12-17 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042820', 'tblTempVendorCDR_20' ) end [2024-12-17 19:03:19] Production.INFO: ProcessCDR(1,14042820,1,1,2) [2024-12-17 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042820', 'tblTempUsageDetail_20' ) start [2024-12-17 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042820', 'tblTempUsageDetail_20' ) end [2024-12-17 19:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:03:22] Production.INFO: ==29320== Releasing lock... [2024-12-17 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:03:22] Production.INFO: 55.75 MB #Memory Used# [2024-12-17 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:04:05 [end_date_ymd] => 2024-12-17 19:04:05 [RateCDR] => 1 ) [2024-12-17 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:04:05' and `end` < '2024-12-17 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:04:18] Production.INFO: count ==3560 [2024-12-17 19:04:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:04:05 - End Time 2024-12-17 19:04:05 [2024-12-17 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042825', 'tblTempUsageDetail_20' ) start [2024-12-17 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042825', 'tblTempUsageDetail_20' ) end [2024-12-17 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042825', 'tblTempVendorCDR_20' ) start [2024-12-17 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042825', 'tblTempVendorCDR_20' ) end [2024-12-17 19:04:19] Production.INFO: ProcessCDR(1,14042825,1,1,2) [2024-12-17 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042825', 'tblTempUsageDetail_20' ) start [2024-12-17 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042825', 'tblTempUsageDetail_20' ) end [2024-12-17 19:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:04:22] Production.INFO: ==29398== Releasing lock... [2024-12-17 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:04:22] Production.INFO: 55.5 MB #Memory Used# [2024-12-17 19:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:05:04 [end_date_ymd] => 2024-12-17 19:05:04 [RateCDR] => 1 ) [2024-12-17 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-17 16:05:04' and `end` < '2024-12-17 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-17 19:05:17] Production.INFO: count ==3552 [2024-12-17 19:05:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:05:04 - End Time 2024-12-17 19:05:04 [2024-12-17 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042830', 'tblTempUsageDetail_20' ) start [2024-12-17 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042830', 'tblTempUsageDetail_20' ) end [2024-12-17 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042830', 'tblTempVendorCDR_20' ) start [2024-12-17 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042830', 'tblTempVendorCDR_20' ) end [2024-12-17 19:05:18] Production.INFO: ProcessCDR(1,14042830,1,1,2) [2024-12-17 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042830', 'tblTempUsageDetail_20' ) start [2024-12-17 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042830', 'tblTempUsageDetail_20' ) end [2024-12-17 19:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:05:23] Production.INFO: ==29551== Releasing lock... [2024-12-17 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:05:23] Production.INFO: 54.75 MB #Memory Used# [2024-12-17 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:06:05 [end_date_ymd] => 2024-12-17 19:06:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:06:05' and `end` < '2024-12-17 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-17 19:06:18] Production.INFO: count ==3539 [2024-12-17 19:06:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:06:05 - End Time 2024-12-17 19:06:05 [2024-12-17 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042835', 'tblTempUsageDetail_20' ) start [2024-12-17 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042835', 'tblTempUsageDetail_20' ) end [2024-12-17 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042835', 'tblTempVendorCDR_20' ) start [2024-12-17 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042835', 'tblTempVendorCDR_20' ) end [2024-12-17 19:06:19] Production.INFO: ProcessCDR(1,14042835,1,1,2) [2024-12-17 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042835', 'tblTempUsageDetail_20' ) start [2024-12-17 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042835', 'tblTempUsageDetail_20' ) end [2024-12-17 19:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:06:22] Production.INFO: ==29634== Releasing lock... [2024-12-17 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:06:22] Production.INFO: 54.5 MB #Memory Used# [2024-12-17 19:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:07:04 [end_date_ymd] => 2024-12-17 19:07:04 [RateCDR] => 1 ) [2024-12-17 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-17 16:07:04' and `end` < '2024-12-17 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-17 19:07:17] Production.INFO: count ==3528 [2024-12-17 19:07:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:07:04 - End Time 2024-12-17 19:07:04 [2024-12-17 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042840', 'tblTempUsageDetail_20' ) start [2024-12-17 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042840', 'tblTempUsageDetail_20' ) end [2024-12-17 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042840', 'tblTempVendorCDR_20' ) start [2024-12-17 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042840', 'tblTempVendorCDR_20' ) end [2024-12-17 19:07:18] Production.INFO: ProcessCDR(1,14042840,1,1,2) [2024-12-17 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042840', 'tblTempUsageDetail_20' ) start [2024-12-17 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042840', 'tblTempUsageDetail_20' ) end [2024-12-17 19:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:07:21] Production.INFO: ==29713== Releasing lock... [2024-12-17 19:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:07:21] Production.INFO: 54.25 MB #Memory Used# [2024-12-17 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:08:05 [end_date_ymd] => 2024-12-17 19:08:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:08:05' and `end` < '2024-12-17 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-17 19:08:17] Production.INFO: count ==3526 [2024-12-17 19:08:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:08:05 - End Time 2024-12-17 19:08:05 [2024-12-17 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042843', 'tblTempUsageDetail_20' ) start [2024-12-17 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042843', 'tblTempUsageDetail_20' ) end [2024-12-17 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042843', 'tblTempVendorCDR_20' ) start [2024-12-17 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042843', 'tblTempVendorCDR_20' ) end [2024-12-17 19:08:19] Production.INFO: ProcessCDR(1,14042843,1,1,2) [2024-12-17 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042843', 'tblTempUsageDetail_20' ) start [2024-12-17 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042843', 'tblTempUsageDetail_20' ) end [2024-12-17 19:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:08:23] Production.INFO: ==29869== Releasing lock... [2024-12-17 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:08:23] Production.INFO: 55 MB #Memory Used# [2024-12-17 19:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:09:04 [end_date_ymd] => 2024-12-17 19:09:04 [RateCDR] => 1 ) [2024-12-17 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-17 16:09:04' and `end` < '2024-12-17 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-17 19:09:16] Production.INFO: count ==3517 [2024-12-17 19:09:17] Production.ERROR: pbx CDR StartTime 2024-12-17 16:09:04 - End Time 2024-12-17 19:09:04 [2024-12-17 19:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042850', 'tblTempUsageDetail_20' ) start [2024-12-17 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042850', 'tblTempUsageDetail_20' ) end [2024-12-17 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042850', 'tblTempVendorCDR_20' ) start [2024-12-17 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042850', 'tblTempVendorCDR_20' ) end [2024-12-17 19:09:18] Production.INFO: ProcessCDR(1,14042850,1,1,2) [2024-12-17 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042850', 'tblTempUsageDetail_20' ) start [2024-12-17 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042850', 'tblTempUsageDetail_20' ) end [2024-12-17 19:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:09:21] Production.INFO: ==29944== Releasing lock... [2024-12-17 19:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:09:21] Production.INFO: 54.5 MB #Memory Used# [2024-12-17 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:10:06 [end_date_ymd] => 2024-12-17 19:10:06 [RateCDR] => 1 ) [2024-12-17 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-17 16:10:06' and `end` < '2024-12-17 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-17 19:10:18] Production.INFO: count ==3511 [2024-12-17 19:10:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:10:06 - End Time 2024-12-17 19:10:06 [2024-12-17 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042856', 'tblTempUsageDetail_20' ) start [2024-12-17 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042856', 'tblTempUsageDetail_20' ) end [2024-12-17 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042856', 'tblTempVendorCDR_20' ) start [2024-12-17 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042856', 'tblTempVendorCDR_20' ) end [2024-12-17 19:10:19] Production.INFO: ProcessCDR(1,14042856,1,1,2) [2024-12-17 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042856', 'tblTempUsageDetail_20' ) start [2024-12-17 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042856', 'tblTempUsageDetail_20' ) end [2024-12-17 19:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:10:24] Production.INFO: ==30027== Releasing lock... [2024-12-17 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:10:24] Production.INFO: 54.75 MB #Memory Used# [2024-12-17 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:11:04 [end_date_ymd] => 2024-12-17 19:11:04 [RateCDR] => 1 ) [2024-12-17 19: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 16:11:04' and `end` < '2024-12-17 19: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-17 19:11:17] Production.INFO: count ==3437 [2024-12-17 19:11:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:11:04 - End Time 2024-12-17 19:11:04 [2024-12-17 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042861', 'tblTempUsageDetail_20' ) start [2024-12-17 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042861', 'tblTempUsageDetail_20' ) end [2024-12-17 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042861', 'tblTempVendorCDR_20' ) start [2024-12-17 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042861', 'tblTempVendorCDR_20' ) end [2024-12-17 19:11:18] Production.INFO: ProcessCDR(1,14042861,1,1,2) [2024-12-17 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042861', 'tblTempUsageDetail_20' ) start [2024-12-17 19:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042861', 'tblTempUsageDetail_20' ) end [2024-12-17 19:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:11:21] Production.INFO: ==30102== Releasing lock... [2024-12-17 19:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:11:21] Production.INFO: 53.75 MB #Memory Used# [2024-12-17 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:12:05 [end_date_ymd] => 2024-12-17 19:12:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:12:05' and `end` < '2024-12-17 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-17 19:12:18] Production.INFO: count ==3406 [2024-12-17 19:12:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:12:05 - End Time 2024-12-17 19:12:05 [2024-12-17 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042866', 'tblTempUsageDetail_20' ) start [2024-12-17 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042866', 'tblTempUsageDetail_20' ) end [2024-12-17 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042866', 'tblTempVendorCDR_20' ) start [2024-12-17 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042866', 'tblTempVendorCDR_20' ) end [2024-12-17 19:12:19] Production.INFO: ProcessCDR(1,14042866,1,1,2) [2024-12-17 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042866', 'tblTempUsageDetail_20' ) start [2024-12-17 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042866', 'tblTempUsageDetail_20' ) end [2024-12-17 19:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:12:24] Production.INFO: ==30260== Releasing lock... [2024-12-17 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:12:24] Production.INFO: 54.25 MB #Memory Used# [2024-12-17 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:13:05 [end_date_ymd] => 2024-12-17 19:13:05 [RateCDR] => 1 ) [2024-12-17 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:13:05' and `end` < '2024-12-17 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:13:18] Production.INFO: count ==3357 [2024-12-17 19:13:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:13:05 - End Time 2024-12-17 19:13:05 [2024-12-17 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042871', 'tblTempUsageDetail_20' ) start [2024-12-17 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042871', 'tblTempUsageDetail_20' ) end [2024-12-17 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042871', 'tblTempVendorCDR_20' ) start [2024-12-17 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042871', 'tblTempVendorCDR_20' ) end [2024-12-17 19:13:19] Production.INFO: ProcessCDR(1,14042871,1,1,2) [2024-12-17 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042871', 'tblTempUsageDetail_20' ) start [2024-12-17 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042871', 'tblTempUsageDetail_20' ) end [2024-12-17 19:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:13:22] Production.INFO: ==30341== Releasing lock... [2024-12-17 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:13:22] Production.INFO: 53.25 MB #Memory Used# [2024-12-17 19:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:14:04 [end_date_ymd] => 2024-12-17 19:14:04 [RateCDR] => 1 ) [2024-12-17 19:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:14:04' and `end` < '2024-12-17 19:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:14:17] Production.INFO: count ==3337 [2024-12-17 19:14:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:14:04 - End Time 2024-12-17 19:14:04 [2024-12-17 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042876', 'tblTempUsageDetail_20' ) start [2024-12-17 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042876', 'tblTempUsageDetail_20' ) end [2024-12-17 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042876', 'tblTempVendorCDR_20' ) start [2024-12-17 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042876', 'tblTempVendorCDR_20' ) end [2024-12-17 19:14:18] Production.INFO: ProcessCDR(1,14042876,1,1,2) [2024-12-17 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042876', 'tblTempUsageDetail_20' ) start [2024-12-17 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042876', 'tblTempUsageDetail_20' ) end [2024-12-17 19:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:14:21] Production.INFO: ==30413== Releasing lock... [2024-12-17 19:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:14:21] Production.INFO: 53 MB #Memory Used# [2024-12-17 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:15:06 [end_date_ymd] => 2024-12-17 19:15:06 [RateCDR] => 1 ) [2024-12-17 19: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-17 16:15:06' and `end` < '2024-12-17 19: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-17 19:15:18] Production.INFO: count ==3331 [2024-12-17 19:15:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:15:06 - End Time 2024-12-17 19:15:06 [2024-12-17 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042881', 'tblTempUsageDetail_20' ) start [2024-12-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042881', 'tblTempUsageDetail_20' ) end [2024-12-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042881', 'tblTempVendorCDR_20' ) start [2024-12-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042881', 'tblTempVendorCDR_20' ) end [2024-12-17 19:15:19] Production.INFO: ProcessCDR(1,14042881,1,1,2) [2024-12-17 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042881', 'tblTempUsageDetail_20' ) start [2024-12-17 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042881', 'tblTempUsageDetail_20' ) end [2024-12-17 19:15:25] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:15:25] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:15:25] Production.INFO: ==30607== Releasing lock... [2024-12-17 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:15:25] Production.INFO: 52.75 MB #Memory Used# [2024-12-17 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:16:05 [end_date_ymd] => 2024-12-17 19:16:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:16:05' and `end` < '2024-12-17 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-17 19:16:18] Production.INFO: count ==3326 [2024-12-17 19:16:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:16:05 - End Time 2024-12-17 19:16:05 [2024-12-17 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042886', 'tblTempUsageDetail_20' ) start [2024-12-17 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042886', 'tblTempUsageDetail_20' ) end [2024-12-17 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042886', 'tblTempVendorCDR_20' ) start [2024-12-17 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042886', 'tblTempVendorCDR_20' ) end [2024-12-17 19:16:19] Production.INFO: ProcessCDR(1,14042886,1,1,2) [2024-12-17 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042886', 'tblTempUsageDetail_20' ) start [2024-12-17 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042886', 'tblTempUsageDetail_20' ) end [2024-12-17 19:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:16:22] Production.INFO: ==30682== Releasing lock... [2024-12-17 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:16:22] Production.INFO: 53 MB #Memory Used# [2024-12-17 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:17:05 [end_date_ymd] => 2024-12-17 19:17:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:17:05' and `end` < '2024-12-17 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-17 19:17:17] Production.INFO: count ==3319 [2024-12-17 19:17:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:17:05 - End Time 2024-12-17 19:17:05 [2024-12-17 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042891', 'tblTempUsageDetail_20' ) start [2024-12-17 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042891', 'tblTempUsageDetail_20' ) end [2024-12-17 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042891', 'tblTempVendorCDR_20' ) start [2024-12-17 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042891', 'tblTempVendorCDR_20' ) end [2024-12-17 19:17:18] Production.INFO: ProcessCDR(1,14042891,1,1,2) [2024-12-17 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042891', 'tblTempUsageDetail_20' ) start [2024-12-17 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042891', 'tblTempUsageDetail_20' ) end [2024-12-17 19:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:17:23] Production.INFO: ==30759== Releasing lock... [2024-12-17 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:17:23] Production.INFO: 52.75 MB #Memory Used# [2024-12-17 19:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:18:04 [end_date_ymd] => 2024-12-17 19:18:04 [RateCDR] => 1 ) [2024-12-17 19: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 16:18:04' and `end` < '2024-12-17 19: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-17 19:18:17] Production.INFO: count ==3300 [2024-12-17 19:18:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:18:04 - End Time 2024-12-17 19:18:04 [2024-12-17 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042896', 'tblTempUsageDetail_20' ) start [2024-12-17 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042896', 'tblTempUsageDetail_20' ) end [2024-12-17 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042896', 'tblTempVendorCDR_20' ) start [2024-12-17 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042896', 'tblTempVendorCDR_20' ) end [2024-12-17 19:18:18] Production.INFO: ProcessCDR(1,14042896,1,1,2) [2024-12-17 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042896', 'tblTempUsageDetail_20' ) start [2024-12-17 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042896', 'tblTempUsageDetail_20' ) end [2024-12-17 19:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:18:22] Production.INFO: ==30838== Releasing lock... [2024-12-17 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:18:22] Production.INFO: 52.75 MB #Memory Used# [2024-12-17 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:19:05 [end_date_ymd] => 2024-12-17 19:19:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:19:05' and `end` < '2024-12-17 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-17 19:19:17] Production.INFO: count ==3281 [2024-12-17 19:19:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:19:05 - End Time 2024-12-17 19:19:05 [2024-12-17 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042901', 'tblTempUsageDetail_20' ) start [2024-12-17 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042901', 'tblTempUsageDetail_20' ) end [2024-12-17 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042901', 'tblTempVendorCDR_20' ) start [2024-12-17 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042901', 'tblTempVendorCDR_20' ) end [2024-12-17 19:19:18] Production.INFO: ProcessCDR(1,14042901,1,1,2) [2024-12-17 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042901', 'tblTempUsageDetail_20' ) start [2024-12-17 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042901', 'tblTempUsageDetail_20' ) end [2024-12-17 19:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:19:23] Production.INFO: ==30913== Releasing lock... [2024-12-17 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:19:23] Production.INFO: 53.5 MB #Memory Used# [2024-12-17 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:20:05 [end_date_ymd] => 2024-12-17 19:20:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:20:05' and `end` < '2024-12-17 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-17 19:20:18] Production.INFO: count ==3250 [2024-12-17 19:20:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:20:05 - End Time 2024-12-17 19:20:05 [2024-12-17 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042907', 'tblTempUsageDetail_20' ) start [2024-12-17 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042907', 'tblTempUsageDetail_20' ) end [2024-12-17 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042907', 'tblTempVendorCDR_20' ) start [2024-12-17 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042907', 'tblTempVendorCDR_20' ) end [2024-12-17 19:20:19] Production.INFO: ProcessCDR(1,14042907,1,1,2) [2024-12-17 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042907', 'tblTempUsageDetail_20' ) start [2024-12-17 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042907', 'tblTempUsageDetail_20' ) end [2024-12-17 19:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:20:22] Production.INFO: ==30992== Releasing lock... [2024-12-17 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:20:22] Production.INFO: 52.25 MB #Memory Used# [2024-12-17 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:21:04 [end_date_ymd] => 2024-12-17 19:21:04 [RateCDR] => 1 ) [2024-12-17 19:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:21:04' and `end` < '2024-12-17 19:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:21:17] Production.INFO: count ==3176 [2024-12-17 19:21:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:21:04 - End Time 2024-12-17 19:21:04 [2024-12-17 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042912', 'tblTempUsageDetail_20' ) start [2024-12-17 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042912', 'tblTempUsageDetail_20' ) end [2024-12-17 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042912', 'tblTempVendorCDR_20' ) start [2024-12-17 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042912', 'tblTempVendorCDR_20' ) end [2024-12-17 19:21:18] Production.INFO: ProcessCDR(1,14042912,1,1,2) [2024-12-17 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042912', 'tblTempUsageDetail_20' ) start [2024-12-17 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042912', 'tblTempUsageDetail_20' ) end [2024-12-17 19:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:21:23] Production.INFO: ==31067== Releasing lock... [2024-12-17 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:21:23] Production.INFO: 52.5 MB #Memory Used# [2024-12-17 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:22:05 [end_date_ymd] => 2024-12-17 19:22:05 [RateCDR] => 1 ) [2024-12-17 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:22:05' and `end` < '2024-12-17 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:22:18] Production.INFO: count ==3166 [2024-12-17 19:22:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:22:05 - End Time 2024-12-17 19:22:05 [2024-12-17 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042917', 'tblTempUsageDetail_20' ) start [2024-12-17 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042917', 'tblTempUsageDetail_20' ) end [2024-12-17 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042917', 'tblTempVendorCDR_20' ) start [2024-12-17 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042917', 'tblTempVendorCDR_20' ) end [2024-12-17 19:22:19] Production.INFO: ProcessCDR(1,14042917,1,1,2) [2024-12-17 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042917', 'tblTempUsageDetail_20' ) start [2024-12-17 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042917', 'tblTempUsageDetail_20' ) end [2024-12-17 19:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:22:24] Production.INFO: ==31139== Releasing lock... [2024-12-17 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:22:24] Production.INFO: 51.5 MB #Memory Used# [2024-12-17 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:23:04 [end_date_ymd] => 2024-12-17 19:23:04 [RateCDR] => 1 ) [2024-12-17 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-17 16:23:04' and `end` < '2024-12-17 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-17 19:23:18] Production.INFO: count ==3164 [2024-12-17 19:23:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:23:04 - End Time 2024-12-17 19:23:04 [2024-12-17 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042922', 'tblTempUsageDetail_20' ) start [2024-12-17 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042922', 'tblTempUsageDetail_20' ) end [2024-12-17 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042922', 'tblTempVendorCDR_20' ) start [2024-12-17 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042922', 'tblTempVendorCDR_20' ) end [2024-12-17 19:23:19] Production.INFO: ProcessCDR(1,14042922,1,1,2) [2024-12-17 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042922', 'tblTempUsageDetail_20' ) start [2024-12-17 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042922', 'tblTempUsageDetail_20' ) end [2024-12-17 19:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:23:24] Production.INFO: ==31216== Releasing lock... [2024-12-17 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:23:24] Production.INFO: 52.5 MB #Memory Used# [2024-12-17 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:24:05 [end_date_ymd] => 2024-12-17 19:24:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:24:05' and `end` < '2024-12-17 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-17 19:24:18] Production.INFO: count ==3143 [2024-12-17 19:24:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:24:05 - End Time 2024-12-17 19:24:05 [2024-12-17 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042927', 'tblTempUsageDetail_20' ) start [2024-12-17 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042927', 'tblTempUsageDetail_20' ) end [2024-12-17 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042927', 'tblTempVendorCDR_20' ) start [2024-12-17 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042927', 'tblTempVendorCDR_20' ) end [2024-12-17 19:24:19] Production.INFO: ProcessCDR(1,14042927,1,1,2) [2024-12-17 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042927', 'tblTempUsageDetail_20' ) start [2024-12-17 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042927', 'tblTempUsageDetail_20' ) end [2024-12-17 19:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:24:23] Production.INFO: ==31294== Releasing lock... [2024-12-17 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:24:23] Production.INFO: 52.25 MB #Memory Used# [2024-12-17 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:25:05 [end_date_ymd] => 2024-12-17 19:25:05 [RateCDR] => 1 ) [2024-12-17 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:25:05' and `end` < '2024-12-17 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:25:17] Production.INFO: count ==3128 [2024-12-17 19:25:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:25:05 - End Time 2024-12-17 19:25:05 [2024-12-17 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042932', 'tblTempUsageDetail_20' ) start [2024-12-17 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042932', 'tblTempUsageDetail_20' ) end [2024-12-17 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042932', 'tblTempVendorCDR_20' ) start [2024-12-17 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042932', 'tblTempVendorCDR_20' ) end [2024-12-17 19:25:18] Production.INFO: ProcessCDR(1,14042932,1,1,2) [2024-12-17 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042932', 'tblTempUsageDetail_20' ) start [2024-12-17 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042932', 'tblTempUsageDetail_20' ) end [2024-12-17 19:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:25:21] Production.INFO: ==31368== Releasing lock... [2024-12-17 19:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:25:21] Production.INFO: 52.5 MB #Memory Used# [2024-12-17 19:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:26:04 [end_date_ymd] => 2024-12-17 19:26:04 [RateCDR] => 1 ) [2024-12-17 19: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 16:26:04' and `end` < '2024-12-17 19: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-17 19:26:17] Production.INFO: count ==3129 [2024-12-17 19:26:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:26:04 - End Time 2024-12-17 19:26:04 [2024-12-17 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042937', 'tblTempUsageDetail_20' ) start [2024-12-17 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042937', 'tblTempUsageDetail_20' ) end [2024-12-17 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042937', 'tblTempVendorCDR_20' ) start [2024-12-17 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042937', 'tblTempVendorCDR_20' ) end [2024-12-17 19:26:18] Production.INFO: ProcessCDR(1,14042937,1,1,2) [2024-12-17 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042937', 'tblTempUsageDetail_20' ) start [2024-12-17 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042937', 'tblTempUsageDetail_20' ) end [2024-12-17 19:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:26:22] Production.INFO: ==31442== Releasing lock... [2024-12-17 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:26:22] Production.INFO: 51.25 MB #Memory Used# [2024-12-17 19:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:27:04 [end_date_ymd] => 2024-12-17 19:27:04 [RateCDR] => 1 ) [2024-12-17 19: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 16:27:04' and `end` < '2024-12-17 19: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-17 19:27:16] Production.INFO: count ==3097 [2024-12-17 19:27:17] Production.ERROR: pbx CDR StartTime 2024-12-17 16:27:04 - End Time 2024-12-17 19:27:04 [2024-12-17 19:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042940', 'tblTempUsageDetail_20' ) start [2024-12-17 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042940', 'tblTempUsageDetail_20' ) end [2024-12-17 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042940', 'tblTempVendorCDR_20' ) start [2024-12-17 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042940', 'tblTempVendorCDR_20' ) end [2024-12-17 19:27:17] Production.INFO: ProcessCDR(1,14042940,1,1,2) [2024-12-17 19:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042940', 'tblTempUsageDetail_20' ) start [2024-12-17 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042940', 'tblTempUsageDetail_20' ) end [2024-12-17 19:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:27:22] Production.INFO: ==31515== Releasing lock... [2024-12-17 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:27:22] Production.INFO: 51.25 MB #Memory Used# [2024-12-17 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:28:05 [end_date_ymd] => 2024-12-17 19:28:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:28:05' and `end` < '2024-12-17 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-17 19:28:17] Production.INFO: count ==3085 [2024-12-17 19:28:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:28:05 - End Time 2024-12-17 19:28:05 [2024-12-17 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042947', 'tblTempUsageDetail_20' ) start [2024-12-17 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042947', 'tblTempUsageDetail_20' ) end [2024-12-17 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042947', 'tblTempVendorCDR_20' ) start [2024-12-17 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042947', 'tblTempVendorCDR_20' ) end [2024-12-17 19:28:18] Production.INFO: ProcessCDR(1,14042947,1,1,2) [2024-12-17 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042947', 'tblTempUsageDetail_20' ) start [2024-12-17 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042947', 'tblTempUsageDetail_20' ) end [2024-12-17 19:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:28:22] Production.INFO: ==31589== Releasing lock... [2024-12-17 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:28:22] Production.INFO: 51 MB #Memory Used# [2024-12-17 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:29:05 [end_date_ymd] => 2024-12-17 19:29:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:29:05' and `end` < '2024-12-17 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-17 19:29:18] Production.INFO: count ==3072 [2024-12-17 19:29:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:29:05 - End Time 2024-12-17 19:29:05 [2024-12-17 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042952', 'tblTempUsageDetail_20' ) start [2024-12-17 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042952', 'tblTempUsageDetail_20' ) end [2024-12-17 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042952', 'tblTempVendorCDR_20' ) start [2024-12-17 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042952', 'tblTempVendorCDR_20' ) end [2024-12-17 19:29:19] Production.INFO: ProcessCDR(1,14042952,1,1,2) [2024-12-17 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042952', 'tblTempUsageDetail_20' ) start [2024-12-17 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042952', 'tblTempUsageDetail_20' ) end [2024-12-17 19:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:29:24] Production.INFO: ==31660== Releasing lock... [2024-12-17 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:29:24] Production.INFO: 51 MB #Memory Used# [2024-12-17 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:30:05 [end_date_ymd] => 2024-12-17 19:30:05 [RateCDR] => 1 ) [2024-12-17 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:30:05' and `end` < '2024-12-17 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:30:18] Production.INFO: count ==3066 [2024-12-17 19:30:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:30:05 - End Time 2024-12-17 19:30:05 [2024-12-17 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042957', 'tblTempUsageDetail_20' ) start [2024-12-17 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042957', 'tblTempUsageDetail_20' ) end [2024-12-17 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042957', 'tblTempVendorCDR_20' ) start [2024-12-17 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042957', 'tblTempVendorCDR_20' ) end [2024-12-17 19:30:19] Production.INFO: ProcessCDR(1,14042957,1,1,2) [2024-12-17 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042957', 'tblTempUsageDetail_20' ) start [2024-12-17 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042957', 'tblTempUsageDetail_20' ) end [2024-12-17 19:30:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:30:24] Production.INFO: ==31732== Releasing lock... [2024-12-17 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:30:24] Production.INFO: 50.75 MB #Memory Used# [2024-12-17 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:31:05 [end_date_ymd] => 2024-12-17 19:31:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:31:05' and `end` < '2024-12-17 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-17 19:31:21] Production.INFO: count ==2998 [2024-12-17 19:31:22] Production.ERROR: pbx CDR StartTime 2024-12-17 16:31:05 - End Time 2024-12-17 19:31:05 [2024-12-17 19:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042963', 'tblTempUsageDetail_20' ) start [2024-12-17 19:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042963', 'tblTempUsageDetail_20' ) end [2024-12-17 19:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042963', 'tblTempVendorCDR_20' ) start [2024-12-17 19:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042963', 'tblTempVendorCDR_20' ) end [2024-12-17 19:31:22] Production.INFO: ProcessCDR(1,14042963,1,1,2) [2024-12-17 19:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042963', 'tblTempUsageDetail_20' ) start [2024-12-17 19:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042963', 'tblTempUsageDetail_20' ) end [2024-12-17 19:31:26] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:31:26] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:31:26] Production.INFO: ==31845== Releasing lock... [2024-12-17 19:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:31:26] Production.INFO: 50.75 MB #Memory Used# [2024-12-17 19:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:32:04 [end_date_ymd] => 2024-12-17 19:32:04 [RateCDR] => 1 ) [2024-12-17 19: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 16:32:04' and `end` < '2024-12-17 19: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-17 19:32:17] Production.INFO: count ==2977 [2024-12-17 19:32:17] Production.ERROR: pbx CDR StartTime 2024-12-17 16:32:04 - End Time 2024-12-17 19:32:04 [2024-12-17 19:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042968', 'tblTempUsageDetail_20' ) start [2024-12-17 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042968', 'tblTempUsageDetail_20' ) end [2024-12-17 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042968', 'tblTempVendorCDR_20' ) start [2024-12-17 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042968', 'tblTempVendorCDR_20' ) end [2024-12-17 19:32:17] Production.INFO: ProcessCDR(1,14042968,1,1,2) [2024-12-17 19:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042968', 'tblTempUsageDetail_20' ) start [2024-12-17 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042968', 'tblTempUsageDetail_20' ) end [2024-12-17 19:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:32:22] Production.INFO: ==31920== Releasing lock... [2024-12-17 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:32:22] Production.INFO: 50 MB #Memory Used# [2024-12-17 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:33:05 [end_date_ymd] => 2024-12-17 19:33:05 [RateCDR] => 1 ) [2024-12-17 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:33:05' and `end` < '2024-12-17 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:33:17] Production.INFO: count ==2981 [2024-12-17 19:33:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:33:05 - End Time 2024-12-17 19:33:05 [2024-12-17 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042973', 'tblTempUsageDetail_20' ) start [2024-12-17 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042973', 'tblTempUsageDetail_20' ) end [2024-12-17 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042973', 'tblTempVendorCDR_20' ) start [2024-12-17 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042973', 'tblTempVendorCDR_20' ) end [2024-12-17 19:33:18] Production.INFO: ProcessCDR(1,14042973,1,1,2) [2024-12-17 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042973', 'tblTempUsageDetail_20' ) start [2024-12-17 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042973', 'tblTempUsageDetail_20' ) end [2024-12-17 19:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:33:21] Production.INFO: ==31994== Releasing lock... [2024-12-17 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:33:21] Production.INFO: 50.25 MB #Memory Used# [2024-12-17 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:34:05 [end_date_ymd] => 2024-12-17 19:34:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:34:05' and `end` < '2024-12-17 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-17 19:34:18] Production.INFO: count ==2946 [2024-12-17 19:34:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:34:05 - End Time 2024-12-17 19:34:05 [2024-12-17 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042978', 'tblTempUsageDetail_20' ) start [2024-12-17 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042978', 'tblTempUsageDetail_20' ) end [2024-12-17 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042978', 'tblTempVendorCDR_20' ) start [2024-12-17 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042978', 'tblTempVendorCDR_20' ) end [2024-12-17 19:34:19] Production.INFO: ProcessCDR(1,14042978,1,1,2) [2024-12-17 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042978', 'tblTempUsageDetail_20' ) start [2024-12-17 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042978', 'tblTempUsageDetail_20' ) end [2024-12-17 19:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:34:24] Production.INFO: ==32067== Releasing lock... [2024-12-17 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:34:24] Production.INFO: 50 MB #Memory Used# [2024-12-17 19:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:35:04 [end_date_ymd] => 2024-12-17 19:35:04 [RateCDR] => 1 ) [2024-12-17 19: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 16:35:04' and `end` < '2024-12-17 19: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-17 19:35:17] Production.INFO: count ==2928 [2024-12-17 19:35:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:35:04 - End Time 2024-12-17 19:35:04 [2024-12-17 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042983', 'tblTempUsageDetail_20' ) start [2024-12-17 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042983', 'tblTempUsageDetail_20' ) end [2024-12-17 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042983', 'tblTempVendorCDR_20' ) start [2024-12-17 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042983', 'tblTempVendorCDR_20' ) end [2024-12-17 19:35:18] Production.INFO: ProcessCDR(1,14042983,1,1,2) [2024-12-17 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042983', 'tblTempUsageDetail_20' ) start [2024-12-17 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042983', 'tblTempUsageDetail_20' ) end [2024-12-17 19:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:35:21] Production.INFO: ==32138== Releasing lock... [2024-12-17 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:35:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-17 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:36:05 [end_date_ymd] => 2024-12-17 19:36:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:36:05' and `end` < '2024-12-17 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-17 19:36:17] Production.INFO: count ==2917 [2024-12-17 19:36:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:36:05 - End Time 2024-12-17 19:36:05 [2024-12-17 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042988', 'tblTempUsageDetail_20' ) start [2024-12-17 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042988', 'tblTempUsageDetail_20' ) end [2024-12-17 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042988', 'tblTempVendorCDR_20' ) start [2024-12-17 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042988', 'tblTempVendorCDR_20' ) end [2024-12-17 19:36:18] Production.INFO: ProcessCDR(1,14042988,1,1,2) [2024-12-17 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042988', 'tblTempUsageDetail_20' ) start [2024-12-17 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042988', 'tblTempUsageDetail_20' ) end [2024-12-17 19:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:36:21] Production.INFO: ==32209== Releasing lock... [2024-12-17 19:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:36:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-17 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:37:04 [end_date_ymd] => 2024-12-17 19:37:04 [RateCDR] => 1 ) [2024-12-17 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-17 16:37:04' and `end` < '2024-12-17 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-17 19:37:17] Production.INFO: count ==2909 [2024-12-17 19:37:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:37:04 - End Time 2024-12-17 19:37:04 [2024-12-17 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042993', 'tblTempUsageDetail_20' ) start [2024-12-17 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042993', 'tblTempUsageDetail_20' ) end [2024-12-17 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042993', 'tblTempVendorCDR_20' ) start [2024-12-17 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042993', 'tblTempVendorCDR_20' ) end [2024-12-17 19:37:18] Production.INFO: ProcessCDR(1,14042993,1,1,2) [2024-12-17 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042993', 'tblTempUsageDetail_20' ) start [2024-12-17 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042993', 'tblTempUsageDetail_20' ) end [2024-12-17 19:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:37:22] Production.INFO: ==32283== Releasing lock... [2024-12-17 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:37:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-17 19:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:38:04 [end_date_ymd] => 2024-12-17 19:38:04 [RateCDR] => 1 ) [2024-12-17 19:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:38:04' and `end` < '2024-12-17 19:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:38:17] Production.INFO: count ==2891 [2024-12-17 19:38:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:38:04 - End Time 2024-12-17 19:38:04 [2024-12-17 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042998', 'tblTempUsageDetail_20' ) start [2024-12-17 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14042998', 'tblTempUsageDetail_20' ) end [2024-12-17 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042998', 'tblTempVendorCDR_20' ) start [2024-12-17 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14042998', 'tblTempVendorCDR_20' ) end [2024-12-17 19:38:18] Production.INFO: ProcessCDR(1,14042998,1,1,2) [2024-12-17 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14042998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14042998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14042998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14042998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042998', 'tblTempUsageDetail_20' ) start [2024-12-17 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14042998', 'tblTempUsageDetail_20' ) end [2024-12-17 19:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:38:22] Production.INFO: ==32358== Releasing lock... [2024-12-17 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:38:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-17 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:39:04 [end_date_ymd] => 2024-12-17 19:39:04 [RateCDR] => 1 ) [2024-12-17 19:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:39:04' and `end` < '2024-12-17 19:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:39:16] Production.INFO: count ==2867 [2024-12-17 19:39:17] Production.ERROR: pbx CDR StartTime 2024-12-17 16:39:04 - End Time 2024-12-17 19:39:04 [2024-12-17 19:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043003', 'tblTempUsageDetail_20' ) start [2024-12-17 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043003', 'tblTempUsageDetail_20' ) end [2024-12-17 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043003', 'tblTempVendorCDR_20' ) start [2024-12-17 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043003', 'tblTempVendorCDR_20' ) end [2024-12-17 19:39:17] Production.INFO: ProcessCDR(1,14043003,1,1,2) [2024-12-17 19:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043003', 'tblTempUsageDetail_20' ) start [2024-12-17 19:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043003', 'tblTempUsageDetail_20' ) end [2024-12-17 19:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:39:20] Production.INFO: ==32428== Releasing lock... [2024-12-17 19:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:39:20] Production.INFO: 49.5 MB #Memory Used# [2024-12-17 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:40:05 [end_date_ymd] => 2024-12-17 19:40:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:40:05' and `end` < '2024-12-17 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-17 19:40:18] Production.INFO: count ==2857 [2024-12-17 19:40:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:40:05 - End Time 2024-12-17 19:40:05 [2024-12-17 19:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043009', 'tblTempUsageDetail_20' ) start [2024-12-17 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043009', 'tblTempUsageDetail_20' ) end [2024-12-17 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043009', 'tblTempVendorCDR_20' ) start [2024-12-17 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043009', 'tblTempVendorCDR_20' ) end [2024-12-17 19:40:19] Production.INFO: ProcessCDR(1,14043009,1,1,2) [2024-12-17 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043009', 'tblTempUsageDetail_20' ) start [2024-12-17 19:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043009', 'tblTempUsageDetail_20' ) end [2024-12-17 19:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:40:21] Production.INFO: ==32502== Releasing lock... [2024-12-17 19:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:40:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-17 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:41:05 [end_date_ymd] => 2024-12-17 19:41:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:41:05' and `end` < '2024-12-17 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-17 19:41:17] Production.INFO: count ==2763 [2024-12-17 19:41:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:41:05 - End Time 2024-12-17 19:41:05 [2024-12-17 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043014', 'tblTempUsageDetail_20' ) start [2024-12-17 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043014', 'tblTempUsageDetail_20' ) end [2024-12-17 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043014', 'tblTempVendorCDR_20' ) start [2024-12-17 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043014', 'tblTempVendorCDR_20' ) end [2024-12-17 19:41:18] Production.INFO: ProcessCDR(1,14043014,1,1,2) [2024-12-17 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043014', 'tblTempUsageDetail_20' ) start [2024-12-17 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043014', 'tblTempUsageDetail_20' ) end [2024-12-17 19:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:41:21] Production.INFO: ==32578== Releasing lock... [2024-12-17 19:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:41:21] Production.INFO: 48.75 MB #Memory Used# [2024-12-17 19:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:42:04 [end_date_ymd] => 2024-12-17 19:42:04 [RateCDR] => 1 ) [2024-12-17 19:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:42:04' and `end` < '2024-12-17 19:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:42:17] Production.INFO: count ==2742 [2024-12-17 19:42:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:42:04 - End Time 2024-12-17 19:42:04 [2024-12-17 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043019', 'tblTempUsageDetail_20' ) start [2024-12-17 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043019', 'tblTempUsageDetail_20' ) end [2024-12-17 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043019', 'tblTempVendorCDR_20' ) start [2024-12-17 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043019', 'tblTempVendorCDR_20' ) end [2024-12-17 19:42:18] Production.INFO: ProcessCDR(1,14043019,1,1,2) [2024-12-17 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043019', 'tblTempUsageDetail_20' ) start [2024-12-17 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043019', 'tblTempUsageDetail_20' ) end [2024-12-17 19:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:42:21] Production.INFO: ==32649== Releasing lock... [2024-12-17 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:42:21] Production.INFO: 48.5 MB #Memory Used# [2024-12-17 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:43:05 [end_date_ymd] => 2024-12-17 19:43:05 [RateCDR] => 1 ) [2024-12-17 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:43:05' and `end` < '2024-12-17 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:43:17] Production.INFO: count ==2725 [2024-12-17 19:43:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:43:05 - End Time 2024-12-17 19:43:05 [2024-12-17 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043024', 'tblTempUsageDetail_20' ) start [2024-12-17 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043024', 'tblTempUsageDetail_20' ) end [2024-12-17 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043024', 'tblTempVendorCDR_20' ) start [2024-12-17 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043024', 'tblTempVendorCDR_20' ) end [2024-12-17 19:43:18] Production.INFO: ProcessCDR(1,14043024,1,1,2) [2024-12-17 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043024', 'tblTempUsageDetail_20' ) start [2024-12-17 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043024', 'tblTempUsageDetail_20' ) end [2024-12-17 19:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:43:21] Production.INFO: ==32719== Releasing lock... [2024-12-17 19:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:43:21] Production.INFO: 48.5 MB #Memory Used# [2024-12-17 19:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:44:04 [end_date_ymd] => 2024-12-17 19:44:04 [RateCDR] => 1 ) [2024-12-17 19: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 16:44:04' and `end` < '2024-12-17 19: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-17 19:44:18] Production.INFO: count ==2710 [2024-12-17 19:44:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:44:04 - End Time 2024-12-17 19:44:04 [2024-12-17 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043029', 'tblTempUsageDetail_20' ) start [2024-12-17 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043029', 'tblTempUsageDetail_20' ) end [2024-12-17 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043029', 'tblTempVendorCDR_20' ) start [2024-12-17 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043029', 'tblTempVendorCDR_20' ) end [2024-12-17 19:44:18] Production.INFO: ProcessCDR(1,14043029,1,1,2) [2024-12-17 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043029', 'tblTempUsageDetail_20' ) start [2024-12-17 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043029', 'tblTempUsageDetail_20' ) end [2024-12-17 19:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:44:23] Production.INFO: ==330== Releasing lock... [2024-12-17 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:44:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-17 19:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:45:04 [end_date_ymd] => 2024-12-17 19:45:04 [RateCDR] => 1 ) [2024-12-17 19:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:45:04' and `end` < '2024-12-17 19:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:45:17] Production.INFO: count ==2713 [2024-12-17 19:45:17] Production.ERROR: pbx CDR StartTime 2024-12-17 16:45:04 - End Time 2024-12-17 19:45:04 [2024-12-17 19:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043034', 'tblTempUsageDetail_20' ) start [2024-12-17 19:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043034', 'tblTempUsageDetail_20' ) end [2024-12-17 19:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043034', 'tblTempVendorCDR_20' ) start [2024-12-17 19:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043034', 'tblTempVendorCDR_20' ) end [2024-12-17 19:45:17] Production.INFO: ProcessCDR(1,14043034,1,1,2) [2024-12-17 19:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043034', 'tblTempUsageDetail_20' ) start [2024-12-17 19:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043034', 'tblTempUsageDetail_20' ) end [2024-12-17 19:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:45:20] Production.INFO: ==418== Releasing lock... [2024-12-17 19:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:45:20] Production.INFO: 48.5 MB #Memory Used# [2024-12-17 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:46:05 [end_date_ymd] => 2024-12-17 19:46:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:46:05' and `end` < '2024-12-17 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-17 19:46:17] Production.INFO: count ==2714 [2024-12-17 19:46:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:46:05 - End Time 2024-12-17 19:46:05 [2024-12-17 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043039', 'tblTempUsageDetail_20' ) start [2024-12-17 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043039', 'tblTempUsageDetail_20' ) end [2024-12-17 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043039', 'tblTempVendorCDR_20' ) start [2024-12-17 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043039', 'tblTempVendorCDR_20' ) end [2024-12-17 19:46:18] Production.INFO: ProcessCDR(1,14043039,1,1,2) [2024-12-17 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043039', 'tblTempUsageDetail_20' ) start [2024-12-17 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043039', 'tblTempUsageDetail_20' ) end [2024-12-17 19:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:46:23] Production.INFO: ==490== Releasing lock... [2024-12-17 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:46:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-17 19:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:47:04 [end_date_ymd] => 2024-12-17 19:47:04 [RateCDR] => 1 ) [2024-12-17 19:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:47:04' and `end` < '2024-12-17 19:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:47:17] Production.INFO: count ==2694 [2024-12-17 19:47:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:47:04 - End Time 2024-12-17 19:47:04 [2024-12-17 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043044', 'tblTempUsageDetail_20' ) start [2024-12-17 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043044', 'tblTempUsageDetail_20' ) end [2024-12-17 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043044', 'tblTempVendorCDR_20' ) start [2024-12-17 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043044', 'tblTempVendorCDR_20' ) end [2024-12-17 19:47:18] Production.INFO: ProcessCDR(1,14043044,1,1,2) [2024-12-17 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043044', 'tblTempUsageDetail_20' ) start [2024-12-17 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043044', 'tblTempUsageDetail_20' ) end [2024-12-17 19:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:47:22] Production.INFO: ==606== Releasing lock... [2024-12-17 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:47:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-17 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:48:04 [end_date_ymd] => 2024-12-17 19:48:04 [RateCDR] => 1 ) [2024-12-17 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-17 16:48:04' and `end` < '2024-12-17 19: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-17 19:48:17] Production.INFO: count ==2685 [2024-12-17 19:48:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:48:04 - End Time 2024-12-17 19:48:04 [2024-12-17 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043049', 'tblTempUsageDetail_20' ) start [2024-12-17 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043049', 'tblTempUsageDetail_20' ) end [2024-12-17 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043049', 'tblTempVendorCDR_20' ) start [2024-12-17 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043049', 'tblTempVendorCDR_20' ) end [2024-12-17 19:48:18] Production.INFO: ProcessCDR(1,14043049,1,1,2) [2024-12-17 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043049', 'tblTempUsageDetail_20' ) start [2024-12-17 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043049', 'tblTempUsageDetail_20' ) end [2024-12-17 19:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:48:21] Production.INFO: ==714== Releasing lock... [2024-12-17 19:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:48:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-17 19:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:49:04 [end_date_ymd] => 2024-12-17 19:49:04 [RateCDR] => 1 ) [2024-12-17 19: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 16:49:04' and `end` < '2024-12-17 19: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-17 19:49:16] Production.INFO: count ==2676 [2024-12-17 19:49:17] Production.ERROR: pbx CDR StartTime 2024-12-17 16:49:04 - End Time 2024-12-17 19:49:04 [2024-12-17 19:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043054', 'tblTempUsageDetail_20' ) start [2024-12-17 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043054', 'tblTempUsageDetail_20' ) end [2024-12-17 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043054', 'tblTempVendorCDR_20' ) start [2024-12-17 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043054', 'tblTempVendorCDR_20' ) end [2024-12-17 19:49:17] Production.INFO: ProcessCDR(1,14043054,1,1,2) [2024-12-17 19:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043054', 'tblTempUsageDetail_20' ) start [2024-12-17 19:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043054', 'tblTempUsageDetail_20' ) end [2024-12-17 19:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:49:20] Production.INFO: ==792== Releasing lock... [2024-12-17 19:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:49:20] Production.INFO: 48.25 MB #Memory Used# [2024-12-17 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:50:05 [end_date_ymd] => 2024-12-17 19:50:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:50:05' and `end` < '2024-12-17 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-17 19:50:18] Production.INFO: count ==2647 [2024-12-17 19:50:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:50:05 - End Time 2024-12-17 19:50:05 [2024-12-17 19:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043060', 'tblTempUsageDetail_20' ) start [2024-12-17 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043060', 'tblTempUsageDetail_20' ) end [2024-12-17 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043060', 'tblTempVendorCDR_20' ) start [2024-12-17 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043060', 'tblTempVendorCDR_20' ) end [2024-12-17 19:50:18] Production.INFO: ProcessCDR(1,14043060,1,1,2) [2024-12-17 19:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043060', 'tblTempUsageDetail_20' ) start [2024-12-17 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043060', 'tblTempUsageDetail_20' ) end [2024-12-17 19:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:50:23] Production.INFO: ==868== Releasing lock... [2024-12-17 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:50:23] Production.INFO: 48 MB #Memory Used# [2024-12-17 19:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:51:04 [end_date_ymd] => 2024-12-17 19:51:04 [RateCDR] => 1 ) [2024-12-17 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-17 16:51:04' and `end` < '2024-12-17 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-17 19:51:18] Production.INFO: count ==2549 [2024-12-17 19:51:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:51:04 - End Time 2024-12-17 19:51:04 [2024-12-17 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043065', 'tblTempUsageDetail_20' ) start [2024-12-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043065', 'tblTempUsageDetail_20' ) end [2024-12-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043065', 'tblTempVendorCDR_20' ) start [2024-12-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043065', 'tblTempVendorCDR_20' ) end [2024-12-17 19:51:19] Production.INFO: ProcessCDR(1,14043065,1,1,2) [2024-12-17 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043065', 'tblTempUsageDetail_20' ) start [2024-12-17 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043065', 'tblTempUsageDetail_20' ) end [2024-12-17 19:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:51:23] Production.INFO: ==944== Releasing lock... [2024-12-17 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:51:23] Production.INFO: 47.25 MB #Memory Used# [2024-12-17 19:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:52:04 [end_date_ymd] => 2024-12-17 19:52:04 [RateCDR] => 1 ) [2024-12-17 19: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 16:52:04' and `end` < '2024-12-17 19: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-17 19:52:17] Production.INFO: count ==2517 [2024-12-17 19:52:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:52:04 - End Time 2024-12-17 19:52:04 [2024-12-17 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043070', 'tblTempUsageDetail_20' ) start [2024-12-17 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043070', 'tblTempUsageDetail_20' ) end [2024-12-17 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043070', 'tblTempVendorCDR_20' ) start [2024-12-17 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043070', 'tblTempVendorCDR_20' ) end [2024-12-17 19:52:18] Production.INFO: ProcessCDR(1,14043070,1,1,2) [2024-12-17 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043070', 'tblTempUsageDetail_20' ) start [2024-12-17 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043070', 'tblTempUsageDetail_20' ) end [2024-12-17 19:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:52:21] Production.INFO: ==1017== Releasing lock... [2024-12-17 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:52:21] Production.INFO: 47 MB #Memory Used# [2024-12-17 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:53:04 [end_date_ymd] => 2024-12-17 19:53:04 [RateCDR] => 1 ) [2024-12-17 19: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-17 16:53:04' and `end` < '2024-12-17 19: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-17 19:53:17] Production.INFO: count ==2495 [2024-12-17 19:53:17] Production.ERROR: pbx CDR StartTime 2024-12-17 16:53:04 - End Time 2024-12-17 19:53:04 [2024-12-17 19:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043075', 'tblTempUsageDetail_20' ) start [2024-12-17 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043075', 'tblTempUsageDetail_20' ) end [2024-12-17 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043075', 'tblTempVendorCDR_20' ) start [2024-12-17 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043075', 'tblTempVendorCDR_20' ) end [2024-12-17 19:53:18] Production.INFO: ProcessCDR(1,14043075,1,1,2) [2024-12-17 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043075', 'tblTempUsageDetail_20' ) start [2024-12-17 19:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043075', 'tblTempUsageDetail_20' ) end [2024-12-17 19:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:53:20] Production.INFO: ==1092== Releasing lock... [2024-12-17 19:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:53:20] Production.INFO: 47 MB #Memory Used# [2024-12-17 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:54:04 [end_date_ymd] => 2024-12-17 19:54:04 [RateCDR] => 1 ) [2024-12-17 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-17 16:54:04' and `end` < '2024-12-17 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-17 19:54:16] Production.INFO: count ==2482 [2024-12-17 19:54:17] Production.ERROR: pbx CDR StartTime 2024-12-17 16:54:04 - End Time 2024-12-17 19:54:04 [2024-12-17 19:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043080', 'tblTempUsageDetail_20' ) start [2024-12-17 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043080', 'tblTempUsageDetail_20' ) end [2024-12-17 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043080', 'tblTempVendorCDR_20' ) start [2024-12-17 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043080', 'tblTempVendorCDR_20' ) end [2024-12-17 19:54:17] Production.INFO: ProcessCDR(1,14043080,1,1,2) [2024-12-17 19:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043080', 'tblTempUsageDetail_20' ) start [2024-12-17 19:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043080', 'tblTempUsageDetail_20' ) end [2024-12-17 19:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:54:20] Production.INFO: ==1175== Releasing lock... [2024-12-17 19:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:54:20] Production.INFO: 46.75 MB #Memory Used# [2024-12-17 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:55:05 [end_date_ymd] => 2024-12-17 19:55:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:55:05' and `end` < '2024-12-17 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-17 19:55:18] Production.INFO: count ==2466 [2024-12-17 19:55:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:55:05 - End Time 2024-12-17 19:55:05 [2024-12-17 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043085', 'tblTempUsageDetail_20' ) start [2024-12-17 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043085', 'tblTempUsageDetail_20' ) end [2024-12-17 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043085', 'tblTempVendorCDR_20' ) start [2024-12-17 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043085', 'tblTempVendorCDR_20' ) end [2024-12-17 19:55:19] Production.INFO: ProcessCDR(1,14043085,1,1,2) [2024-12-17 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043085', 'tblTempUsageDetail_20' ) start [2024-12-17 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043085', 'tblTempUsageDetail_20' ) end [2024-12-17 19:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:55:23] Production.INFO: ==1260== Releasing lock... [2024-12-17 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:55:23] Production.INFO: 46.5 MB #Memory Used# [2024-12-17 19:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:56:04 [end_date_ymd] => 2024-12-17 19:56:04 [RateCDR] => 1 ) [2024-12-17 19: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 16:56:04' and `end` < '2024-12-17 19: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-17 19:56:18] Production.INFO: count ==2445 [2024-12-17 19:56:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:56:04 - End Time 2024-12-17 19:56:04 [2024-12-17 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043090', 'tblTempUsageDetail_20' ) start [2024-12-17 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043090', 'tblTempUsageDetail_20' ) end [2024-12-17 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043090', 'tblTempVendorCDR_20' ) start [2024-12-17 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043090', 'tblTempVendorCDR_20' ) end [2024-12-17 19:56:19] Production.INFO: ProcessCDR(1,14043090,1,1,2) [2024-12-17 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043090', 'tblTempUsageDetail_20' ) start [2024-12-17 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043090', 'tblTempUsageDetail_20' ) end [2024-12-17 19:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:56:22] Production.INFO: ==1334== Releasing lock... [2024-12-17 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:56:22] Production.INFO: 46.5 MB #Memory Used# [2024-12-17 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:57:05 [end_date_ymd] => 2024-12-17 19:57:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:57:05' and `end` < '2024-12-17 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-17 19:57:17] Production.INFO: count ==2421 [2024-12-17 19:57:18] Production.ERROR: pbx CDR StartTime 2024-12-17 16:57:05 - End Time 2024-12-17 19:57:05 [2024-12-17 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043095', 'tblTempUsageDetail_20' ) start [2024-12-17 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043095', 'tblTempUsageDetail_20' ) end [2024-12-17 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043095', 'tblTempVendorCDR_20' ) start [2024-12-17 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043095', 'tblTempVendorCDR_20' ) end [2024-12-17 19:57:18] Production.INFO: ProcessCDR(1,14043095,1,1,2) [2024-12-17 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043095', 'tblTempUsageDetail_20' ) start [2024-12-17 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043095', 'tblTempUsageDetail_20' ) end [2024-12-17 19:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:57:21] Production.INFO: ==1407== Releasing lock... [2024-12-17 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:57:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-17 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:58:05 [end_date_ymd] => 2024-12-17 19:58:05 [RateCDR] => 1 ) [2024-12-17 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-17 16:58:05' and `end` < '2024-12-17 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-17 19:58:18] Production.INFO: count ==2417 [2024-12-17 19:58:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:58:05 - End Time 2024-12-17 19:58:05 [2024-12-17 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043100', 'tblTempUsageDetail_20' ) start [2024-12-17 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043100', 'tblTempUsageDetail_20' ) end [2024-12-17 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043100', 'tblTempVendorCDR_20' ) start [2024-12-17 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043100', 'tblTempVendorCDR_20' ) end [2024-12-17 19:58:19] Production.INFO: ProcessCDR(1,14043100,1,1,2) [2024-12-17 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043100', 'tblTempUsageDetail_20' ) start [2024-12-17 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043100', 'tblTempUsageDetail_20' ) end [2024-12-17 19:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:58:22] Production.INFO: ==1484== Releasing lock... [2024-12-17 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:58:22] Production.INFO: 46.5 MB #Memory Used# [2024-12-17 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 16:59:05 [end_date_ymd] => 2024-12-17 19:59:05 [RateCDR] => 1 ) [2024-12-17 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 16:59:05' and `end` < '2024-12-17 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 19:59:17] Production.INFO: count ==2401 [2024-12-17 19:59:19] Production.ERROR: pbx CDR StartTime 2024-12-17 16:59:05 - End Time 2024-12-17 19:59:05 [2024-12-17 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043105', 'tblTempUsageDetail_20' ) start [2024-12-17 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043105', 'tblTempUsageDetail_20' ) end [2024-12-17 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043105', 'tblTempVendorCDR_20' ) start [2024-12-17 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043105', 'tblTempVendorCDR_20' ) end [2024-12-17 19:59:19] Production.INFO: ProcessCDR(1,14043105,1,1,2) [2024-12-17 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043105', 'tblTempUsageDetail_20' ) start [2024-12-17 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043105', 'tblTempUsageDetail_20' ) end [2024-12-17 19:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 19:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 19:59:23] Production.INFO: ==1596== Releasing lock... [2024-12-17 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 19:59:23] Production.INFO: 46 MB #Memory Used# [2024-12-17 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:00:05 [end_date_ymd] => 2024-12-17 20:00:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:00:05' and `end` < '2024-12-17 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-17 20:00:18] Production.INFO: count ==2402 [2024-12-17 20:00:19] Production.ERROR: pbx CDR StartTime 2024-12-17 17:00:05 - End Time 2024-12-17 20:00:05 [2024-12-17 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043111', 'tblTempUsageDetail_20' ) start [2024-12-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043111', 'tblTempUsageDetail_20' ) end [2024-12-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043111', 'tblTempVendorCDR_20' ) start [2024-12-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043111', 'tblTempVendorCDR_20' ) end [2024-12-17 20:00:19] Production.INFO: ProcessCDR(1,14043111,1,1,2) [2024-12-17 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043111', 'tblTempUsageDetail_20' ) start [2024-12-17 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043111', 'tblTempUsageDetail_20' ) end [2024-12-17 20:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:00:23] Production.INFO: ==1675== Releasing lock... [2024-12-17 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:00:23] Production.INFO: 46 MB #Memory Used# [2024-12-17 20:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:01:04 [end_date_ymd] => 2024-12-17 20:01:04 [RateCDR] => 1 ) [2024-12-17 20: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 17:01:04' and `end` < '2024-12-17 20: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-17 20:01:17] Production.INFO: count ==2350 [2024-12-17 20:01:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:01:04 - End Time 2024-12-17 20:01:04 [2024-12-17 20:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043116', 'tblTempUsageDetail_20' ) start [2024-12-17 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043116', 'tblTempUsageDetail_20' ) end [2024-12-17 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043116', 'tblTempVendorCDR_20' ) start [2024-12-17 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043116', 'tblTempVendorCDR_20' ) end [2024-12-17 20:01:18] Production.INFO: ProcessCDR(1,14043116,1,1,2) [2024-12-17 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043116', 'tblTempUsageDetail_20' ) start [2024-12-17 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043116', 'tblTempUsageDetail_20' ) end [2024-12-17 20:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:01:22] Production.INFO: ==1804== Releasing lock... [2024-12-17 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:01:22] Production.INFO: 46 MB #Memory Used# [2024-12-17 20:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:02:04 [end_date_ymd] => 2024-12-17 20:02:04 [RateCDR] => 1 ) [2024-12-17 20: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 17:02:04' and `end` < '2024-12-17 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-17 20:02:18] Production.INFO: count ==2340 [2024-12-17 20:02:19] Production.ERROR: pbx CDR StartTime 2024-12-17 17:02:04 - End Time 2024-12-17 20:02:04 [2024-12-17 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043121', 'tblTempUsageDetail_20' ) start [2024-12-17 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043121', 'tblTempUsageDetail_20' ) end [2024-12-17 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043121', 'tblTempVendorCDR_20' ) start [2024-12-17 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043121', 'tblTempVendorCDR_20' ) end [2024-12-17 20:02:19] Production.INFO: ProcessCDR(1,14043121,1,1,2) [2024-12-17 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043121', 'tblTempUsageDetail_20' ) start [2024-12-17 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043121', 'tblTempUsageDetail_20' ) end [2024-12-17 20:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:02:22] Production.INFO: ==1883== Releasing lock... [2024-12-17 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:02:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-17 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:03:04 [end_date_ymd] => 2024-12-17 20:03:04 [RateCDR] => 1 ) [2024-12-17 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-17 17:03:04' and `end` < '2024-12-17 20:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:03:17] Production.INFO: count ==2330 [2024-12-17 20:03:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:03:04 - End Time 2024-12-17 20:03:04 [2024-12-17 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043126', 'tblTempUsageDetail_20' ) start [2024-12-17 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043126', 'tblTempUsageDetail_20' ) end [2024-12-17 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043126', 'tblTempVendorCDR_20' ) start [2024-12-17 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043126', 'tblTempVendorCDR_20' ) end [2024-12-17 20:03:18] Production.INFO: ProcessCDR(1,14043126,1,1,2) [2024-12-17 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043126', 'tblTempUsageDetail_20' ) start [2024-12-17 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043126', 'tblTempUsageDetail_20' ) end [2024-12-17 20:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:03:22] Production.INFO: ==2003== Releasing lock... [2024-12-17 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:03:22] Production.INFO: 46 MB #Memory Used# [2024-12-17 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:04:05 [end_date_ymd] => 2024-12-17 20:04:05 [RateCDR] => 1 ) [2024-12-17 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:04:05' and `end` < '2024-12-17 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:04:19] Production.INFO: count ==2330 [2024-12-17 20:04:19] Production.ERROR: pbx CDR StartTime 2024-12-17 17:04:05 - End Time 2024-12-17 20:04:05 [2024-12-17 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043131', 'tblTempUsageDetail_20' ) start [2024-12-17 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043131', 'tblTempUsageDetail_20' ) end [2024-12-17 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043131', 'tblTempVendorCDR_20' ) start [2024-12-17 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043131', 'tblTempVendorCDR_20' ) end [2024-12-17 20:04:19] Production.INFO: ProcessCDR(1,14043131,1,1,2) [2024-12-17 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043131', 'tblTempUsageDetail_20' ) start [2024-12-17 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043131', 'tblTempUsageDetail_20' ) end [2024-12-17 20:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:04:24] Production.INFO: ==2078== Releasing lock... [2024-12-17 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:04:24] Production.INFO: 45.75 MB #Memory Used# [2024-12-17 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:05:05 [end_date_ymd] => 2024-12-17 20:05:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:05:05' and `end` < '2024-12-17 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-17 20:05:17] Production.INFO: count ==2327 [2024-12-17 20:05:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:05:05 - End Time 2024-12-17 20:05:05 [2024-12-17 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043136', 'tblTempUsageDetail_20' ) start [2024-12-17 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043136', 'tblTempUsageDetail_20' ) end [2024-12-17 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043136', 'tblTempVendorCDR_20' ) start [2024-12-17 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043136', 'tblTempVendorCDR_20' ) end [2024-12-17 20:05:18] Production.INFO: ProcessCDR(1,14043136,1,1,2) [2024-12-17 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043136', 'tblTempUsageDetail_20' ) start [2024-12-17 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043136', 'tblTempUsageDetail_20' ) end [2024-12-17 20:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:05:21] Production.INFO: ==2154== Releasing lock... [2024-12-17 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:05:21] Production.INFO: 46 MB #Memory Used# [2024-12-17 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:06:05 [end_date_ymd] => 2024-12-17 20:06:05 [RateCDR] => 1 ) [2024-12-17 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:06:05' and `end` < '2024-12-17 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:06:18] Production.INFO: count ==2322 [2024-12-17 20:06:19] Production.ERROR: pbx CDR StartTime 2024-12-17 17:06:05 - End Time 2024-12-17 20:06:05 [2024-12-17 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043141', 'tblTempUsageDetail_20' ) start [2024-12-17 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043141', 'tblTempUsageDetail_20' ) end [2024-12-17 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043141', 'tblTempVendorCDR_20' ) start [2024-12-17 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043141', 'tblTempVendorCDR_20' ) end [2024-12-17 20:06:19] Production.INFO: ProcessCDR(1,14043141,1,1,2) [2024-12-17 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043141', 'tblTempUsageDetail_20' ) start [2024-12-17 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043141', 'tblTempUsageDetail_20' ) end [2024-12-17 20:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:06:22] Production.INFO: ==2231== Releasing lock... [2024-12-17 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:06:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-17 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:07:05 [end_date_ymd] => 2024-12-17 20:07:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:07:05' and `end` < '2024-12-17 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-17 20:07:17] Production.INFO: count ==2315 [2024-12-17 20:07:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:07:05 - End Time 2024-12-17 20:07:05 [2024-12-17 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043146', 'tblTempUsageDetail_20' ) start [2024-12-17 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043146', 'tblTempUsageDetail_20' ) end [2024-12-17 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043146', 'tblTempVendorCDR_20' ) start [2024-12-17 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043146', 'tblTempVendorCDR_20' ) end [2024-12-17 20:07:18] Production.INFO: ProcessCDR(1,14043146,1,1,2) [2024-12-17 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043146', 'tblTempUsageDetail_20' ) start [2024-12-17 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043146', 'tblTempUsageDetail_20' ) end [2024-12-17 20:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:07:22] Production.INFO: ==2303== Releasing lock... [2024-12-17 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:07:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-17 20:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:08:04 [end_date_ymd] => 2024-12-17 20:08:04 [RateCDR] => 1 ) [2024-12-17 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-17 17:08:04' and `end` < '2024-12-17 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-17 20:08:17] Production.INFO: count ==2289 [2024-12-17 20:08:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:08:04 - End Time 2024-12-17 20:08:04 [2024-12-17 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043151', 'tblTempUsageDetail_20' ) start [2024-12-17 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043151', 'tblTempUsageDetail_20' ) end [2024-12-17 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043151', 'tblTempVendorCDR_20' ) start [2024-12-17 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043151', 'tblTempVendorCDR_20' ) end [2024-12-17 20:08:18] Production.INFO: ProcessCDR(1,14043151,1,1,2) [2024-12-17 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043151', 'tblTempUsageDetail_20' ) start [2024-12-17 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043151', 'tblTempUsageDetail_20' ) end [2024-12-17 20:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:08:22] Production.INFO: ==2374== Releasing lock... [2024-12-17 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:08:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-17 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:09:05 [end_date_ymd] => 2024-12-17 20:09:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:09:05' and `end` < '2024-12-17 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-17 20:09:17] Production.INFO: count ==2268 [2024-12-17 20:09:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:09:05 - End Time 2024-12-17 20:09:05 [2024-12-17 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043156', 'tblTempUsageDetail_20' ) start [2024-12-17 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043156', 'tblTempUsageDetail_20' ) end [2024-12-17 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043156', 'tblTempVendorCDR_20' ) start [2024-12-17 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043156', 'tblTempVendorCDR_20' ) end [2024-12-17 20:09:18] Production.INFO: ProcessCDR(1,14043156,1,1,2) [2024-12-17 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043156', 'tblTempUsageDetail_20' ) start [2024-12-17 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043156', 'tblTempUsageDetail_20' ) end [2024-12-17 20:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:09:21] Production.INFO: ==2451== Releasing lock... [2024-12-17 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:09:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-17 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:10:05 [end_date_ymd] => 2024-12-17 20:10:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:10:05' and `end` < '2024-12-17 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-17 20:10:17] Production.INFO: count ==2265 [2024-12-17 20:10:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:10:05 - End Time 2024-12-17 20:10:05 [2024-12-17 20:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043162', 'tblTempUsageDetail_20' ) start [2024-12-17 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043162', 'tblTempUsageDetail_20' ) end [2024-12-17 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043162', 'tblTempVendorCDR_20' ) start [2024-12-17 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043162', 'tblTempVendorCDR_20' ) end [2024-12-17 20:10:18] Production.INFO: ProcessCDR(1,14043162,1,1,2) [2024-12-17 20:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043162', 'tblTempUsageDetail_20' ) start [2024-12-17 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043162', 'tblTempUsageDetail_20' ) end [2024-12-17 20:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:10:22] Production.INFO: ==2526== Releasing lock... [2024-12-17 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:10:22] Production.INFO: 45 MB #Memory Used# [2024-12-17 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:11:05 [end_date_ymd] => 2024-12-17 20:11:05 [RateCDR] => 1 ) [2024-12-17 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:11:05' and `end` < '2024-12-17 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:11:19] Production.INFO: count ==2230 [2024-12-17 20:11:19] Production.ERROR: pbx CDR StartTime 2024-12-17 17:11:05 - End Time 2024-12-17 20:11:05 [2024-12-17 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043167', 'tblTempUsageDetail_20' ) start [2024-12-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043167', 'tblTempUsageDetail_20' ) end [2024-12-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043167', 'tblTempVendorCDR_20' ) start [2024-12-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043167', 'tblTempVendorCDR_20' ) end [2024-12-17 20:11:19] Production.INFO: ProcessCDR(1,14043167,1,1,2) [2024-12-17 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043167', 'tblTempUsageDetail_20' ) start [2024-12-17 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043167', 'tblTempUsageDetail_20' ) end [2024-12-17 20:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:11:22] Production.INFO: ==2605== Releasing lock... [2024-12-17 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:11:22] Production.INFO: 45 MB #Memory Used# [2024-12-17 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:12:05 [end_date_ymd] => 2024-12-17 20:12:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:12:05' and `end` < '2024-12-17 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-17 20:12:19] Production.INFO: count ==2230 [2024-12-17 20:12:19] Production.ERROR: pbx CDR StartTime 2024-12-17 17:12:05 - End Time 2024-12-17 20:12:05 [2024-12-17 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043172', 'tblTempUsageDetail_20' ) start [2024-12-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043172', 'tblTempUsageDetail_20' ) end [2024-12-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043172', 'tblTempVendorCDR_20' ) start [2024-12-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043172', 'tblTempVendorCDR_20' ) end [2024-12-17 20:12:19] Production.INFO: ProcessCDR(1,14043172,1,1,2) [2024-12-17 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043172', 'tblTempUsageDetail_20' ) start [2024-12-17 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043172', 'tblTempUsageDetail_20' ) end [2024-12-17 20:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:12:24] Production.INFO: ==2680== Releasing lock... [2024-12-17 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:12:24] Production.INFO: 45 MB #Memory Used# [2024-12-17 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:13:05 [end_date_ymd] => 2024-12-17 20:13:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:13:05' and `end` < '2024-12-17 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-17 20:13:17] Production.INFO: count ==2223 [2024-12-17 20:13:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:13:05 - End Time 2024-12-17 20:13:05 [2024-12-17 20:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043177', 'tblTempUsageDetail_20' ) start [2024-12-17 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043177', 'tblTempUsageDetail_20' ) end [2024-12-17 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043177', 'tblTempVendorCDR_20' ) start [2024-12-17 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043177', 'tblTempVendorCDR_20' ) end [2024-12-17 20:13:18] Production.INFO: ProcessCDR(1,14043177,1,1,2) [2024-12-17 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043177', 'tblTempUsageDetail_20' ) start [2024-12-17 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043177', 'tblTempUsageDetail_20' ) end [2024-12-17 20:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:13:21] Production.INFO: ==2759== Releasing lock... [2024-12-17 20:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:13:21] Production.INFO: 45 MB #Memory Used# [2024-12-17 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:14:05 [end_date_ymd] => 2024-12-17 20:14:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:14:05' and `end` < '2024-12-17 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-17 20:14:18] Production.INFO: count ==2167 [2024-12-17 20:14:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:14:05 - End Time 2024-12-17 20:14:05 [2024-12-17 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043182', 'tblTempUsageDetail_20' ) start [2024-12-17 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043182', 'tblTempUsageDetail_20' ) end [2024-12-17 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043182', 'tblTempVendorCDR_20' ) start [2024-12-17 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043182', 'tblTempVendorCDR_20' ) end [2024-12-17 20:14:19] Production.INFO: ProcessCDR(1,14043182,1,1,2) [2024-12-17 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043182', 'tblTempUsageDetail_20' ) start [2024-12-17 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043182', 'tblTempUsageDetail_20' ) end [2024-12-17 20:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:14:22] Production.INFO: ==2833== Releasing lock... [2024-12-17 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:14:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-17 20:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:15:04 [end_date_ymd] => 2024-12-17 20:15:04 [RateCDR] => 1 ) [2024-12-17 20: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-17 17:15:04' and `end` < '2024-12-17 20: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-17 20:15:17] Production.INFO: count ==2103 [2024-12-17 20:15:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:15:04 - End Time 2024-12-17 20:15:04 [2024-12-17 20:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043187', 'tblTempUsageDetail_20' ) start [2024-12-17 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043187', 'tblTempUsageDetail_20' ) end [2024-12-17 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043187', 'tblTempVendorCDR_20' ) start [2024-12-17 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043187', 'tblTempVendorCDR_20' ) end [2024-12-17 20:15:17] Production.INFO: ProcessCDR(1,14043187,1,1,2) [2024-12-17 20:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043187', 'tblTempUsageDetail_20' ) start [2024-12-17 20:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043187', 'tblTempUsageDetail_20' ) end [2024-12-17 20:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:15:20] Production.INFO: ==2906== Releasing lock... [2024-12-17 20:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:15:20] Production.INFO: 44 MB #Memory Used# [2024-12-17 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:16:05 [end_date_ymd] => 2024-12-17 20:16:05 [RateCDR] => 1 ) [2024-12-17 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:16:05' and `end` < '2024-12-17 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:16:17] Production.INFO: count ==2147 [2024-12-17 20:16:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:16:05 - End Time 2024-12-17 20:16:05 [2024-12-17 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043192', 'tblTempUsageDetail_20' ) start [2024-12-17 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043192', 'tblTempUsageDetail_20' ) end [2024-12-17 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043192', 'tblTempVendorCDR_20' ) start [2024-12-17 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043192', 'tblTempVendorCDR_20' ) end [2024-12-17 20:16:18] Production.INFO: ProcessCDR(1,14043192,1,1,2) [2024-12-17 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043192', 'tblTempUsageDetail_20' ) start [2024-12-17 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043192', 'tblTempUsageDetail_20' ) end [2024-12-17 20:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:16:21] Production.INFO: ==2982== Releasing lock... [2024-12-17 20:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:16:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-17 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:17:05 [end_date_ymd] => 2024-12-17 20:17:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:17:05' and `end` < '2024-12-17 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-17 20:17:17] Production.INFO: count ==2147 [2024-12-17 20:17:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:17:05 - End Time 2024-12-17 20:17:05 [2024-12-17 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043197', 'tblTempUsageDetail_20' ) start [2024-12-17 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043197', 'tblTempUsageDetail_20' ) end [2024-12-17 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043197', 'tblTempVendorCDR_20' ) start [2024-12-17 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043197', 'tblTempVendorCDR_20' ) end [2024-12-17 20:17:18] Production.INFO: ProcessCDR(1,14043197,1,1,2) [2024-12-17 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043197', 'tblTempUsageDetail_20' ) start [2024-12-17 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043197', 'tblTempUsageDetail_20' ) end [2024-12-17 20:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:17:23] Production.INFO: ==3073== Releasing lock... [2024-12-17 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:17:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-17 20:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:18:04 [end_date_ymd] => 2024-12-17 20:18:04 [RateCDR] => 1 ) [2024-12-17 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-17 17:18:04' and `end` < '2024-12-17 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-17 20:18:17] Production.INFO: count ==2143 [2024-12-17 20:18:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:18:04 - End Time 2024-12-17 20:18:04 [2024-12-17 20:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043202', 'tblTempUsageDetail_20' ) start [2024-12-17 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043202', 'tblTempUsageDetail_20' ) end [2024-12-17 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043202', 'tblTempVendorCDR_20' ) start [2024-12-17 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043202', 'tblTempVendorCDR_20' ) end [2024-12-17 20:18:17] Production.INFO: ProcessCDR(1,14043202,1,1,2) [2024-12-17 20:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043202', 'tblTempUsageDetail_20' ) start [2024-12-17 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043202', 'tblTempUsageDetail_20' ) end [2024-12-17 20:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:18:22] Production.INFO: ==3189== Releasing lock... [2024-12-17 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:18:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-17 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:19:05 [end_date_ymd] => 2024-12-17 20:19:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:19:05' and `end` < '2024-12-17 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-17 20:19:19] Production.INFO: count ==2144 [2024-12-17 20:19:20] Production.ERROR: pbx CDR StartTime 2024-12-17 17:19:05 - End Time 2024-12-17 20:19:05 [2024-12-17 20:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043207', 'tblTempUsageDetail_20' ) start [2024-12-17 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043207', 'tblTempUsageDetail_20' ) end [2024-12-17 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043207', 'tblTempVendorCDR_20' ) start [2024-12-17 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043207', 'tblTempVendorCDR_20' ) end [2024-12-17 20:19:20] Production.INFO: ProcessCDR(1,14043207,1,1,2) [2024-12-17 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043207', 'tblTempUsageDetail_20' ) start [2024-12-17 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043207', 'tblTempUsageDetail_20' ) end [2024-12-17 20:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:19:23] Production.INFO: ==3266== Releasing lock... [2024-12-17 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:19:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-17 20:20:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:20:04 [end_date_ymd] => 2024-12-17 20:20:04 [RateCDR] => 1 ) [2024-12-17 20:20:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and 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 17:20:04' and `end` < '2024-12-17 20: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-17 20:20:18] Production.INFO: count ==2131 [2024-12-17 20:20:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:20:04 - End Time 2024-12-17 20:20:04 [2024-12-17 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043212', 'tblTempUsageDetail_20' ) start [2024-12-17 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043212', 'tblTempUsageDetail_20' ) end [2024-12-17 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043212', 'tblTempVendorCDR_20' ) start [2024-12-17 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043212', 'tblTempVendorCDR_20' ) end [2024-12-17 20:20:18] Production.INFO: ProcessCDR(1,14043212,1,1,2) [2024-12-17 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043212', 'tblTempUsageDetail_20' ) start [2024-12-17 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043212', 'tblTempUsageDetail_20' ) end [2024-12-17 20:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:20:21] Production.INFO: ==3343== Releasing lock... [2024-12-17 20:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:20:21] Production.INFO: 44 MB #Memory Used# [2024-12-17 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:21:05 [end_date_ymd] => 2024-12-17 20:21:05 [RateCDR] => 1 ) [2024-12-17 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:21:05' and `end` < '2024-12-17 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:21:18] Production.INFO: count ==2112 [2024-12-17 20:21:19] Production.ERROR: pbx CDR StartTime 2024-12-17 17:21:05 - End Time 2024-12-17 20:21:05 [2024-12-17 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043218', 'tblTempUsageDetail_20' ) start [2024-12-17 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043218', 'tblTempUsageDetail_20' ) end [2024-12-17 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043218', 'tblTempVendorCDR_20' ) start [2024-12-17 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043218', 'tblTempVendorCDR_20' ) end [2024-12-17 20:21:19] Production.INFO: ProcessCDR(1,14043218,1,1,2) [2024-12-17 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043218', 'tblTempUsageDetail_20' ) start [2024-12-17 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043218', 'tblTempUsageDetail_20' ) end [2024-12-17 20:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:21:22] Production.INFO: ==3423== Releasing lock... [2024-12-17 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:21:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-17 20:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:22:04 [end_date_ymd] => 2024-12-17 20:22:04 [RateCDR] => 1 ) [2024-12-17 20: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 17:22:04' and `end` < '2024-12-17 20: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-17 20:22:18] Production.INFO: count ==2109 [2024-12-17 20:22:19] Production.ERROR: pbx CDR StartTime 2024-12-17 17:22:04 - End Time 2024-12-17 20:22:04 [2024-12-17 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043223', 'tblTempUsageDetail_20' ) start [2024-12-17 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043223', 'tblTempUsageDetail_20' ) end [2024-12-17 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043223', 'tblTempVendorCDR_20' ) start [2024-12-17 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043223', 'tblTempVendorCDR_20' ) end [2024-12-17 20:22:19] Production.INFO: ProcessCDR(1,14043223,1,1,2) [2024-12-17 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043223', 'tblTempUsageDetail_20' ) start [2024-12-17 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043223', 'tblTempUsageDetail_20' ) end [2024-12-17 20:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:22:22] Production.INFO: ==3494== Releasing lock... [2024-12-17 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:22:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-17 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:23:05 [end_date_ymd] => 2024-12-17 20:23:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:23:05' and `end` < '2024-12-17 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-17 20:23:17] Production.INFO: count ==2105 [2024-12-17 20:23:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:23:05 - End Time 2024-12-17 20:23:05 [2024-12-17 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043228', 'tblTempUsageDetail_20' ) start [2024-12-17 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043228', 'tblTempUsageDetail_20' ) end [2024-12-17 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043228', 'tblTempVendorCDR_20' ) start [2024-12-17 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043228', 'tblTempVendorCDR_20' ) end [2024-12-17 20:23:18] Production.INFO: ProcessCDR(1,14043228,1,1,2) [2024-12-17 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043228', 'tblTempUsageDetail_20' ) start [2024-12-17 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043228', 'tblTempUsageDetail_20' ) end [2024-12-17 20:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:23:22] Production.INFO: ==3589== Releasing lock... [2024-12-17 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:23:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-17 20:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:24:04 [end_date_ymd] => 2024-12-17 20:24:04 [RateCDR] => 1 ) [2024-12-17 20: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-17 17:24:04' and `end` < '2024-12-17 20: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-17 20:24:17] Production.INFO: count ==2102 [2024-12-17 20:24:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:24:04 - End Time 2024-12-17 20:24:04 [2024-12-17 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043233', 'tblTempUsageDetail_20' ) start [2024-12-17 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043233', 'tblTempUsageDetail_20' ) end [2024-12-17 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043233', 'tblTempVendorCDR_20' ) start [2024-12-17 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043233', 'tblTempVendorCDR_20' ) end [2024-12-17 20:24:18] Production.INFO: ProcessCDR(1,14043233,1,1,2) [2024-12-17 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043233', 'tblTempUsageDetail_20' ) start [2024-12-17 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043233', 'tblTempUsageDetail_20' ) end [2024-12-17 20:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:24:22] Production.INFO: ==3658== Releasing lock... [2024-12-17 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:24:22] Production.INFO: 44 MB #Memory Used# [2024-12-17 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:25:04 [end_date_ymd] => 2024-12-17 20:25:04 [RateCDR] => 1 ) [2024-12-17 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-17 17:25:04' and `end` < '2024-12-17 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-17 20:25:17] Production.INFO: count ==2088 [2024-12-17 20:25:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:25:04 - End Time 2024-12-17 20:25:04 [2024-12-17 20:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043238', 'tblTempUsageDetail_20' ) start [2024-12-17 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043238', 'tblTempUsageDetail_20' ) end [2024-12-17 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043238', 'tblTempVendorCDR_20' ) start [2024-12-17 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043238', 'tblTempVendorCDR_20' ) end [2024-12-17 20:25:17] Production.INFO: ProcessCDR(1,14043238,1,1,2) [2024-12-17 20:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043238', 'tblTempUsageDetail_20' ) start [2024-12-17 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043238', 'tblTempUsageDetail_20' ) end [2024-12-17 20:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:25:22] Production.INFO: ==3737== Releasing lock... [2024-12-17 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:25:22] Production.INFO: 44 MB #Memory Used# [2024-12-17 20:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:26:04 [end_date_ymd] => 2024-12-17 20:26:04 [RateCDR] => 1 ) [2024-12-17 20:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:26:04' and `end` < '2024-12-17 20:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:26:17] Production.INFO: count ==2080 [2024-12-17 20:26:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:26:04 - End Time 2024-12-17 20:26:04 [2024-12-17 20:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043243', 'tblTempUsageDetail_20' ) start [2024-12-17 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043243', 'tblTempUsageDetail_20' ) end [2024-12-17 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043243', 'tblTempVendorCDR_20' ) start [2024-12-17 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043243', 'tblTempVendorCDR_20' ) end [2024-12-17 20:26:17] Production.INFO: ProcessCDR(1,14043243,1,1,2) [2024-12-17 20:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043243', 'tblTempUsageDetail_20' ) start [2024-12-17 20:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043243', 'tblTempUsageDetail_20' ) end [2024-12-17 20:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:26:20] Production.INFO: ==3807== Releasing lock... [2024-12-17 20:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:26:20] Production.INFO: 44.25 MB #Memory Used# [2024-12-17 20:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:27:04 [end_date_ymd] => 2024-12-17 20:27:04 [RateCDR] => 1 ) [2024-12-17 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-17 17:27:04' and `end` < '2024-12-17 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-17 20:27:16] Production.INFO: count ==2075 [2024-12-17 20:27:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:27:04 - End Time 2024-12-17 20:27:04 [2024-12-17 20:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043248', 'tblTempUsageDetail_20' ) start [2024-12-17 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043248', 'tblTempUsageDetail_20' ) end [2024-12-17 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043248', 'tblTempVendorCDR_20' ) start [2024-12-17 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043248', 'tblTempVendorCDR_20' ) end [2024-12-17 20:27:17] Production.INFO: ProcessCDR(1,14043248,1,1,2) [2024-12-17 20:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043248', 'tblTempUsageDetail_20' ) start [2024-12-17 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043248', 'tblTempUsageDetail_20' ) end [2024-12-17 20:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:27:21] Production.INFO: ==3882== Releasing lock... [2024-12-17 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:27:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-17 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:28:05 [end_date_ymd] => 2024-12-17 20:28:05 [RateCDR] => 1 ) [2024-12-17 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:28:05' and `end` < '2024-12-17 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:28:17] Production.INFO: count ==2071 [2024-12-17 20:28:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:28:05 - End Time 2024-12-17 20:28:05 [2024-12-17 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043253', 'tblTempUsageDetail_20' ) start [2024-12-17 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043253', 'tblTempUsageDetail_20' ) end [2024-12-17 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043253', 'tblTempVendorCDR_20' ) start [2024-12-17 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043253', 'tblTempVendorCDR_20' ) end [2024-12-17 20:28:18] Production.INFO: ProcessCDR(1,14043253,1,1,2) [2024-12-17 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043253', 'tblTempUsageDetail_20' ) start [2024-12-17 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043253', 'tblTempUsageDetail_20' ) end [2024-12-17 20:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:28:21] Production.INFO: ==3958== Releasing lock... [2024-12-17 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:28:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-17 20:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:29:04 [end_date_ymd] => 2024-12-17 20:29:04 [RateCDR] => 1 ) [2024-12-17 20: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 17:29:04' and `end` < '2024-12-17 20: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-17 20:29:17] Production.INFO: count ==2067 [2024-12-17 20:29:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:29:04 - End Time 2024-12-17 20:29:04 [2024-12-17 20:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043258', 'tblTempUsageDetail_20' ) start [2024-12-17 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043258', 'tblTempUsageDetail_20' ) end [2024-12-17 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043258', 'tblTempVendorCDR_20' ) start [2024-12-17 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043258', 'tblTempVendorCDR_20' ) end [2024-12-17 20:29:18] Production.INFO: ProcessCDR(1,14043258,1,1,2) [2024-12-17 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043258', 'tblTempUsageDetail_20' ) start [2024-12-17 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043258', 'tblTempUsageDetail_20' ) end [2024-12-17 20:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:29:21] Production.INFO: ==4034== Releasing lock... [2024-12-17 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:29:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-17 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:30:05 [end_date_ymd] => 2024-12-17 20:30:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:30:05' and `end` < '2024-12-17 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-17 20:30:18] Production.INFO: count ==2065 [2024-12-17 20:30:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:30:05 - End Time 2024-12-17 20:30:05 [2024-12-17 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043264', 'tblTempUsageDetail_20' ) start [2024-12-17 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043264', 'tblTempUsageDetail_20' ) end [2024-12-17 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043264', 'tblTempVendorCDR_20' ) start [2024-12-17 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043264', 'tblTempVendorCDR_20' ) end [2024-12-17 20:30:18] Production.INFO: ProcessCDR(1,14043264,1,1,2) [2024-12-17 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043264', 'tblTempUsageDetail_20' ) start [2024-12-17 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043264', 'tblTempUsageDetail_20' ) end [2024-12-17 20:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:30:21] Production.INFO: ==4114== Releasing lock... [2024-12-17 20:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:30:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-17 20:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:31:04 [end_date_ymd] => 2024-12-17 20:31:04 [RateCDR] => 1 ) [2024-12-17 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-17 17:31:04' and `end` < '2024-12-17 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-17 20:31:16] Production.INFO: count ==2004 [2024-12-17 20:31:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:31:04 - End Time 2024-12-17 20:31:04 [2024-12-17 20:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043269', 'tblTempUsageDetail_20' ) start [2024-12-17 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043269', 'tblTempUsageDetail_20' ) end [2024-12-17 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043269', 'tblTempVendorCDR_20' ) start [2024-12-17 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043269', 'tblTempVendorCDR_20' ) end [2024-12-17 20:31:17] Production.INFO: ProcessCDR(1,14043269,1,1,2) [2024-12-17 20:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043269', 'tblTempUsageDetail_20' ) start [2024-12-17 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043269', 'tblTempUsageDetail_20' ) end [2024-12-17 20:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:31:21] Production.INFO: ==4190== Releasing lock... [2024-12-17 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:31:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-17 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:32:05 [end_date_ymd] => 2024-12-17 20:32:05 [RateCDR] => 1 ) [2024-12-17 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:32:05' and `end` < '2024-12-17 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:32:17] Production.INFO: count ==2001 [2024-12-17 20:32:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:32:05 - End Time 2024-12-17 20:32:05 [2024-12-17 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043274', 'tblTempUsageDetail_20' ) start [2024-12-17 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043274', 'tblTempUsageDetail_20' ) end [2024-12-17 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043274', 'tblTempVendorCDR_20' ) start [2024-12-17 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043274', 'tblTempVendorCDR_20' ) end [2024-12-17 20:32:18] Production.INFO: ProcessCDR(1,14043274,1,1,2) [2024-12-17 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043274', 'tblTempUsageDetail_20' ) start [2024-12-17 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043274', 'tblTempUsageDetail_20' ) end [2024-12-17 20:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:32:21] Production.INFO: ==4262== Releasing lock... [2024-12-17 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:32:21] Production.INFO: 43 MB #Memory Used# [2024-12-17 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:33:05 [end_date_ymd] => 2024-12-17 20:33:05 [RateCDR] => 1 ) [2024-12-17 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:33:05' and `end` < '2024-12-17 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:33:18] Production.INFO: count ==1997 [2024-12-17 20:33:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:33:05 - End Time 2024-12-17 20:33:05 [2024-12-17 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043279', 'tblTempUsageDetail_20' ) start [2024-12-17 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043279', 'tblTempUsageDetail_20' ) end [2024-12-17 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043279', 'tblTempVendorCDR_20' ) start [2024-12-17 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043279', 'tblTempVendorCDR_20' ) end [2024-12-17 20:33:18] Production.INFO: ProcessCDR(1,14043279,1,1,2) [2024-12-17 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043279', 'tblTempUsageDetail_20' ) start [2024-12-17 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043279', 'tblTempUsageDetail_20' ) end [2024-12-17 20:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:33:22] Production.INFO: ==4334== Releasing lock... [2024-12-17 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:33:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-17 20:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:34:04 [end_date_ymd] => 2024-12-17 20:34:04 [RateCDR] => 1 ) [2024-12-17 20: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 17:34:04' and `end` < '2024-12-17 20: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-17 20:34:17] Production.INFO: count ==1994 [2024-12-17 20:34:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:34:04 - End Time 2024-12-17 20:34:04 [2024-12-17 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043284', 'tblTempUsageDetail_20' ) start [2024-12-17 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043284', 'tblTempUsageDetail_20' ) end [2024-12-17 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043284', 'tblTempVendorCDR_20' ) start [2024-12-17 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043284', 'tblTempVendorCDR_20' ) end [2024-12-17 20:34:18] Production.INFO: ProcessCDR(1,14043284,1,1,2) [2024-12-17 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043284', 'tblTempUsageDetail_20' ) start [2024-12-17 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043284', 'tblTempUsageDetail_20' ) end [2024-12-17 20:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:34:21] Production.INFO: ==4445== Releasing lock... [2024-12-17 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:34:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-17 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:35:05 [end_date_ymd] => 2024-12-17 20:35:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:35:05' and `end` < '2024-12-17 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-17 20:35:17] Production.INFO: count ==1980 [2024-12-17 20:35:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:35:05 - End Time 2024-12-17 20:35:05 [2024-12-17 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043289', 'tblTempUsageDetail_20' ) start [2024-12-17 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043289', 'tblTempUsageDetail_20' ) end [2024-12-17 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043289', 'tblTempVendorCDR_20' ) start [2024-12-17 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043289', 'tblTempVendorCDR_20' ) end [2024-12-17 20:35:18] Production.INFO: ProcessCDR(1,14043289,1,1,2) [2024-12-17 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043289', 'tblTempUsageDetail_20' ) start [2024-12-17 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043289', 'tblTempUsageDetail_20' ) end [2024-12-17 20:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:35:21] Production.INFO: ==4517== Releasing lock... [2024-12-17 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:35:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-17 20:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:36:04 [end_date_ymd] => 2024-12-17 20:36:04 [RateCDR] => 1 ) [2024-12-17 20: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-17 17:36:04' and `end` < '2024-12-17 20: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-17 20:36:17] Production.INFO: count ==1980 [2024-12-17 20:36:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:36:04 - End Time 2024-12-17 20:36:04 [2024-12-17 20:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043294', 'tblTempUsageDetail_20' ) start [2024-12-17 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043294', 'tblTempUsageDetail_20' ) end [2024-12-17 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043294', 'tblTempVendorCDR_20' ) start [2024-12-17 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043294', 'tblTempVendorCDR_20' ) end [2024-12-17 20:36:17] Production.INFO: ProcessCDR(1,14043294,1,1,2) [2024-12-17 20:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043294', 'tblTempUsageDetail_20' ) start [2024-12-17 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043294', 'tblTempUsageDetail_20' ) end [2024-12-17 20:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:36:21] Production.INFO: ==4594== Releasing lock... [2024-12-17 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:36:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-17 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:37:05 [end_date_ymd] => 2024-12-17 20:37:05 [RateCDR] => 1 ) [2024-12-17 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:37:05' and `end` < '2024-12-17 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:37:17] Production.INFO: count ==1972 [2024-12-17 20:37:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:37:05 - End Time 2024-12-17 20:37:05 [2024-12-17 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043299', 'tblTempUsageDetail_20' ) start [2024-12-17 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043299', 'tblTempUsageDetail_20' ) end [2024-12-17 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043299', 'tblTempVendorCDR_20' ) start [2024-12-17 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043299', 'tblTempVendorCDR_20' ) end [2024-12-17 20:37:18] Production.INFO: ProcessCDR(1,14043299,1,1,2) [2024-12-17 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043299', 'tblTempUsageDetail_20' ) start [2024-12-17 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043299', 'tblTempUsageDetail_20' ) end [2024-12-17 20:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:37:22] Production.INFO: ==4670== Releasing lock... [2024-12-17 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:37:22] Production.INFO: 43 MB #Memory Used# [2024-12-17 20:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:38:04 [end_date_ymd] => 2024-12-17 20:38:04 [RateCDR] => 1 ) [2024-12-17 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-17 17:38:04' and `end` < '2024-12-17 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-17 20:38:16] Production.INFO: count ==1975 [2024-12-17 20:38:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:38:04 - End Time 2024-12-17 20:38:04 [2024-12-17 20:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043304', 'tblTempUsageDetail_20' ) start [2024-12-17 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043304', 'tblTempUsageDetail_20' ) end [2024-12-17 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043304', 'tblTempVendorCDR_20' ) start [2024-12-17 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043304', 'tblTempVendorCDR_20' ) end [2024-12-17 20:38:17] Production.INFO: ProcessCDR(1,14043304,1,1,2) [2024-12-17 20:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043304', 'tblTempUsageDetail_20' ) start [2024-12-17 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043304', 'tblTempUsageDetail_20' ) end [2024-12-17 20:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:38:21] Production.INFO: ==4741== Releasing lock... [2024-12-17 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:38:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-17 20:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:39:04 [end_date_ymd] => 2024-12-17 20:39:04 [RateCDR] => 1 ) [2024-12-17 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-17 17:39:04' and `end` < '2024-12-17 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-17 20:39:17] Production.INFO: count ==1965 [2024-12-17 20:39:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:39:04 - End Time 2024-12-17 20:39:04 [2024-12-17 20:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043309', 'tblTempUsageDetail_20' ) start [2024-12-17 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043309', 'tblTempUsageDetail_20' ) end [2024-12-17 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043309', 'tblTempVendorCDR_20' ) start [2024-12-17 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043309', 'tblTempVendorCDR_20' ) end [2024-12-17 20:39:17] Production.INFO: ProcessCDR(1,14043309,1,1,2) [2024-12-17 20:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043309', 'tblTempUsageDetail_20' ) start [2024-12-17 20:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043309', 'tblTempUsageDetail_20' ) end [2024-12-17 20:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:39:20] Production.INFO: ==4816== Releasing lock... [2024-12-17 20:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:39:20] Production.INFO: 42.75 MB #Memory Used# [2024-12-17 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:40:05 [end_date_ymd] => 2024-12-17 20:40:05 [RateCDR] => 1 ) [2024-12-17 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:40:05' and `end` < '2024-12-17 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-17 20:40:18] Production.INFO: count ==1958 [2024-12-17 20:40:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:40:05 - End Time 2024-12-17 20:40:05 [2024-12-17 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043315', 'tblTempUsageDetail_20' ) start [2024-12-17 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043315', 'tblTempUsageDetail_20' ) end [2024-12-17 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043315', 'tblTempVendorCDR_20' ) start [2024-12-17 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043315', 'tblTempVendorCDR_20' ) end [2024-12-17 20:40:18] Production.INFO: ProcessCDR(1,14043315,1,1,2) [2024-12-17 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043315', 'tblTempUsageDetail_20' ) start [2024-12-17 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043315', 'tblTempUsageDetail_20' ) end [2024-12-17 20:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:40:22] Production.INFO: ==4906== Releasing lock... [2024-12-17 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:40:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-17 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:41:05 [end_date_ymd] => 2024-12-17 20:41:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:41:05' and `end` < '2024-12-17 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-17 20:41:17] Production.INFO: count ==1940 [2024-12-17 20:41:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:41:05 - End Time 2024-12-17 20:41:05 [2024-12-17 20:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043320', 'tblTempUsageDetail_20' ) start [2024-12-17 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043320', 'tblTempUsageDetail_20' ) end [2024-12-17 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043320', 'tblTempVendorCDR_20' ) start [2024-12-17 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043320', 'tblTempVendorCDR_20' ) end [2024-12-17 20:41:18] Production.INFO: ProcessCDR(1,14043320,1,1,2) [2024-12-17 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043320', 'tblTempUsageDetail_20' ) start [2024-12-17 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043320', 'tblTempUsageDetail_20' ) end [2024-12-17 20:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:41:21] Production.INFO: ==4993== Releasing lock... [2024-12-17 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:41:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-17 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:42:05 [end_date_ymd] => 2024-12-17 20:42:05 [RateCDR] => 1 ) [2024-12-17 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:42:05' and `end` < '2024-12-17 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:42:18] Production.INFO: count ==1919 [2024-12-17 20:42:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:42:05 - End Time 2024-12-17 20:42:05 [2024-12-17 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043325', 'tblTempUsageDetail_20' ) start [2024-12-17 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043325', 'tblTempUsageDetail_20' ) end [2024-12-17 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043325', 'tblTempVendorCDR_20' ) start [2024-12-17 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043325', 'tblTempVendorCDR_20' ) end [2024-12-17 20:42:18] Production.INFO: ProcessCDR(1,14043325,1,1,2) [2024-12-17 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043325', 'tblTempUsageDetail_20' ) start [2024-12-17 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043325', 'tblTempUsageDetail_20' ) end [2024-12-17 20:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:42:21] Production.INFO: ==5076== Releasing lock... [2024-12-17 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:42:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-17 20:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:43:04 [end_date_ymd] => 2024-12-17 20:43:04 [RateCDR] => 1 ) [2024-12-17 20:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:43:04' and `end` < '2024-12-17 20:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:43:16] Production.INFO: count ==1919 [2024-12-17 20:43:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:43:04 - End Time 2024-12-17 20:43:04 [2024-12-17 20:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043330', 'tblTempUsageDetail_20' ) start [2024-12-17 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043330', 'tblTempUsageDetail_20' ) end [2024-12-17 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043330', 'tblTempVendorCDR_20' ) start [2024-12-17 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043330', 'tblTempVendorCDR_20' ) end [2024-12-17 20:43:17] Production.INFO: ProcessCDR(1,14043330,1,1,2) [2024-12-17 20:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043330', 'tblTempUsageDetail_20' ) start [2024-12-17 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043330', 'tblTempUsageDetail_20' ) end [2024-12-17 20:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:43:21] Production.INFO: ==5156== Releasing lock... [2024-12-17 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:43:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-17 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:44:05 [end_date_ymd] => 2024-12-17 20:44:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:44:05' and `end` < '2024-12-17 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-17 20:44:17] Production.INFO: count ==1891 [2024-12-17 20:44:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:44:05 - End Time 2024-12-17 20:44:05 [2024-12-17 20:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043335', 'tblTempUsageDetail_20' ) start [2024-12-17 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043335', 'tblTempUsageDetail_20' ) end [2024-12-17 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043335', 'tblTempVendorCDR_20' ) start [2024-12-17 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043335', 'tblTempVendorCDR_20' ) end [2024-12-17 20:44:17] Production.INFO: ProcessCDR(1,14043335,1,1,2) [2024-12-17 20:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043335', 'tblTempUsageDetail_20' ) start [2024-12-17 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043335', 'tblTempUsageDetail_20' ) end [2024-12-17 20:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:44:20] Production.INFO: ==5241== Releasing lock... [2024-12-17 20:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:44:20] Production.INFO: 42.5 MB #Memory Used# [2024-12-17 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:45:04 [end_date_ymd] => 2024-12-17 20:45:04 [RateCDR] => 1 ) [2024-12-17 20: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 17:45:04' and `end` < '2024-12-17 20: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-17 20:45:16] Production.INFO: count ==1875 [2024-12-17 20:45:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:45:04 - End Time 2024-12-17 20:45:04 [2024-12-17 20:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043340', 'tblTempUsageDetail_20' ) start [2024-12-17 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043340', 'tblTempUsageDetail_20' ) end [2024-12-17 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043340', 'tblTempVendorCDR_20' ) start [2024-12-17 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043340', 'tblTempVendorCDR_20' ) end [2024-12-17 20:45:17] Production.INFO: ProcessCDR(1,14043340,1,1,2) [2024-12-17 20:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043340', 'tblTempUsageDetail_20' ) start [2024-12-17 20:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043340', 'tblTempUsageDetail_20' ) end [2024-12-17 20:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:45:20] Production.INFO: ==5314== Releasing lock... [2024-12-17 20:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:45:20] Production.INFO: 42 MB #Memory Used# [2024-12-17 20:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:46:04 [end_date_ymd] => 2024-12-17 20:46:04 [RateCDR] => 1 ) [2024-12-17 20: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 17:46:04' and `end` < '2024-12-17 20: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-17 20:46:17] Production.INFO: count ==1875 [2024-12-17 20:46:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:46:04 - End Time 2024-12-17 20:46:04 [2024-12-17 20:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043345', 'tblTempUsageDetail_20' ) start [2024-12-17 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043345', 'tblTempUsageDetail_20' ) end [2024-12-17 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043345', 'tblTempVendorCDR_20' ) start [2024-12-17 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043345', 'tblTempVendorCDR_20' ) end [2024-12-17 20:46:17] Production.INFO: ProcessCDR(1,14043345,1,1,2) [2024-12-17 20:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043345', 'tblTempUsageDetail_20' ) start [2024-12-17 20:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043345', 'tblTempUsageDetail_20' ) end [2024-12-17 20:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:46:20] Production.INFO: ==5385== Releasing lock... [2024-12-17 20:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:46:20] Production.INFO: 42 MB #Memory Used# [2024-12-17 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:47:05 [end_date_ymd] => 2024-12-17 20:47:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:47:05' and `end` < '2024-12-17 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-17 20:47:17] Production.INFO: count ==1868 [2024-12-17 20:47:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:47:05 - End Time 2024-12-17 20:47:05 [2024-12-17 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043350', 'tblTempUsageDetail_20' ) start [2024-12-17 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043350', 'tblTempUsageDetail_20' ) end [2024-12-17 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043350', 'tblTempVendorCDR_20' ) start [2024-12-17 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043350', 'tblTempVendorCDR_20' ) end [2024-12-17 20:47:18] Production.INFO: ProcessCDR(1,14043350,1,1,2) [2024-12-17 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043350', 'tblTempUsageDetail_20' ) start [2024-12-17 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043350', 'tblTempUsageDetail_20' ) end [2024-12-17 20:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:47:21] Production.INFO: ==5454== Releasing lock... [2024-12-17 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:47:21] Production.INFO: 42 MB #Memory Used# [2024-12-17 20:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:48:04 [end_date_ymd] => 2024-12-17 20:48:04 [RateCDR] => 1 ) [2024-12-17 20: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-17 17:48:04' and `end` < '2024-12-17 20: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-17 20:48:16] Production.INFO: count ==1867 [2024-12-17 20:48:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:48:04 - End Time 2024-12-17 20:48:04 [2024-12-17 20:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043355', 'tblTempUsageDetail_20' ) start [2024-12-17 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043355', 'tblTempUsageDetail_20' ) end [2024-12-17 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043355', 'tblTempVendorCDR_20' ) start [2024-12-17 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043355', 'tblTempVendorCDR_20' ) end [2024-12-17 20:48:17] Production.INFO: ProcessCDR(1,14043355,1,1,2) [2024-12-17 20:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043355', 'tblTempUsageDetail_20' ) start [2024-12-17 20:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043355', 'tblTempUsageDetail_20' ) end [2024-12-17 20:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:48:20] Production.INFO: ==5531== Releasing lock... [2024-12-17 20:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:48:20] Production.INFO: 42.25 MB #Memory Used# [2024-12-17 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:49:05 [end_date_ymd] => 2024-12-17 20:49:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:49:05' and `end` < '2024-12-17 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:49:18] Production.INFO: count ==1858 [2024-12-17 20:49:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:49:05 - End Time 2024-12-17 20:49:05 [2024-12-17 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043360', 'tblTempUsageDetail_20' ) start [2024-12-17 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043360', 'tblTempUsageDetail_20' ) end [2024-12-17 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043360', 'tblTempVendorCDR_20' ) start [2024-12-17 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043360', 'tblTempVendorCDR_20' ) end [2024-12-17 20:49:18] Production.INFO: ProcessCDR(1,14043360,1,1,2) [2024-12-17 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043360', 'tblTempUsageDetail_20' ) start [2024-12-17 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043360', 'tblTempUsageDetail_20' ) end [2024-12-17 20:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:49:21] Production.INFO: ==5601== Releasing lock... [2024-12-17 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:49:21] Production.INFO: 42 MB #Memory Used# [2024-12-17 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:50:05 [end_date_ymd] => 2024-12-17 20:50:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:50:05' and `end` < '2024-12-17 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-17 20:50:18] Production.INFO: count ==1836 [2024-12-17 20:50:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:50:05 - End Time 2024-12-17 20:50:05 [2024-12-17 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043366', 'tblTempUsageDetail_20' ) start [2024-12-17 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043366', 'tblTempUsageDetail_20' ) end [2024-12-17 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043366', 'tblTempVendorCDR_20' ) start [2024-12-17 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043366', 'tblTempVendorCDR_20' ) end [2024-12-17 20:50:18] Production.INFO: ProcessCDR(1,14043366,1,1,2) [2024-12-17 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043366', 'tblTempUsageDetail_20' ) start [2024-12-17 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043366', 'tblTempUsageDetail_20' ) end [2024-12-17 20:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:50:21] Production.INFO: ==5712== Releasing lock... [2024-12-17 20:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:50:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-17 20:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:51:04 [end_date_ymd] => 2024-12-17 20:51:04 [RateCDR] => 1 ) [2024-12-17 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-17 17:51:04' and `end` < '2024-12-17 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-17 20:51:17] Production.INFO: count ==1739 [2024-12-17 20:51:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:51:04 - End Time 2024-12-17 20:51:04 [2024-12-17 20:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043371', 'tblTempUsageDetail_20' ) start [2024-12-17 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043371', 'tblTempUsageDetail_20' ) end [2024-12-17 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043371', 'tblTempVendorCDR_20' ) start [2024-12-17 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043371', 'tblTempVendorCDR_20' ) end [2024-12-17 20:51:17] Production.INFO: ProcessCDR(1,14043371,1,1,2) [2024-12-17 20:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043371', 'tblTempUsageDetail_20' ) start [2024-12-17 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043371', 'tblTempUsageDetail_20' ) end [2024-12-17 20:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:51:21] Production.INFO: ==5796== Releasing lock... [2024-12-17 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:51:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-17 20:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:52:04 [end_date_ymd] => 2024-12-17 20:52:04 [RateCDR] => 1 ) [2024-12-17 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-17 17:52:04' and `end` < '2024-12-17 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-17 20:52:17] Production.INFO: count ==1737 [2024-12-17 20:52:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:52:04 - End Time 2024-12-17 20:52:04 [2024-12-17 20:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043376', 'tblTempUsageDetail_20' ) start [2024-12-17 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043376', 'tblTempUsageDetail_20' ) end [2024-12-17 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043376', 'tblTempVendorCDR_20' ) start [2024-12-17 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043376', 'tblTempVendorCDR_20' ) end [2024-12-17 20:52:17] Production.INFO: ProcessCDR(1,14043376,1,1,2) [2024-12-17 20:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043376', 'tblTempUsageDetail_20' ) start [2024-12-17 20:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043376', 'tblTempUsageDetail_20' ) end [2024-12-17 20:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:52:20] Production.INFO: ==5879== Releasing lock... [2024-12-17 20:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:52:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-17 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:53:05 [end_date_ymd] => 2024-12-17 20:53:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:53:05' and `end` < '2024-12-17 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-17 20:53:17] Production.INFO: count ==1738 [2024-12-17 20:53:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:53:05 - End Time 2024-12-17 20:53:05 [2024-12-17 20:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043381', 'tblTempUsageDetail_20' ) start [2024-12-17 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043381', 'tblTempUsageDetail_20' ) end [2024-12-17 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043381', 'tblTempVendorCDR_20' ) start [2024-12-17 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043381', 'tblTempVendorCDR_20' ) end [2024-12-17 20:53:17] Production.INFO: ProcessCDR(1,14043381,1,1,2) [2024-12-17 20:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043381', 'tblTempUsageDetail_20' ) start [2024-12-17 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043381', 'tblTempUsageDetail_20' ) end [2024-12-17 20:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:53:21] Production.INFO: ==5956== Releasing lock... [2024-12-17 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:53:21] Production.INFO: 41 MB #Memory Used# [2024-12-17 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:54:05 [end_date_ymd] => 2024-12-17 20:54:05 [RateCDR] => 1 ) [2024-12-17 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:54:05' and `end` < '2024-12-17 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:54:17] Production.INFO: count ==1737 [2024-12-17 20:54:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:54:05 - End Time 2024-12-17 20:54:05 [2024-12-17 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043386', 'tblTempUsageDetail_20' ) start [2024-12-17 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043386', 'tblTempUsageDetail_20' ) end [2024-12-17 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043386', 'tblTempVendorCDR_20' ) start [2024-12-17 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043386', 'tblTempVendorCDR_20' ) end [2024-12-17 20:54:18] Production.INFO: ProcessCDR(1,14043386,1,1,2) [2024-12-17 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043386', 'tblTempUsageDetail_20' ) start [2024-12-17 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043386', 'tblTempUsageDetail_20' ) end [2024-12-17 20:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:54:22] Production.INFO: ==6028== Releasing lock... [2024-12-17 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:54:22] Production.INFO: 41 MB #Memory Used# [2024-12-17 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:55:05 [end_date_ymd] => 2024-12-17 20:55:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:55:05' and `end` < '2024-12-17 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-17 20:55:17] Production.INFO: count ==1731 [2024-12-17 20:55:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:55:05 - End Time 2024-12-17 20:55:05 [2024-12-17 20:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043391', 'tblTempUsageDetail_20' ) start [2024-12-17 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043391', 'tblTempUsageDetail_20' ) end [2024-12-17 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043391', 'tblTempVendorCDR_20' ) start [2024-12-17 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043391', 'tblTempVendorCDR_20' ) end [2024-12-17 20:55:17] Production.INFO: ProcessCDR(1,14043391,1,1,2) [2024-12-17 20:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043391', 'tblTempUsageDetail_20' ) start [2024-12-17 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043391', 'tblTempUsageDetail_20' ) end [2024-12-17 20:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:55:20] Production.INFO: ==6102== Releasing lock... [2024-12-17 20:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:55:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-17 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:56:05 [end_date_ymd] => 2024-12-17 20:56:05 [RateCDR] => 1 ) [2024-12-17 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:56:05' and `end` < '2024-12-17 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:56:18] Production.INFO: count ==1732 [2024-12-17 20:56:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:56:05 - End Time 2024-12-17 20:56:05 [2024-12-17 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043396', 'tblTempUsageDetail_20' ) start [2024-12-17 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043396', 'tblTempUsageDetail_20' ) end [2024-12-17 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043396', 'tblTempVendorCDR_20' ) start [2024-12-17 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043396', 'tblTempVendorCDR_20' ) end [2024-12-17 20:56:18] Production.INFO: ProcessCDR(1,14043396,1,1,2) [2024-12-17 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043396', 'tblTempUsageDetail_20' ) start [2024-12-17 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043396', 'tblTempUsageDetail_20' ) end [2024-12-17 20:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:56:21] Production.INFO: ==6175== Releasing lock... [2024-12-17 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:56:21] Production.INFO: 41 MB #Memory Used# [2024-12-17 20:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:57:04 [end_date_ymd] => 2024-12-17 20:57:04 [RateCDR] => 1 ) [2024-12-17 20: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 17:57:04' and `end` < '2024-12-17 20: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-17 20:57:17] Production.INFO: count ==1716 [2024-12-17 20:57:17] Production.ERROR: pbx CDR StartTime 2024-12-17 17:57:04 - End Time 2024-12-17 20:57:04 [2024-12-17 20:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043401', 'tblTempUsageDetail_20' ) start [2024-12-17 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043401', 'tblTempUsageDetail_20' ) end [2024-12-17 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043401', 'tblTempVendorCDR_20' ) start [2024-12-17 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043401', 'tblTempVendorCDR_20' ) end [2024-12-17 20:57:17] Production.INFO: ProcessCDR(1,14043401,1,1,2) [2024-12-17 20:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043401', 'tblTempUsageDetail_20' ) start [2024-12-17 20:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043401', 'tblTempUsageDetail_20' ) end [2024-12-17 20:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:57:20] Production.INFO: ==6245== Releasing lock... [2024-12-17 20:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:57:20] Production.INFO: 41 MB #Memory Used# [2024-12-17 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:58:05 [end_date_ymd] => 2024-12-17 20:58:05 [RateCDR] => 1 ) [2024-12-17 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-17 17:58:05' and `end` < '2024-12-17 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-17 20:58:17] Production.INFO: count ==1714 [2024-12-17 20:58:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:58:05 - End Time 2024-12-17 20:58:05 [2024-12-17 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043406', 'tblTempUsageDetail_20' ) start [2024-12-17 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043406', 'tblTempUsageDetail_20' ) end [2024-12-17 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043406', 'tblTempVendorCDR_20' ) start [2024-12-17 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043406', 'tblTempVendorCDR_20' ) end [2024-12-17 20:58:18] Production.INFO: ProcessCDR(1,14043406,1,1,2) [2024-12-17 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043406', 'tblTempUsageDetail_20' ) start [2024-12-17 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043406', 'tblTempUsageDetail_20' ) end [2024-12-17 20:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:58:22] Production.INFO: ==6317== Releasing lock... [2024-12-17 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:58:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-17 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 17:59:06 [end_date_ymd] => 2024-12-17 20:59:06 [RateCDR] => 1 ) [2024-12-17 20:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 17:59:06' and `end` < '2024-12-17 20:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 20:59:18] Production.INFO: count ==1710 [2024-12-17 20:59:18] Production.ERROR: pbx CDR StartTime 2024-12-17 17:59:06 - End Time 2024-12-17 20:59:06 [2024-12-17 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043411', 'tblTempUsageDetail_20' ) start [2024-12-17 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043411', 'tblTempUsageDetail_20' ) end [2024-12-17 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043411', 'tblTempVendorCDR_20' ) start [2024-12-17 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043411', 'tblTempVendorCDR_20' ) end [2024-12-17 20:59:18] Production.INFO: ProcessCDR(1,14043411,1,1,2) [2024-12-17 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043411', 'tblTempUsageDetail_20' ) start [2024-12-17 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043411', 'tblTempUsageDetail_20' ) end [2024-12-17 20:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 20:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 20:59:21] Production.INFO: ==6390== Releasing lock... [2024-12-17 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 20:59:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-17 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:00:06 [end_date_ymd] => 2024-12-17 21:00:06 [RateCDR] => 1 ) [2024-12-17 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:00:06' and `end` < '2024-12-17 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:00:18] Production.INFO: count ==1705 [2024-12-17 21:00:19] Production.ERROR: pbx CDR StartTime 2024-12-17 18:00:06 - End Time 2024-12-17 21:00:06 [2024-12-17 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043417', 'tblTempUsageDetail_20' ) start [2024-12-17 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043417', 'tblTempUsageDetail_20' ) end [2024-12-17 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043417', 'tblTempVendorCDR_20' ) start [2024-12-17 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043417', 'tblTempVendorCDR_20' ) end [2024-12-17 21:00:19] Production.INFO: ProcessCDR(1,14043417,1,1,2) [2024-12-17 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043417', 'tblTempUsageDetail_20' ) start [2024-12-17 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043417', 'tblTempUsageDetail_20' ) end [2024-12-17 21:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:00:22] Production.INFO: ==6463== Releasing lock... [2024-12-17 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:00:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-17 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:01:05 [end_date_ymd] => 2024-12-17 21:01:05 [RateCDR] => 1 ) [2024-12-17 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:01:05' and `end` < '2024-12-17 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:01:17] Production.INFO: count ==1645 [2024-12-17 21:01:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:01:05 - End Time 2024-12-17 21:01:05 [2024-12-17 21:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043422', 'tblTempUsageDetail_20' ) start [2024-12-17 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043422', 'tblTempUsageDetail_20' ) end [2024-12-17 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043422', 'tblTempVendorCDR_20' ) start [2024-12-17 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043422', 'tblTempVendorCDR_20' ) end [2024-12-17 21:01:17] Production.INFO: ProcessCDR(1,14043422,1,1,2) [2024-12-17 21:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043422', 'tblTempUsageDetail_20' ) start [2024-12-17 21:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043422', 'tblTempUsageDetail_20' ) end [2024-12-17 21:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:01:20] Production.INFO: ==6549== Releasing lock... [2024-12-17 21:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:01:20] Production.INFO: 40.75 MB #Memory Used# [2024-12-17 21:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:02:04 [end_date_ymd] => 2024-12-17 21:02:04 [RateCDR] => 1 ) [2024-12-17 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-17 18:02:04' and `end` < '2024-12-17 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-17 21:02:17] Production.INFO: count ==1641 [2024-12-17 21:02:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:02:04 - End Time 2024-12-17 21:02:04 [2024-12-17 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043427', 'tblTempUsageDetail_20' ) start [2024-12-17 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043427', 'tblTempUsageDetail_20' ) end [2024-12-17 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043427', 'tblTempVendorCDR_20' ) start [2024-12-17 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043427', 'tblTempVendorCDR_20' ) end [2024-12-17 21:02:18] Production.INFO: ProcessCDR(1,14043427,1,1,2) [2024-12-17 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043427', 'tblTempUsageDetail_20' ) start [2024-12-17 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043427', 'tblTempUsageDetail_20' ) end [2024-12-17 21:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:02:21] Production.INFO: ==6620== Releasing lock... [2024-12-17 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:02:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-17 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:03:04 [end_date_ymd] => 2024-12-17 21:03:04 [RateCDR] => 1 ) [2024-12-17 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-17 18:03:04' and `end` < '2024-12-17 21: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-17 21:03:17] Production.INFO: count ==1643 [2024-12-17 21:03:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:03:04 - End Time 2024-12-17 21:03:04 [2024-12-17 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043432', 'tblTempUsageDetail_20' ) start [2024-12-17 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043432', 'tblTempUsageDetail_20' ) end [2024-12-17 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043432', 'tblTempVendorCDR_20' ) start [2024-12-17 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043432', 'tblTempVendorCDR_20' ) end [2024-12-17 21:03:17] Production.INFO: ProcessCDR(1,14043432,1,1,2) [2024-12-17 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043432', 'tblTempUsageDetail_20' ) start [2024-12-17 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043432', 'tblTempUsageDetail_20' ) end [2024-12-17 21:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:03:20] Production.INFO: ==6694== Releasing lock... [2024-12-17 21:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:03:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-17 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:04:05 [end_date_ymd] => 2024-12-17 21:04:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:04:05' and `end` < '2024-12-17 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-17 21:04:18] Production.INFO: count ==1640 [2024-12-17 21:04:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:04:05 - End Time 2024-12-17 21:04:05 [2024-12-17 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043437', 'tblTempUsageDetail_20' ) start [2024-12-17 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043437', 'tblTempUsageDetail_20' ) end [2024-12-17 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043437', 'tblTempVendorCDR_20' ) start [2024-12-17 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043437', 'tblTempVendorCDR_20' ) end [2024-12-17 21:04:18] Production.INFO: ProcessCDR(1,14043437,1,1,2) [2024-12-17 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043437', 'tblTempUsageDetail_20' ) start [2024-12-17 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043437', 'tblTempUsageDetail_20' ) end [2024-12-17 21:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:04:22] Production.INFO: ==6768== Releasing lock... [2024-12-17 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:04:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-17 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:05:05 [end_date_ymd] => 2024-12-17 21:05:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:05:05' and `end` < '2024-12-17 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-17 21:05:17] Production.INFO: count ==1637 [2024-12-17 21:05:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:05:05 - End Time 2024-12-17 21:05:05 [2024-12-17 21:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043442', 'tblTempUsageDetail_20' ) start [2024-12-17 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043442', 'tblTempUsageDetail_20' ) end [2024-12-17 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043442', 'tblTempVendorCDR_20' ) start [2024-12-17 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043442', 'tblTempVendorCDR_20' ) end [2024-12-17 21:05:17] Production.INFO: ProcessCDR(1,14043442,1,1,2) [2024-12-17 21:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043442', 'tblTempUsageDetail_20' ) start [2024-12-17 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043442', 'tblTempUsageDetail_20' ) end [2024-12-17 21:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:05:22] Production.INFO: ==6877== Releasing lock... [2024-12-17 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:05:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-17 21:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:06:04 [end_date_ymd] => 2024-12-17 21:06:04 [RateCDR] => 1 ) [2024-12-17 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-17 18:06:04' and `end` < '2024-12-17 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-17 21:06:17] Production.INFO: count ==1635 [2024-12-17 21:06:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:06:04 - End Time 2024-12-17 21:06:04 [2024-12-17 21:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043447', 'tblTempUsageDetail_20' ) start [2024-12-17 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043447', 'tblTempUsageDetail_20' ) end [2024-12-17 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043447', 'tblTempVendorCDR_20' ) start [2024-12-17 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043447', 'tblTempVendorCDR_20' ) end [2024-12-17 21:06:17] Production.INFO: ProcessCDR(1,14043447,1,1,2) [2024-12-17 21:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043447', 'tblTempUsageDetail_20' ) start [2024-12-17 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043447', 'tblTempUsageDetail_20' ) end [2024-12-17 21:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:06:20] Production.INFO: ==6947== Releasing lock... [2024-12-17 21:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:06:20] Production.INFO: 40 MB #Memory Used# [2024-12-17 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:07:05 [end_date_ymd] => 2024-12-17 21:07:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:07:05' and `end` < '2024-12-17 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-17 21:07:17] Production.INFO: count ==1631 [2024-12-17 21:07:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:07:05 - End Time 2024-12-17 21:07:05 [2024-12-17 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043452', 'tblTempUsageDetail_20' ) start [2024-12-17 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043452', 'tblTempUsageDetail_20' ) end [2024-12-17 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043452', 'tblTempVendorCDR_20' ) start [2024-12-17 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043452', 'tblTempVendorCDR_20' ) end [2024-12-17 21:07:18] Production.INFO: ProcessCDR(1,14043452,1,1,2) [2024-12-17 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043452', 'tblTempUsageDetail_20' ) start [2024-12-17 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043452', 'tblTempUsageDetail_20' ) end [2024-12-17 21:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:07:21] Production.INFO: ==7019== Releasing lock... [2024-12-17 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:07:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-17 21:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:08:04 [end_date_ymd] => 2024-12-17 21:08:04 [RateCDR] => 1 ) [2024-12-17 21: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 18:08:04' and `end` < '2024-12-17 21: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-17 21:08:17] Production.INFO: count ==1628 [2024-12-17 21:08:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:08:04 - End Time 2024-12-17 21:08:04 [2024-12-17 21:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043457', 'tblTempUsageDetail_20' ) start [2024-12-17 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043457', 'tblTempUsageDetail_20' ) end [2024-12-17 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043457', 'tblTempVendorCDR_20' ) start [2024-12-17 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043457', 'tblTempVendorCDR_20' ) end [2024-12-17 21:08:17] Production.INFO: ProcessCDR(1,14043457,1,1,2) [2024-12-17 21:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043457', 'tblTempUsageDetail_20' ) start [2024-12-17 21:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043457', 'tblTempUsageDetail_20' ) end [2024-12-17 21:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:08:20] Production.INFO: ==7093== Releasing lock... [2024-12-17 21:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:08:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-17 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:09:05 [end_date_ymd] => 2024-12-17 21:09:05 [RateCDR] => 1 ) [2024-12-17 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:09:05' and `end` < '2024-12-17 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:09:17] Production.INFO: count ==1615 [2024-12-17 21:09:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:09:05 - End Time 2024-12-17 21:09:05 [2024-12-17 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043462', 'tblTempUsageDetail_20' ) start [2024-12-17 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043462', 'tblTempUsageDetail_20' ) end [2024-12-17 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043462', 'tblTempVendorCDR_20' ) start [2024-12-17 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043462', 'tblTempVendorCDR_20' ) end [2024-12-17 21:09:18] Production.INFO: ProcessCDR(1,14043462,1,1,2) [2024-12-17 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043462', 'tblTempUsageDetail_20' ) start [2024-12-17 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043462', 'tblTempUsageDetail_20' ) end [2024-12-17 21:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:09:21] Production.INFO: ==7168== Releasing lock... [2024-12-17 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:09:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-17 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:10:05 [end_date_ymd] => 2024-12-17 21:10:05 [RateCDR] => 1 ) [2024-12-17 21:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:10:05' and `end` < '2024-12-17 21:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:10:17] Production.INFO: count ==1611 [2024-12-17 21:10:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:10:05 - End Time 2024-12-17 21:10:05 [2024-12-17 21:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043468', 'tblTempUsageDetail_20' ) start [2024-12-17 21:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043468', 'tblTempUsageDetail_20' ) end [2024-12-17 21:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043468', 'tblTempVendorCDR_20' ) start [2024-12-17 21:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043468', 'tblTempVendorCDR_20' ) end [2024-12-17 21:10:17] Production.INFO: ProcessCDR(1,14043468,1,1,2) [2024-12-17 21:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043468', 'tblTempUsageDetail_20' ) start [2024-12-17 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043468', 'tblTempUsageDetail_20' ) end [2024-12-17 21:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:10:22] Production.INFO: ==7240== Releasing lock... [2024-12-17 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:10:22] Production.INFO: 40 MB #Memory Used# [2024-12-17 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:11:05 [end_date_ymd] => 2024-12-17 21:11:05 [RateCDR] => 1 ) [2024-12-17 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:11:05' and `end` < '2024-12-17 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:11:18] Production.INFO: count ==1581 [2024-12-17 21:11:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:11:05 - End Time 2024-12-17 21:11:05 [2024-12-17 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043473', 'tblTempUsageDetail_20' ) start [2024-12-17 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043473', 'tblTempUsageDetail_20' ) end [2024-12-17 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043473', 'tblTempVendorCDR_20' ) start [2024-12-17 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043473', 'tblTempVendorCDR_20' ) end [2024-12-17 21:11:18] Production.INFO: ProcessCDR(1,14043473,1,1,2) [2024-12-17 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043473', 'tblTempUsageDetail_20' ) start [2024-12-17 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043473', 'tblTempUsageDetail_20' ) end [2024-12-17 21:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:11:22] Production.INFO: ==7311== Releasing lock... [2024-12-17 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:11:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-17 21:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:12:04 [end_date_ymd] => 2024-12-17 21:12:04 [RateCDR] => 1 ) [2024-12-17 21: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-17 18:12:04' and `end` < '2024-12-17 21: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-17 21:12:17] Production.INFO: count ==1573 [2024-12-17 21:12:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:12:04 - End Time 2024-12-17 21:12:04 [2024-12-17 21:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043478', 'tblTempUsageDetail_20' ) start [2024-12-17 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043478', 'tblTempUsageDetail_20' ) end [2024-12-17 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043478', 'tblTempVendorCDR_20' ) start [2024-12-17 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043478', 'tblTempVendorCDR_20' ) end [2024-12-17 21:12:17] Production.INFO: ProcessCDR(1,14043478,1,1,2) [2024-12-17 21:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043478', 'tblTempUsageDetail_20' ) start [2024-12-17 21:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043478', 'tblTempUsageDetail_20' ) end [2024-12-17 21:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:12:20] Production.INFO: ==7386== Releasing lock... [2024-12-17 21:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:12:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-17 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:13:05 [end_date_ymd] => 2024-12-17 21:13:05 [RateCDR] => 1 ) [2024-12-17 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:13:05' and `end` < '2024-12-17 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:13:18] Production.INFO: count ==1572 [2024-12-17 21:13:19] Production.ERROR: pbx CDR StartTime 2024-12-17 18:13:05 - End Time 2024-12-17 21:13:05 [2024-12-17 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043483', 'tblTempUsageDetail_20' ) start [2024-12-17 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043483', 'tblTempUsageDetail_20' ) end [2024-12-17 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043483', 'tblTempVendorCDR_20' ) start [2024-12-17 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043483', 'tblTempVendorCDR_20' ) end [2024-12-17 21:13:19] Production.INFO: ProcessCDR(1,14043483,1,1,2) [2024-12-17 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043483', 'tblTempUsageDetail_20' ) start [2024-12-17 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043483', 'tblTempUsageDetail_20' ) end [2024-12-17 21:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:13:22] Production.INFO: ==7458== Releasing lock... [2024-12-17 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:13:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-17 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:14:05 [end_date_ymd] => 2024-12-17 21:14:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:14:05' and `end` < '2024-12-17 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-17 21:14:18] Production.INFO: count ==1561 [2024-12-17 21:14:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:14:05 - End Time 2024-12-17 21:14:05 [2024-12-17 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043488', 'tblTempUsageDetail_20' ) start [2024-12-17 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043488', 'tblTempUsageDetail_20' ) end [2024-12-17 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043488', 'tblTempVendorCDR_20' ) start [2024-12-17 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043488', 'tblTempVendorCDR_20' ) end [2024-12-17 21:14:18] Production.INFO: ProcessCDR(1,14043488,1,1,2) [2024-12-17 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043488', 'tblTempUsageDetail_20' ) start [2024-12-17 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043488', 'tblTempUsageDetail_20' ) end [2024-12-17 21:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:14:23] Production.INFO: ==7530== Releasing lock... [2024-12-17 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:14:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-17 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:15:05 [end_date_ymd] => 2024-12-17 21:15:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:15:05' and `end` < '2024-12-17 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-17 21:15:17] Production.INFO: count ==1560 [2024-12-17 21:15:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:15:05 - End Time 2024-12-17 21:15:05 [2024-12-17 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043493', 'tblTempUsageDetail_20' ) start [2024-12-17 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043493', 'tblTempUsageDetail_20' ) end [2024-12-17 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043493', 'tblTempVendorCDR_20' ) start [2024-12-17 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043493', 'tblTempVendorCDR_20' ) end [2024-12-17 21:15:18] Production.INFO: ProcessCDR(1,14043493,1,1,2) [2024-12-17 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043493', 'tblTempUsageDetail_20' ) start [2024-12-17 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043493', 'tblTempUsageDetail_20' ) end [2024-12-17 21:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:15:21] Production.INFO: ==7605== Releasing lock... [2024-12-17 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:15:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-17 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:16:05 [end_date_ymd] => 2024-12-17 21:16:05 [RateCDR] => 1 ) [2024-12-17 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:16:05' and `end` < '2024-12-17 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:16:18] Production.INFO: count ==1559 [2024-12-17 21:16:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:16:05 - End Time 2024-12-17 21:16:05 [2024-12-17 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043498', 'tblTempUsageDetail_20' ) start [2024-12-17 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043498', 'tblTempUsageDetail_20' ) end [2024-12-17 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043498', 'tblTempVendorCDR_20' ) start [2024-12-17 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043498', 'tblTempVendorCDR_20' ) end [2024-12-17 21:16:18] Production.INFO: ProcessCDR(1,14043498,1,1,2) [2024-12-17 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043498', 'tblTempUsageDetail_20' ) start [2024-12-17 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043498', 'tblTempUsageDetail_20' ) end [2024-12-17 21:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:16:21] Production.INFO: ==7680== Releasing lock... [2024-12-17 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:16:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-17 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:17:04 [end_date_ymd] => 2024-12-17 21:17:04 [RateCDR] => 1 ) [2024-12-17 21:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:17:04' and `end` < '2024-12-17 21:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:17:16] Production.INFO: count ==1540 [2024-12-17 21:17:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:17:04 - End Time 2024-12-17 21:17:04 [2024-12-17 21:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043503', 'tblTempUsageDetail_20' ) start [2024-12-17 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043503', 'tblTempUsageDetail_20' ) end [2024-12-17 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043503', 'tblTempVendorCDR_20' ) start [2024-12-17 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043503', 'tblTempVendorCDR_20' ) end [2024-12-17 21:17:17] Production.INFO: ProcessCDR(1,14043503,1,1,2) [2024-12-17 21:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043503', 'tblTempUsageDetail_20' ) start [2024-12-17 21:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043503', 'tblTempUsageDetail_20' ) end [2024-12-17 21:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:17:20] Production.INFO: ==7753== Releasing lock... [2024-12-17 21:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:17:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-17 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:18:05 [end_date_ymd] => 2024-12-17 21:18:05 [RateCDR] => 1 ) [2024-12-17 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:18:05' and `end` < '2024-12-17 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:18:17] Production.INFO: count ==1541 [2024-12-17 21:18:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:18:05 - End Time 2024-12-17 21:18:05 [2024-12-17 21:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043508', 'tblTempUsageDetail_20' ) start [2024-12-17 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043508', 'tblTempUsageDetail_20' ) end [2024-12-17 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043508', 'tblTempVendorCDR_20' ) start [2024-12-17 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043508', 'tblTempVendorCDR_20' ) end [2024-12-17 21:18:17] Production.INFO: ProcessCDR(1,14043508,1,1,2) [2024-12-17 21:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043508', 'tblTempUsageDetail_20' ) start [2024-12-17 21:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043508', 'tblTempUsageDetail_20' ) end [2024-12-17 21:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:18:20] Production.INFO: ==7836== Releasing lock... [2024-12-17 21:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:18:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-17 21:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:19:04 [end_date_ymd] => 2024-12-17 21:19:04 [RateCDR] => 1 ) [2024-12-17 21: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-17 18:19:04' and `end` < '2024-12-17 21: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-17 21:19:17] Production.INFO: count ==1536 [2024-12-17 21:19:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:19:04 - End Time 2024-12-17 21:19:04 [2024-12-17 21:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043513', 'tblTempUsageDetail_20' ) start [2024-12-17 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043513', 'tblTempUsageDetail_20' ) end [2024-12-17 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043513', 'tblTempVendorCDR_20' ) start [2024-12-17 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043513', 'tblTempVendorCDR_20' ) end [2024-12-17 21:19:17] Production.INFO: ProcessCDR(1,14043513,1,1,2) [2024-12-17 21:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043513', 'tblTempUsageDetail_20' ) start [2024-12-17 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043513', 'tblTempUsageDetail_20' ) end [2024-12-17 21:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:19:20] Production.INFO: ==7915== Releasing lock... [2024-12-17 21:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:19:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-17 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:20:05 [end_date_ymd] => 2024-12-17 21:20:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:20:05' and `end` < '2024-12-17 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-17 21:20:17] Production.INFO: count ==1533 [2024-12-17 21:20:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:20:05 - End Time 2024-12-17 21:20:05 [2024-12-17 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043519', 'tblTempUsageDetail_20' ) start [2024-12-17 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043519', 'tblTempUsageDetail_20' ) end [2024-12-17 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043519', 'tblTempVendorCDR_20' ) start [2024-12-17 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043519', 'tblTempVendorCDR_20' ) end [2024-12-17 21:20:18] Production.INFO: ProcessCDR(1,14043519,1,1,2) [2024-12-17 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043519', 'tblTempUsageDetail_20' ) start [2024-12-17 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043519', 'tblTempUsageDetail_20' ) end [2024-12-17 21:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:20:21] Production.INFO: ==7997== Releasing lock... [2024-12-17 21:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:20:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:21:05 [end_date_ymd] => 2024-12-17 21:21:05 [RateCDR] => 1 ) [2024-12-17 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:21:05' and `end` < '2024-12-17 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:21:18] Production.INFO: count ==1510 [2024-12-17 21:21:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:21:05 - End Time 2024-12-17 21:21:05 [2024-12-17 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043524', 'tblTempUsageDetail_20' ) start [2024-12-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043524', 'tblTempUsageDetail_20' ) end [2024-12-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043524', 'tblTempVendorCDR_20' ) start [2024-12-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043524', 'tblTempVendorCDR_20' ) end [2024-12-17 21:21:18] Production.INFO: ProcessCDR(1,14043524,1,1,2) [2024-12-17 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043524', 'tblTempUsageDetail_20' ) start [2024-12-17 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043524', 'tblTempUsageDetail_20' ) end [2024-12-17 21:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:21:21] Production.INFO: ==8117== Releasing lock... [2024-12-17 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:21:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 21:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:22:04 [end_date_ymd] => 2024-12-17 21:22:04 [RateCDR] => 1 ) [2024-12-17 21: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 18:22:04' and `end` < '2024-12-17 21: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-17 21:22:17] Production.INFO: count ==1506 [2024-12-17 21:22:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:22:04 - End Time 2024-12-17 21:22:04 [2024-12-17 21:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043529', 'tblTempUsageDetail_20' ) start [2024-12-17 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043529', 'tblTempUsageDetail_20' ) end [2024-12-17 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043529', 'tblTempVendorCDR_20' ) start [2024-12-17 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043529', 'tblTempVendorCDR_20' ) end [2024-12-17 21:22:17] Production.INFO: ProcessCDR(1,14043529,1,1,2) [2024-12-17 21:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043529', 'tblTempUsageDetail_20' ) start [2024-12-17 21:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043529', 'tblTempUsageDetail_20' ) end [2024-12-17 21:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:22:20] Production.INFO: ==8199== Releasing lock... [2024-12-17 21:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:22:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:23:05 [end_date_ymd] => 2024-12-17 21:23:05 [RateCDR] => 1 ) [2024-12-17 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:23:05' and `end` < '2024-12-17 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:23:17] Production.INFO: count ==1499 [2024-12-17 21:23:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:23:05 - End Time 2024-12-17 21:23:05 [2024-12-17 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043534', 'tblTempUsageDetail_20' ) start [2024-12-17 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043534', 'tblTempUsageDetail_20' ) end [2024-12-17 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043534', 'tblTempVendorCDR_20' ) start [2024-12-17 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043534', 'tblTempVendorCDR_20' ) end [2024-12-17 21:23:17] Production.INFO: ProcessCDR(1,14043534,1,1,2) [2024-12-17 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043534', 'tblTempUsageDetail_20' ) start [2024-12-17 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043534', 'tblTempUsageDetail_20' ) end [2024-12-17 21:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:23:20] Production.INFO: ==8277== Releasing lock... [2024-12-17 21:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:23:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:24:05 [end_date_ymd] => 2024-12-17 21:24:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:24:05' and `end` < '2024-12-17 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-17 21:24:17] Production.INFO: count ==1498 [2024-12-17 21:24:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:24:05 - End Time 2024-12-17 21:24:05 [2024-12-17 21:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043539', 'tblTempUsageDetail_20' ) start [2024-12-17 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043539', 'tblTempUsageDetail_20' ) end [2024-12-17 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043539', 'tblTempVendorCDR_20' ) start [2024-12-17 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043539', 'tblTempVendorCDR_20' ) end [2024-12-17 21:24:17] Production.INFO: ProcessCDR(1,14043539,1,1,2) [2024-12-17 21:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043539', 'tblTempUsageDetail_20' ) start [2024-12-17 21:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043539', 'tblTempUsageDetail_20' ) end [2024-12-17 21:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:24:20] Production.INFO: ==8354== Releasing lock... [2024-12-17 21:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:24:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:25:05 [end_date_ymd] => 2024-12-17 21:25:05 [RateCDR] => 1 ) [2024-12-17 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:25:05' and `end` < '2024-12-17 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:25:17] Production.INFO: count ==1499 [2024-12-17 21:25:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:25:05 - End Time 2024-12-17 21:25:05 [2024-12-17 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043544', 'tblTempUsageDetail_20' ) start [2024-12-17 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043544', 'tblTempUsageDetail_20' ) end [2024-12-17 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043544', 'tblTempVendorCDR_20' ) start [2024-12-17 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043544', 'tblTempVendorCDR_20' ) end [2024-12-17 21:25:17] Production.INFO: ProcessCDR(1,14043544,1,1,2) [2024-12-17 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043544', 'tblTempUsageDetail_20' ) start [2024-12-17 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043544', 'tblTempUsageDetail_20' ) end [2024-12-17 21:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:25:20] Production.INFO: ==8436== Releasing lock... [2024-12-17 21:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:25:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:26:05 [end_date_ymd] => 2024-12-17 21:26:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:26:05' and `end` < '2024-12-17 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-17 21:26:17] Production.INFO: count ==1497 [2024-12-17 21:26:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:26:05 - End Time 2024-12-17 21:26:05 [2024-12-17 21:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043549', 'tblTempUsageDetail_20' ) start [2024-12-17 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043549', 'tblTempUsageDetail_20' ) end [2024-12-17 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043549', 'tblTempVendorCDR_20' ) start [2024-12-17 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043549', 'tblTempVendorCDR_20' ) end [2024-12-17 21:26:18] Production.INFO: ProcessCDR(1,14043549,1,1,2) [2024-12-17 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043549', 'tblTempUsageDetail_20' ) start [2024-12-17 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043549', 'tblTempUsageDetail_20' ) end [2024-12-17 21:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:26:22] Production.INFO: ==8512== Releasing lock... [2024-12-17 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:26:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-17 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:27:04 [end_date_ymd] => 2024-12-17 21:27:04 [RateCDR] => 1 ) [2024-12-17 21: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 18:27:04' and `end` < '2024-12-17 21: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-17 21:27:17] Production.INFO: count ==1493 [2024-12-17 21:27:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:27:04 - End Time 2024-12-17 21:27:04 [2024-12-17 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043554', 'tblTempUsageDetail_20' ) start [2024-12-17 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043554', 'tblTempUsageDetail_20' ) end [2024-12-17 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043554', 'tblTempVendorCDR_20' ) start [2024-12-17 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043554', 'tblTempVendorCDR_20' ) end [2024-12-17 21:27:17] Production.INFO: ProcessCDR(1,14043554,1,1,2) [2024-12-17 21:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043554', 'tblTempUsageDetail_20' ) start [2024-12-17 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043554', 'tblTempUsageDetail_20' ) end [2024-12-17 21:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:27:20] Production.INFO: ==8593== Releasing lock... [2024-12-17 21:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:27:20] Production.INFO: 39 MB #Memory Used# [2024-12-17 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:28:06 [end_date_ymd] => 2024-12-17 21:28:06 [RateCDR] => 1 ) [2024-12-17 21:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:28:06' and `end` < '2024-12-17 21:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:28:19] Production.INFO: count ==1475 [2024-12-17 21:28:19] Production.ERROR: pbx CDR StartTime 2024-12-17 18:28:06 - End Time 2024-12-17 21:28:06 [2024-12-17 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043559', 'tblTempUsageDetail_20' ) start [2024-12-17 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043559', 'tblTempUsageDetail_20' ) end [2024-12-17 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043559', 'tblTempVendorCDR_20' ) start [2024-12-17 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043559', 'tblTempVendorCDR_20' ) end [2024-12-17 21:28:19] Production.INFO: ProcessCDR(1,14043559,1,1,2) [2024-12-17 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043559', 'tblTempUsageDetail_20' ) start [2024-12-17 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043559', 'tblTempUsageDetail_20' ) end [2024-12-17 21:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:28:22] Production.INFO: ==8668== Releasing lock... [2024-12-17 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:28:22] Production.INFO: 39 MB #Memory Used# [2024-12-17 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:29:05 [end_date_ymd] => 2024-12-17 21:29:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:29:05' and `end` < '2024-12-17 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-17 21:29:17] Production.INFO: count ==1458 [2024-12-17 21:29:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:29:05 - End Time 2024-12-17 21:29:05 [2024-12-17 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043564', 'tblTempUsageDetail_20' ) start [2024-12-17 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043564', 'tblTempUsageDetail_20' ) end [2024-12-17 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043564', 'tblTempVendorCDR_20' ) start [2024-12-17 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043564', 'tblTempVendorCDR_20' ) end [2024-12-17 21:29:18] Production.INFO: ProcessCDR(1,14043564,1,1,2) [2024-12-17 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043564', 'tblTempUsageDetail_20' ) start [2024-12-17 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043564', 'tblTempUsageDetail_20' ) end [2024-12-17 21:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:29:21] Production.INFO: ==8749== Releasing lock... [2024-12-17 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:29:21] Production.INFO: 39 MB #Memory Used# [2024-12-17 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:30:05 [end_date_ymd] => 2024-12-17 21:30:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:30:05' and `end` < '2024-12-17 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-17 21:30:18] Production.INFO: count ==1433 [2024-12-17 21:30:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:30:05 - End Time 2024-12-17 21:30:05 [2024-12-17 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043570', 'tblTempUsageDetail_20' ) start [2024-12-17 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043570', 'tblTempUsageDetail_20' ) end [2024-12-17 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043570', 'tblTempVendorCDR_20' ) start [2024-12-17 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043570', 'tblTempVendorCDR_20' ) end [2024-12-17 21:30:18] Production.INFO: ProcessCDR(1,14043570,1,1,2) [2024-12-17 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043570', 'tblTempUsageDetail_20' ) start [2024-12-17 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043570', 'tblTempUsageDetail_20' ) end [2024-12-17 21:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:30:22] Production.INFO: ==8827== Releasing lock... [2024-12-17 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:30:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-17 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:31:05 [end_date_ymd] => 2024-12-17 21:31:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:31:05' and `end` < '2024-12-17 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-17 21:31:17] Production.INFO: count ==1331 [2024-12-17 21:31:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:31:05 - End Time 2024-12-17 21:31:05 [2024-12-17 21:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043575', 'tblTempUsageDetail_20' ) start [2024-12-17 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043575', 'tblTempUsageDetail_20' ) end [2024-12-17 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043575', 'tblTempVendorCDR_20' ) start [2024-12-17 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043575', 'tblTempVendorCDR_20' ) end [2024-12-17 21:31:17] Production.INFO: ProcessCDR(1,14043575,1,1,2) [2024-12-17 21:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043575', 'tblTempUsageDetail_20' ) start [2024-12-17 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043575', 'tblTempUsageDetail_20' ) end [2024-12-17 21:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:31:20] Production.INFO: ==8912== Releasing lock... [2024-12-17 21:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:31:20] Production.INFO: 38 MB #Memory Used# [2024-12-17 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:32:05 [end_date_ymd] => 2024-12-17 21:32:05 [RateCDR] => 1 ) [2024-12-17 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:32:05' and `end` < '2024-12-17 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:32:18] Production.INFO: count ==1327 [2024-12-17 21:32:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:32:05 - End Time 2024-12-17 21:32:05 [2024-12-17 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043580', 'tblTempUsageDetail_20' ) start [2024-12-17 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043580', 'tblTempUsageDetail_20' ) end [2024-12-17 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043580', 'tblTempVendorCDR_20' ) start [2024-12-17 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043580', 'tblTempVendorCDR_20' ) end [2024-12-17 21:32:18] Production.INFO: ProcessCDR(1,14043580,1,1,2) [2024-12-17 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043580', 'tblTempUsageDetail_20' ) start [2024-12-17 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043580', 'tblTempUsageDetail_20' ) end [2024-12-17 21:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:32:21] Production.INFO: ==8988== Releasing lock... [2024-12-17 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:32:21] Production.INFO: 38 MB #Memory Used# [2024-12-17 21:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:33:04 [end_date_ymd] => 2024-12-17 21:33:04 [RateCDR] => 1 ) [2024-12-17 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-17 18:33:04' and `end` < '2024-12-17 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-17 21:33:17] Production.INFO: count ==1319 [2024-12-17 21:33:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:33:04 - End Time 2024-12-17 21:33:04 [2024-12-17 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043585', 'tblTempUsageDetail_20' ) start [2024-12-17 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043585', 'tblTempUsageDetail_20' ) end [2024-12-17 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043585', 'tblTempVendorCDR_20' ) start [2024-12-17 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043585', 'tblTempVendorCDR_20' ) end [2024-12-17 21:33:17] Production.INFO: ProcessCDR(1,14043585,1,1,2) [2024-12-17 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043585', 'tblTempUsageDetail_20' ) start [2024-12-17 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043585', 'tblTempUsageDetail_20' ) end [2024-12-17 21:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:33:20] Production.INFO: ==9079== Releasing lock... [2024-12-17 21:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:33:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-17 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:34:05 [end_date_ymd] => 2024-12-17 21:34:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:34:05' and `end` < '2024-12-17 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-17 21:34:19] Production.INFO: count ==1287 [2024-12-17 21:34:19] Production.ERROR: pbx CDR StartTime 2024-12-17 18:34:05 - End Time 2024-12-17 21:34:05 [2024-12-17 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043590', 'tblTempUsageDetail_20' ) start [2024-12-17 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043590', 'tblTempUsageDetail_20' ) end [2024-12-17 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043590', 'tblTempVendorCDR_20' ) start [2024-12-17 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043590', 'tblTempVendorCDR_20' ) end [2024-12-17 21:34:19] Production.INFO: ProcessCDR(1,14043590,1,1,2) [2024-12-17 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043590', 'tblTempUsageDetail_20' ) start [2024-12-17 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043590', 'tblTempUsageDetail_20' ) end [2024-12-17 21:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:34:22] Production.INFO: ==9155== Releasing lock... [2024-12-17 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:34:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 21:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:35:04 [end_date_ymd] => 2024-12-17 21:35:04 [RateCDR] => 1 ) [2024-12-17 21: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 18:35:04' and `end` < '2024-12-17 21: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-17 21:35:16] Production.INFO: count ==1284 [2024-12-17 21:35:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:35:04 - End Time 2024-12-17 21:35:04 [2024-12-17 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043595', 'tblTempUsageDetail_20' ) start [2024-12-17 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043595', 'tblTempUsageDetail_20' ) end [2024-12-17 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043595', 'tblTempVendorCDR_20' ) start [2024-12-17 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043595', 'tblTempVendorCDR_20' ) end [2024-12-17 21:35:17] Production.INFO: ProcessCDR(1,14043595,1,1,2) [2024-12-17 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043595', 'tblTempUsageDetail_20' ) start [2024-12-17 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043595', 'tblTempUsageDetail_20' ) end [2024-12-17 21:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:35:20] Production.INFO: ==9234== Releasing lock... [2024-12-17 21:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:35:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:36:05 [end_date_ymd] => 2024-12-17 21:36:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:36:05' and `end` < '2024-12-17 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-17 21:36:17] Production.INFO: count ==1273 [2024-12-17 21:36:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:36:05 - End Time 2024-12-17 21:36:05 [2024-12-17 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043600', 'tblTempUsageDetail_20' ) start [2024-12-17 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043600', 'tblTempUsageDetail_20' ) end [2024-12-17 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043600', 'tblTempVendorCDR_20' ) start [2024-12-17 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043600', 'tblTempVendorCDR_20' ) end [2024-12-17 21:36:17] Production.INFO: ProcessCDR(1,14043600,1,1,2) [2024-12-17 21:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043600', 'tblTempUsageDetail_20' ) start [2024-12-17 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043600', 'tblTempUsageDetail_20' ) end [2024-12-17 21:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:36:20] Production.INFO: ==9311== Releasing lock... [2024-12-17 21:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:36:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:37:05 [end_date_ymd] => 2024-12-17 21:37:05 [RateCDR] => 1 ) [2024-12-17 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:37:05' and `end` < '2024-12-17 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:37:18] Production.INFO: count ==1271 [2024-12-17 21:37:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:37:05 - End Time 2024-12-17 21:37:05 [2024-12-17 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043605', 'tblTempUsageDetail_20' ) start [2024-12-17 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043605', 'tblTempUsageDetail_20' ) end [2024-12-17 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043605', 'tblTempVendorCDR_20' ) start [2024-12-17 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043605', 'tblTempVendorCDR_20' ) end [2024-12-17 21:37:18] Production.INFO: ProcessCDR(1,14043605,1,1,2) [2024-12-17 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043605', 'tblTempUsageDetail_20' ) start [2024-12-17 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043605', 'tblTempUsageDetail_20' ) end [2024-12-17 21:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:37:21] Production.INFO: ==9428== Releasing lock... [2024-12-17 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:37:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:38:05 [end_date_ymd] => 2024-12-17 21:38:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:38:05' and `end` < '2024-12-17 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-17 21:38:17] Production.INFO: count ==1267 [2024-12-17 21:38:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:38:05 - End Time 2024-12-17 21:38:05 [2024-12-17 21:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043610', 'tblTempUsageDetail_20' ) start [2024-12-17 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043610', 'tblTempUsageDetail_20' ) end [2024-12-17 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043610', 'tblTempVendorCDR_20' ) start [2024-12-17 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043610', 'tblTempVendorCDR_20' ) end [2024-12-17 21:38:17] Production.INFO: ProcessCDR(1,14043610,1,1,2) [2024-12-17 21:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043610', 'tblTempUsageDetail_20' ) start [2024-12-17 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043610', 'tblTempUsageDetail_20' ) end [2024-12-17 21:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:38:21] Production.INFO: ==9504== Releasing lock... [2024-12-17 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:38:21] Production.INFO: 37 MB #Memory Used# [2024-12-17 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:39:05 [end_date_ymd] => 2024-12-17 21:39:05 [RateCDR] => 1 ) [2024-12-17 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:39:05' and `end` < '2024-12-17 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:39:17] Production.INFO: count ==1265 [2024-12-17 21:39:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:39:05 - End Time 2024-12-17 21:39:05 [2024-12-17 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043615', 'tblTempUsageDetail_20' ) start [2024-12-17 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043615', 'tblTempUsageDetail_20' ) end [2024-12-17 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043615', 'tblTempVendorCDR_20' ) start [2024-12-17 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043615', 'tblTempVendorCDR_20' ) end [2024-12-17 21:39:17] Production.INFO: ProcessCDR(1,14043615,1,1,2) [2024-12-17 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043615', 'tblTempUsageDetail_20' ) start [2024-12-17 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043615', 'tblTempUsageDetail_20' ) end [2024-12-17 21:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:39:20] Production.INFO: ==9582== Releasing lock... [2024-12-17 21:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:39:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:40:05 [end_date_ymd] => 2024-12-17 21:40:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:40:05' and `end` < '2024-12-17 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-17 21:40:17] Production.INFO: count ==1261 [2024-12-17 21:40:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:40:05 - End Time 2024-12-17 21:40:05 [2024-12-17 21:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043620', 'tblTempUsageDetail_20' ) start [2024-12-17 21:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043620', 'tblTempUsageDetail_20' ) end [2024-12-17 21:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043620', 'tblTempVendorCDR_20' ) start [2024-12-17 21:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043620', 'tblTempVendorCDR_20' ) end [2024-12-17 21:40:17] Production.INFO: ProcessCDR(1,14043620,1,1,2) [2024-12-17 21:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043620', 'tblTempUsageDetail_20' ) start [2024-12-17 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043620', 'tblTempUsageDetail_20' ) end [2024-12-17 21:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:40:22] Production.INFO: ==9662== Releasing lock... [2024-12-17 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:40:22] Production.INFO: 37 MB #Memory Used# [2024-12-17 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:41:05 [end_date_ymd] => 2024-12-17 21:41:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:41:05' and `end` < '2024-12-17 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-17 21:41:18] Production.INFO: count ==1231 [2024-12-17 21:41:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:41:05 - End Time 2024-12-17 21:41:05 [2024-12-17 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043626', 'tblTempUsageDetail_20' ) start [2024-12-17 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043626', 'tblTempUsageDetail_20' ) end [2024-12-17 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043626', 'tblTempVendorCDR_20' ) start [2024-12-17 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043626', 'tblTempVendorCDR_20' ) end [2024-12-17 21:41:18] Production.INFO: ProcessCDR(1,14043626,1,1,2) [2024-12-17 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043626', 'tblTempUsageDetail_20' ) start [2024-12-17 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043626', 'tblTempUsageDetail_20' ) end [2024-12-17 21:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:41:21] Production.INFO: ==9741== Releasing lock... [2024-12-17 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:41:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-17 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:42:05 [end_date_ymd] => 2024-12-17 21:42:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:42:05' and `end` < '2024-12-17 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-17 21:42:17] Production.INFO: count ==1312 [2024-12-17 21:42:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:42:05 - End Time 2024-12-17 21:42:05 [2024-12-17 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043631', 'tblTempUsageDetail_20' ) start [2024-12-17 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043631', 'tblTempUsageDetail_20' ) end [2024-12-17 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043631', 'tblTempVendorCDR_20' ) start [2024-12-17 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043631', 'tblTempVendorCDR_20' ) end [2024-12-17 21:42:18] Production.INFO: ProcessCDR(1,14043631,1,1,2) [2024-12-17 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043631', 'tblTempUsageDetail_20' ) start [2024-12-17 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043631', 'tblTempUsageDetail_20' ) end [2024-12-17 21:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:42:22] Production.INFO: ==9820== Releasing lock... [2024-12-17 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:42:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-17 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:43:05 [end_date_ymd] => 2024-12-17 21:43:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:43:05' and `end` < '2024-12-17 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-17 21:43:17] Production.INFO: count ==1312 [2024-12-17 21:43:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:43:05 - End Time 2024-12-17 21:43:05 [2024-12-17 21:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043636', 'tblTempUsageDetail_20' ) start [2024-12-17 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043636', 'tblTempUsageDetail_20' ) end [2024-12-17 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043636', 'tblTempVendorCDR_20' ) start [2024-12-17 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043636', 'tblTempVendorCDR_20' ) end [2024-12-17 21:43:17] Production.INFO: ProcessCDR(1,14043636,1,1,2) [2024-12-17 21:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043636', 'tblTempUsageDetail_20' ) start [2024-12-17 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043636', 'tblTempUsageDetail_20' ) end [2024-12-17 21:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:43:22] Production.INFO: ==9893== Releasing lock... [2024-12-17 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:43:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-17 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:44:05 [end_date_ymd] => 2024-12-17 21:44:05 [RateCDR] => 1 ) [2024-12-17 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:44:05' and `end` < '2024-12-17 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:44:17] Production.INFO: count ==1312 [2024-12-17 21:44:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:44:05 - End Time 2024-12-17 21:44:05 [2024-12-17 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043641', 'tblTempUsageDetail_20' ) start [2024-12-17 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043641', 'tblTempUsageDetail_20' ) end [2024-12-17 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043641', 'tblTempVendorCDR_20' ) start [2024-12-17 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043641', 'tblTempVendorCDR_20' ) end [2024-12-17 21:44:17] Production.INFO: ProcessCDR(1,14043641,1,1,2) [2024-12-17 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043641', 'tblTempUsageDetail_20' ) start [2024-12-17 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043641', 'tblTempUsageDetail_20' ) end [2024-12-17 21:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:44:22] Production.INFO: ==9967== Releasing lock... [2024-12-17 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:44:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-17 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:45:05 [end_date_ymd] => 2024-12-17 21:45:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:45:05' and `end` < '2024-12-17 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-17 21:45:17] Production.INFO: count ==1309 [2024-12-17 21:45:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:45:05 - End Time 2024-12-17 21:45:05 [2024-12-17 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043646', 'tblTempUsageDetail_20' ) start [2024-12-17 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043646', 'tblTempUsageDetail_20' ) end [2024-12-17 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043646', 'tblTempVendorCDR_20' ) start [2024-12-17 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043646', 'tblTempVendorCDR_20' ) end [2024-12-17 21:45:17] Production.INFO: ProcessCDR(1,14043646,1,1,2) [2024-12-17 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043646', 'tblTempUsageDetail_20' ) start [2024-12-17 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043646', 'tblTempUsageDetail_20' ) end [2024-12-17 21:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:45:22] Production.INFO: ==10041== Releasing lock... [2024-12-17 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:45:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-17 21:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:46:04 [end_date_ymd] => 2024-12-17 21:46:04 [RateCDR] => 1 ) [2024-12-17 21: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 18:46:04' and `end` < '2024-12-17 21: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-17 21:46:17] Production.INFO: count ==1304 [2024-12-17 21:46:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:46:04 - End Time 2024-12-17 21:46:04 [2024-12-17 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043651', 'tblTempUsageDetail_20' ) start [2024-12-17 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043651', 'tblTempUsageDetail_20' ) end [2024-12-17 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043651', 'tblTempVendorCDR_20' ) start [2024-12-17 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043651', 'tblTempVendorCDR_20' ) end [2024-12-17 21:46:17] Production.INFO: ProcessCDR(1,14043651,1,1,2) [2024-12-17 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043651', 'tblTempUsageDetail_20' ) start [2024-12-17 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043651', 'tblTempUsageDetail_20' ) end [2024-12-17 21:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:46:20] Production.INFO: ==10119== Releasing lock... [2024-12-17 21:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:46:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-17 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:47:05 [end_date_ymd] => 2024-12-17 21:47:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:47:05' and `end` < '2024-12-17 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-17 21:47:17] Production.INFO: count ==1304 [2024-12-17 21:47:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:47:05 - End Time 2024-12-17 21:47:05 [2024-12-17 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043656', 'tblTempUsageDetail_20' ) start [2024-12-17 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043656', 'tblTempUsageDetail_20' ) end [2024-12-17 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043656', 'tblTempVendorCDR_20' ) start [2024-12-17 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043656', 'tblTempVendorCDR_20' ) end [2024-12-17 21:47:17] Production.INFO: ProcessCDR(1,14043656,1,1,2) [2024-12-17 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043656', 'tblTempUsageDetail_20' ) start [2024-12-17 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043656', 'tblTempUsageDetail_20' ) end [2024-12-17 21:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:47:22] Production.INFO: ==10194== Releasing lock... [2024-12-17 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:47:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-17 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:48:05 [end_date_ymd] => 2024-12-17 21:48:05 [RateCDR] => 1 ) [2024-12-17 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:48:05' and `end` < '2024-12-17 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:48:17] Production.INFO: count ==1307 [2024-12-17 21:48:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:48:05 - End Time 2024-12-17 21:48:05 [2024-12-17 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043661', 'tblTempUsageDetail_20' ) start [2024-12-17 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043661', 'tblTempUsageDetail_20' ) end [2024-12-17 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043661', 'tblTempVendorCDR_20' ) start [2024-12-17 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043661', 'tblTempVendorCDR_20' ) end [2024-12-17 21:48:17] Production.INFO: ProcessCDR(1,14043661,1,1,2) [2024-12-17 21:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043661', 'tblTempUsageDetail_20' ) start [2024-12-17 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043661', 'tblTempUsageDetail_20' ) end [2024-12-17 21:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:48:21] Production.INFO: ==10274== Releasing lock... [2024-12-17 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:48:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-17 21:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:49:04 [end_date_ymd] => 2024-12-17 21:49:04 [RateCDR] => 1 ) [2024-12-17 21: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 18:49:04' and `end` < '2024-12-17 21: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-17 21:49:17] Production.INFO: count ==1307 [2024-12-17 21:49:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:49:04 - End Time 2024-12-17 21:49:04 [2024-12-17 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043666', 'tblTempUsageDetail_20' ) start [2024-12-17 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043666', 'tblTempUsageDetail_20' ) end [2024-12-17 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043666', 'tblTempVendorCDR_20' ) start [2024-12-17 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043666', 'tblTempVendorCDR_20' ) end [2024-12-17 21:49:17] Production.INFO: ProcessCDR(1,14043666,1,1,2) [2024-12-17 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043666', 'tblTempUsageDetail_20' ) start [2024-12-17 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043666', 'tblTempUsageDetail_20' ) end [2024-12-17 21:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:49:20] Production.INFO: ==10356== Releasing lock... [2024-12-17 21:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:49:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-17 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:50:05 [end_date_ymd] => 2024-12-17 21:50:05 [RateCDR] => 1 ) [2024-12-17 21: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 18:50:05' and `end` < '2024-12-17 21: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-17 21:50:18] Production.INFO: count ==1306 [2024-12-17 21:50:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:50:05 - End Time 2024-12-17 21:50:05 [2024-12-17 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043672', 'tblTempUsageDetail_20' ) start [2024-12-17 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043672', 'tblTempUsageDetail_20' ) end [2024-12-17 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043672', 'tblTempVendorCDR_20' ) start [2024-12-17 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043672', 'tblTempVendorCDR_20' ) end [2024-12-17 21:50:18] Production.INFO: ProcessCDR(1,14043672,1,1,2) [2024-12-17 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043672', 'tblTempUsageDetail_20' ) start [2024-12-17 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043672', 'tblTempUsageDetail_20' ) end [2024-12-17 21:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:50:21] Production.INFO: ==10434== Releasing lock... [2024-12-17 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:50:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-17 21:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:51:04 [end_date_ymd] => 2024-12-17 21:51:04 [RateCDR] => 1 ) [2024-12-17 21: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 18:51:04' and `end` < '2024-12-17 21: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-17 21:51:17] Production.INFO: count ==1257 [2024-12-17 21:51:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:51:04 - End Time 2024-12-17 21:51:04 [2024-12-17 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043677', 'tblTempUsageDetail_20' ) start [2024-12-17 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043677', 'tblTempUsageDetail_20' ) end [2024-12-17 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043677', 'tblTempVendorCDR_20' ) start [2024-12-17 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043677', 'tblTempVendorCDR_20' ) end [2024-12-17 21:51:18] Production.INFO: ProcessCDR(1,14043677,1,1,2) [2024-12-17 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043677', 'tblTempUsageDetail_20' ) start [2024-12-17 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043677', 'tblTempUsageDetail_20' ) end [2024-12-17 21:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:51:21] Production.INFO: ==10513== Releasing lock... [2024-12-17 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:51:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:52:05 [end_date_ymd] => 2024-12-17 21:52:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:52:05' and `end` < '2024-12-17 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-17 21:52:18] Production.INFO: count ==1248 [2024-12-17 21:52:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:52:05 - End Time 2024-12-17 21:52:05 [2024-12-17 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043682', 'tblTempUsageDetail_20' ) start [2024-12-17 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043682', 'tblTempUsageDetail_20' ) end [2024-12-17 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043682', 'tblTempVendorCDR_20' ) start [2024-12-17 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043682', 'tblTempVendorCDR_20' ) end [2024-12-17 21:52:18] Production.INFO: ProcessCDR(1,14043682,1,1,2) [2024-12-17 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043682', 'tblTempUsageDetail_20' ) start [2024-12-17 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043682', 'tblTempUsageDetail_20' ) end [2024-12-17 21:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:52:22] Production.INFO: ==10626== Releasing lock... [2024-12-17 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:52:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-17 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:53:05 [end_date_ymd] => 2024-12-17 21:53:05 [RateCDR] => 1 ) [2024-12-17 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:53:05' and `end` < '2024-12-17 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:53:17] Production.INFO: count ==1247 [2024-12-17 21:53:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:53:05 - End Time 2024-12-17 21:53:05 [2024-12-17 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043687', 'tblTempUsageDetail_20' ) start [2024-12-17 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043687', 'tblTempUsageDetail_20' ) end [2024-12-17 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043687', 'tblTempVendorCDR_20' ) start [2024-12-17 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043687', 'tblTempVendorCDR_20' ) end [2024-12-17 21:53:17] Production.INFO: ProcessCDR(1,14043687,1,1,2) [2024-12-17 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043687', 'tblTempUsageDetail_20' ) start [2024-12-17 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043687', 'tblTempUsageDetail_20' ) end [2024-12-17 21:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:53:20] Production.INFO: ==10704== Releasing lock... [2024-12-17 21:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:53:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-17 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:54:04 [end_date_ymd] => 2024-12-17 21:54:04 [RateCDR] => 1 ) [2024-12-17 21: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 18:54:04' and `end` < '2024-12-17 21: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-17 21:54:17] Production.INFO: count ==1240 [2024-12-17 21:54:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:54:04 - End Time 2024-12-17 21:54:04 [2024-12-17 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043692', 'tblTempUsageDetail_20' ) start [2024-12-17 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043692', 'tblTempUsageDetail_20' ) end [2024-12-17 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043692', 'tblTempVendorCDR_20' ) start [2024-12-17 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043692', 'tblTempVendorCDR_20' ) end [2024-12-17 21:54:17] Production.INFO: ProcessCDR(1,14043692,1,1,2) [2024-12-17 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043692', 'tblTempUsageDetail_20' ) start [2024-12-17 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043692', 'tblTempUsageDetail_20' ) end [2024-12-17 21:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:54:21] Production.INFO: ==10778== Releasing lock... [2024-12-17 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:54:21] Production.INFO: 37 MB #Memory Used# [2024-12-17 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:55:05 [end_date_ymd] => 2024-12-17 21:55:05 [RateCDR] => 1 ) [2024-12-17 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:55:05' and `end` < '2024-12-17 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:55:17] Production.INFO: count ==1240 [2024-12-17 21:55:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:55:05 - End Time 2024-12-17 21:55:05 [2024-12-17 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043697', 'tblTempUsageDetail_20' ) start [2024-12-17 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043697', 'tblTempUsageDetail_20' ) end [2024-12-17 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043697', 'tblTempVendorCDR_20' ) start [2024-12-17 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043697', 'tblTempVendorCDR_20' ) end [2024-12-17 21:55:17] Production.INFO: ProcessCDR(1,14043697,1,1,2) [2024-12-17 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043697', 'tblTempUsageDetail_20' ) start [2024-12-17 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043697', 'tblTempUsageDetail_20' ) end [2024-12-17 21:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:55:22] Production.INFO: ==10857== Releasing lock... [2024-12-17 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:55:22] Production.INFO: 37 MB #Memory Used# [2024-12-17 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:56:05 [end_date_ymd] => 2024-12-17 21:56:05 [RateCDR] => 1 ) [2024-12-17 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 18:56:05' and `end` < '2024-12-17 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 21:56:18] Production.INFO: count ==1239 [2024-12-17 21:56:19] Production.ERROR: pbx CDR StartTime 2024-12-17 18:56:05 - End Time 2024-12-17 21:56:05 [2024-12-17 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043702', 'tblTempUsageDetail_20' ) start [2024-12-17 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043702', 'tblTempUsageDetail_20' ) end [2024-12-17 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043702', 'tblTempVendorCDR_20' ) start [2024-12-17 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043702', 'tblTempVendorCDR_20' ) end [2024-12-17 21:56:19] Production.INFO: ProcessCDR(1,14043702,1,1,2) [2024-12-17 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043702', 'tblTempUsageDetail_20' ) start [2024-12-17 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043702', 'tblTempUsageDetail_20' ) end [2024-12-17 21:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:56:23] Production.INFO: ==10928== Releasing lock... [2024-12-17 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:56:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:57:05 [end_date_ymd] => 2024-12-17 21:57:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:57:05' and `end` < '2024-12-17 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-17 21:57:17] Production.INFO: count ==1239 [2024-12-17 21:57:18] Production.ERROR: pbx CDR StartTime 2024-12-17 18:57:05 - End Time 2024-12-17 21:57:05 [2024-12-17 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043707', 'tblTempUsageDetail_20' ) start [2024-12-17 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043707', 'tblTempUsageDetail_20' ) end [2024-12-17 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043707', 'tblTempVendorCDR_20' ) start [2024-12-17 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043707', 'tblTempVendorCDR_20' ) end [2024-12-17 21:57:18] Production.INFO: ProcessCDR(1,14043707,1,1,2) [2024-12-17 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043707', 'tblTempUsageDetail_20' ) start [2024-12-17 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043707', 'tblTempUsageDetail_20' ) end [2024-12-17 21:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:57:22] Production.INFO: ==11005== Releasing lock... [2024-12-17 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:57:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 21:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:58:04 [end_date_ymd] => 2024-12-17 21:58:04 [RateCDR] => 1 ) [2024-12-17 21: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 18:58:04' and `end` < '2024-12-17 21: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-17 21:58:18] Production.INFO: count ==1240 [2024-12-17 21:58:19] Production.ERROR: pbx CDR StartTime 2024-12-17 18:58:04 - End Time 2024-12-17 21:58:04 [2024-12-17 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043712', 'tblTempUsageDetail_20' ) start [2024-12-17 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043712', 'tblTempUsageDetail_20' ) end [2024-12-17 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043712', 'tblTempVendorCDR_20' ) start [2024-12-17 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043712', 'tblTempVendorCDR_20' ) end [2024-12-17 21:58:19] Production.INFO: ProcessCDR(1,14043712,1,1,2) [2024-12-17 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043712', 'tblTempUsageDetail_20' ) start [2024-12-17 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043712', 'tblTempUsageDetail_20' ) end [2024-12-17 21:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:58:23] Production.INFO: ==11081== Releasing lock... [2024-12-17 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:58:23] Production.INFO: 37 MB #Memory Used# [2024-12-17 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 18:59:05 [end_date_ymd] => 2024-12-17 21:59:05 [RateCDR] => 1 ) [2024-12-17 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-17 18:59:05' and `end` < '2024-12-17 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-17 21:59:17] Production.INFO: count ==1238 [2024-12-17 21:59:17] Production.ERROR: pbx CDR StartTime 2024-12-17 18:59:05 - End Time 2024-12-17 21:59:05 [2024-12-17 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043717', 'tblTempUsageDetail_20' ) start [2024-12-17 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043717', 'tblTempUsageDetail_20' ) end [2024-12-17 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043717', 'tblTempVendorCDR_20' ) start [2024-12-17 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043717', 'tblTempVendorCDR_20' ) end [2024-12-17 21:59:17] Production.INFO: ProcessCDR(1,14043717,1,1,2) [2024-12-17 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043717', 'tblTempUsageDetail_20' ) start [2024-12-17 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043717', 'tblTempUsageDetail_20' ) end [2024-12-17 21:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 21:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 21:59:20] Production.INFO: ==11153== Releasing lock... [2024-12-17 21:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 21:59:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:00:05 [end_date_ymd] => 2024-12-17 22:00:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:00:05' and `end` < '2024-12-17 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-17 22:00:17] Production.INFO: count ==1236 [2024-12-17 22:00:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:00:05 - End Time 2024-12-17 22:00:05 [2024-12-17 22:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043723', 'tblTempUsageDetail_20' ) start [2024-12-17 22:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043723', 'tblTempUsageDetail_20' ) end [2024-12-17 22:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043723', 'tblTempVendorCDR_20' ) start [2024-12-17 22:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043723', 'tblTempVendorCDR_20' ) end [2024-12-17 22:00:17] Production.INFO: ProcessCDR(1,14043723,1,1,2) [2024-12-17 22:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043723', 'tblTempUsageDetail_20' ) start [2024-12-17 22:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043723', 'tblTempUsageDetail_20' ) end [2024-12-17 22:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:00:20] Production.INFO: ==11230== Releasing lock... [2024-12-17 22:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:00:20] Production.INFO: 37 MB #Memory Used# [2024-12-17 22:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:01:04 [end_date_ymd] => 2024-12-17 22:01:04 [RateCDR] => 1 ) [2024-12-17 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-17 19:01:04' and `end` < '2024-12-17 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-17 22:01:17] Production.INFO: count ==1247 [2024-12-17 22:01:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:01:04 - End Time 2024-12-17 22:01:04 [2024-12-17 22:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043728', 'tblTempUsageDetail_20' ) start [2024-12-17 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043728', 'tblTempUsageDetail_20' ) end [2024-12-17 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043728', 'tblTempVendorCDR_20' ) start [2024-12-17 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043728', 'tblTempVendorCDR_20' ) end [2024-12-17 22:01:17] Production.INFO: ProcessCDR(1,14043728,1,1,2) [2024-12-17 22:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043728', 'tblTempUsageDetail_20' ) start [2024-12-17 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043728', 'tblTempUsageDetail_20' ) end [2024-12-17 22:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:01:21] Production.INFO: ==11316== Releasing lock... [2024-12-17 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:01:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:02:05 [end_date_ymd] => 2024-12-17 22:02:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:02:05' and `end` < '2024-12-17 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-17 22:02:18] Production.INFO: count ==1244 [2024-12-17 22:02:18] Production.ERROR: pbx CDR StartTime 2024-12-17 19:02:05 - End Time 2024-12-17 22:02:05 [2024-12-17 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043733', 'tblTempUsageDetail_20' ) start [2024-12-17 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043733', 'tblTempUsageDetail_20' ) end [2024-12-17 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043733', 'tblTempVendorCDR_20' ) start [2024-12-17 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043733', 'tblTempVendorCDR_20' ) end [2024-12-17 22:02:18] Production.INFO: ProcessCDR(1,14043733,1,1,2) [2024-12-17 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043733', 'tblTempUsageDetail_20' ) start [2024-12-17 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043733', 'tblTempUsageDetail_20' ) end [2024-12-17 22:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:02:21] Production.INFO: ==11390== Releasing lock... [2024-12-17 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:02:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:03:05 [end_date_ymd] => 2024-12-17 22:03:05 [RateCDR] => 1 ) [2024-12-17 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 19:03:05' and `end` < '2024-12-17 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 22:03:18] Production.INFO: count ==1244 [2024-12-17 22:03:18] Production.ERROR: pbx CDR StartTime 2024-12-17 19:03:05 - End Time 2024-12-17 22:03:05 [2024-12-17 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043738', 'tblTempUsageDetail_20' ) start [2024-12-17 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043738', 'tblTempUsageDetail_20' ) end [2024-12-17 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043738', 'tblTempVendorCDR_20' ) start [2024-12-17 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043738', 'tblTempVendorCDR_20' ) end [2024-12-17 22:03:18] Production.INFO: ProcessCDR(1,14043738,1,1,2) [2024-12-17 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043738', 'tblTempUsageDetail_20' ) start [2024-12-17 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043738', 'tblTempUsageDetail_20' ) end [2024-12-17 22:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:03:22] Production.INFO: ==11473== Releasing lock... [2024-12-17 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:03:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 22:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:04:04 [end_date_ymd] => 2024-12-17 22:04:04 [RateCDR] => 1 ) [2024-12-17 22:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 19:04:04' and `end` < '2024-12-17 22:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 22:04:17] Production.INFO: count ==1247 [2024-12-17 22:04:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:04:04 - End Time 2024-12-17 22:04:04 [2024-12-17 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043743', 'tblTempUsageDetail_20' ) start [2024-12-17 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043743', 'tblTempUsageDetail_20' ) end [2024-12-17 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043743', 'tblTempVendorCDR_20' ) start [2024-12-17 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043743', 'tblTempVendorCDR_20' ) end [2024-12-17 22:04:17] Production.INFO: ProcessCDR(1,14043743,1,1,2) [2024-12-17 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043743', 'tblTempUsageDetail_20' ) start [2024-12-17 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043743', 'tblTempUsageDetail_20' ) end [2024-12-17 22:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:04:20] Production.INFO: ==11551== Releasing lock... [2024-12-17 22:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:04:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 22:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:05:04 [end_date_ymd] => 2024-12-17 22:05:04 [RateCDR] => 1 ) [2024-12-17 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-17 19:05:04' and `end` < '2024-12-17 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-17 22:05:17] Production.INFO: count ==1245 [2024-12-17 22:05:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:05:04 - End Time 2024-12-17 22:05:04 [2024-12-17 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043748', 'tblTempUsageDetail_20' ) start [2024-12-17 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043748', 'tblTempUsageDetail_20' ) end [2024-12-17 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043748', 'tblTempVendorCDR_20' ) start [2024-12-17 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043748', 'tblTempVendorCDR_20' ) end [2024-12-17 22:05:17] Production.INFO: ProcessCDR(1,14043748,1,1,2) [2024-12-17 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043748', 'tblTempUsageDetail_20' ) start [2024-12-17 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043748', 'tblTempUsageDetail_20' ) end [2024-12-17 22:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:05:20] Production.INFO: ==11623== Releasing lock... [2024-12-17 22:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:05:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:06:05 [end_date_ymd] => 2024-12-17 22:06:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:06:05' and `end` < '2024-12-17 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-17 22:06:17] Production.INFO: count ==1245 [2024-12-17 22:06:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:06:05 - End Time 2024-12-17 22:06:05 [2024-12-17 22:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043753', 'tblTempUsageDetail_20' ) start [2024-12-17 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043753', 'tblTempUsageDetail_20' ) end [2024-12-17 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043753', 'tblTempVendorCDR_20' ) start [2024-12-17 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043753', 'tblTempVendorCDR_20' ) end [2024-12-17 22:06:17] Production.INFO: ProcessCDR(1,14043753,1,1,2) [2024-12-17 22:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043753', 'tblTempUsageDetail_20' ) start [2024-12-17 22:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043753', 'tblTempUsageDetail_20' ) end [2024-12-17 22:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:06:20] Production.INFO: ==11698== Releasing lock... [2024-12-17 22:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:06:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-17 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:07:04 [end_date_ymd] => 2024-12-17 22:07:04 [RateCDR] => 1 ) [2024-12-17 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-17 19:07:04' and `end` < '2024-12-17 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-17 22:07:17] Production.INFO: count ==1241 [2024-12-17 22:07:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:07:04 - End Time 2024-12-17 22:07:04 [2024-12-17 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043758', 'tblTempUsageDetail_20' ) start [2024-12-17 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043758', 'tblTempUsageDetail_20' ) end [2024-12-17 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043758', 'tblTempVendorCDR_20' ) start [2024-12-17 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043758', 'tblTempVendorCDR_20' ) end [2024-12-17 22:07:17] Production.INFO: ProcessCDR(1,14043758,1,1,2) [2024-12-17 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043758', 'tblTempUsageDetail_20' ) start [2024-12-17 22:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043758', 'tblTempUsageDetail_20' ) end [2024-12-17 22:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:07:21] Production.INFO: ==11770== Releasing lock... [2024-12-17 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:07:21] Production.INFO: 37 MB #Memory Used# [2024-12-17 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:08:05 [end_date_ymd] => 2024-12-17 22:08:05 [RateCDR] => 1 ) [2024-12-17 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 19:08:05' and `end` < '2024-12-17 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 22:08:18] Production.INFO: count ==1230 [2024-12-17 22:08:19] Production.ERROR: pbx CDR StartTime 2024-12-17 19:08:05 - End Time 2024-12-17 22:08:05 [2024-12-17 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043763', 'tblTempUsageDetail_20' ) start [2024-12-17 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043763', 'tblTempUsageDetail_20' ) end [2024-12-17 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043763', 'tblTempVendorCDR_20' ) start [2024-12-17 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043763', 'tblTempVendorCDR_20' ) end [2024-12-17 22:08:19] Production.INFO: ProcessCDR(1,14043763,1,1,2) [2024-12-17 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043763', 'tblTempUsageDetail_20' ) start [2024-12-17 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043763', 'tblTempUsageDetail_20' ) end [2024-12-17 22:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:08:23] Production.INFO: ==11881== Releasing lock... [2024-12-17 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:08:23] Production.INFO: 37 MB #Memory Used# [2024-12-17 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:09:04 [end_date_ymd] => 2024-12-17 22:09:04 [RateCDR] => 1 ) [2024-12-17 22: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 19:09:04' and `end` < '2024-12-17 22: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-17 22:09:17] Production.INFO: count ==1229 [2024-12-17 22:09:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:09:04 - End Time 2024-12-17 22:09:04 [2024-12-17 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043768', 'tblTempUsageDetail_20' ) start [2024-12-17 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043768', 'tblTempUsageDetail_20' ) end [2024-12-17 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043768', 'tblTempVendorCDR_20' ) start [2024-12-17 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043768', 'tblTempVendorCDR_20' ) end [2024-12-17 22:09:17] Production.INFO: ProcessCDR(1,14043768,1,1,2) [2024-12-17 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043768', 'tblTempUsageDetail_20' ) start [2024-12-17 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043768', 'tblTempUsageDetail_20' ) end [2024-12-17 22:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:09:20] Production.INFO: ==11953== Releasing lock... [2024-12-17 22:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:09:20] Production.INFO: 37 MB #Memory Used# [2024-12-17 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:10:06 [end_date_ymd] => 2024-12-17 22:10:06 [RateCDR] => 1 ) [2024-12-17 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 19:10:06' and `end` < '2024-12-17 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 22:10:18] Production.INFO: count ==1230 [2024-12-17 22:10:18] Production.ERROR: pbx CDR StartTime 2024-12-17 19:10:06 - End Time 2024-12-17 22:10:06 [2024-12-17 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043774', 'tblTempUsageDetail_20' ) start [2024-12-17 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043774', 'tblTempUsageDetail_20' ) end [2024-12-17 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043774', 'tblTempVendorCDR_20' ) start [2024-12-17 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043774', 'tblTempVendorCDR_20' ) end [2024-12-17 22:10:18] Production.INFO: ProcessCDR(1,14043774,1,1,2) [2024-12-17 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043774', 'tblTempUsageDetail_20' ) start [2024-12-17 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043774', 'tblTempUsageDetail_20' ) end [2024-12-17 22:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:10:21] Production.INFO: ==12025== Releasing lock... [2024-12-17 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:10:21] Production.INFO: 37 MB #Memory Used# [2024-12-17 22:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:11:04 [end_date_ymd] => 2024-12-17 22:11:04 [RateCDR] => 1 ) [2024-12-17 22: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 19:11:04' and `end` < '2024-12-17 22: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-17 22:11:17] Production.INFO: count ==1206 [2024-12-17 22:11:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:11:04 - End Time 2024-12-17 22:11:04 [2024-12-17 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043779', 'tblTempUsageDetail_20' ) start [2024-12-17 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043779', 'tblTempUsageDetail_20' ) end [2024-12-17 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043779', 'tblTempVendorCDR_20' ) start [2024-12-17 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043779', 'tblTempVendorCDR_20' ) end [2024-12-17 22:11:17] Production.INFO: ProcessCDR(1,14043779,1,1,2) [2024-12-17 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043779', 'tblTempUsageDetail_20' ) start [2024-12-17 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043779', 'tblTempUsageDetail_20' ) end [2024-12-17 22:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:11:20] Production.INFO: ==12102== Releasing lock... [2024-12-17 22:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:11:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-17 22:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:12:04 [end_date_ymd] => 2024-12-17 22:12:04 [RateCDR] => 1 ) [2024-12-17 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-17 19:12:04' and `end` < '2024-12-17 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-17 22:12:17] Production.INFO: count ==1204 [2024-12-17 22:12:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:12:04 - End Time 2024-12-17 22:12:04 [2024-12-17 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043784', 'tblTempUsageDetail_20' ) start [2024-12-17 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043784', 'tblTempUsageDetail_20' ) end [2024-12-17 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043784', 'tblTempVendorCDR_20' ) start [2024-12-17 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043784', 'tblTempVendorCDR_20' ) end [2024-12-17 22:12:17] Production.INFO: ProcessCDR(1,14043784,1,1,2) [2024-12-17 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043784', 'tblTempUsageDetail_20' ) start [2024-12-17 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043784', 'tblTempUsageDetail_20' ) end [2024-12-17 22:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:12:20] Production.INFO: ==12177== Releasing lock... [2024-12-17 22:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:12:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-17 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:13:05 [end_date_ymd] => 2024-12-17 22:13:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:13:05' and `end` < '2024-12-17 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-17 22:13:18] Production.INFO: count ==1198 [2024-12-17 22:13:18] Production.ERROR: pbx CDR StartTime 2024-12-17 19:13:05 - End Time 2024-12-17 22:13:05 [2024-12-17 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043789', 'tblTempUsageDetail_20' ) start [2024-12-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043789', 'tblTempUsageDetail_20' ) end [2024-12-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043789', 'tblTempVendorCDR_20' ) start [2024-12-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043789', 'tblTempVendorCDR_20' ) end [2024-12-17 22:13:18] Production.INFO: ProcessCDR(1,14043789,1,1,2) [2024-12-17 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043789', 'tblTempUsageDetail_20' ) start [2024-12-17 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043789', 'tblTempUsageDetail_20' ) end [2024-12-17 22:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:13:21] Production.INFO: ==12250== Releasing lock... [2024-12-17 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:13:21] Production.INFO: 37 MB #Memory Used# [2024-12-17 22:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:14:04 [end_date_ymd] => 2024-12-17 22:14:04 [RateCDR] => 1 ) [2024-12-17 22: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 19:14:04' and `end` < '2024-12-17 22: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-17 22:14:17] Production.INFO: count ==1198 [2024-12-17 22:14:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:14:04 - End Time 2024-12-17 22:14:04 [2024-12-17 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043794', 'tblTempUsageDetail_20' ) start [2024-12-17 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043794', 'tblTempUsageDetail_20' ) end [2024-12-17 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043794', 'tblTempVendorCDR_20' ) start [2024-12-17 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043794', 'tblTempVendorCDR_20' ) end [2024-12-17 22:14:17] Production.INFO: ProcessCDR(1,14043794,1,1,2) [2024-12-17 22:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043794', 'tblTempUsageDetail_20' ) start [2024-12-17 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043794', 'tblTempUsageDetail_20' ) end [2024-12-17 22:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:14:21] Production.INFO: ==12324== Releasing lock... [2024-12-17 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:14:21] Production.INFO: 37 MB #Memory Used# [2024-12-17 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:15:05 [end_date_ymd] => 2024-12-17 22:15:05 [RateCDR] => 1 ) [2024-12-17 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 19:15:05' and `end` < '2024-12-17 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 22:15:17] Production.INFO: count ==1194 [2024-12-17 22:15:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:15:05 - End Time 2024-12-17 22:15:05 [2024-12-17 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043799', 'tblTempUsageDetail_20' ) start [2024-12-17 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043799', 'tblTempUsageDetail_20' ) end [2024-12-17 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043799', 'tblTempVendorCDR_20' ) start [2024-12-17 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043799', 'tblTempVendorCDR_20' ) end [2024-12-17 22:15:17] Production.INFO: ProcessCDR(1,14043799,1,1,2) [2024-12-17 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043799', 'tblTempUsageDetail_20' ) start [2024-12-17 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043799', 'tblTempUsageDetail_20' ) end [2024-12-17 22:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:15:20] Production.INFO: ==12401== Releasing lock... [2024-12-17 22:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:15:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-17 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:16:05 [end_date_ymd] => 2024-12-17 22:16:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:16:05' and `end` < '2024-12-17 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-17 22:16:17] Production.INFO: count ==1193 [2024-12-17 22:16:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:16:05 - End Time 2024-12-17 22:16:05 [2024-12-17 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043804', 'tblTempUsageDetail_20' ) start [2024-12-17 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043804', 'tblTempUsageDetail_20' ) end [2024-12-17 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043804', 'tblTempVendorCDR_20' ) start [2024-12-17 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043804', 'tblTempVendorCDR_20' ) end [2024-12-17 22:16:17] Production.INFO: ProcessCDR(1,14043804,1,1,2) [2024-12-17 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043804', 'tblTempUsageDetail_20' ) start [2024-12-17 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043804', 'tblTempUsageDetail_20' ) end [2024-12-17 22:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:16:20] Production.INFO: ==12474== Releasing lock... [2024-12-17 22:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:16:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-17 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:17:05 [end_date_ymd] => 2024-12-17 22:17:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:17:05' and `end` < '2024-12-17 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-17 22:17:18] Production.INFO: count ==1180 [2024-12-17 22:17:18] Production.ERROR: pbx CDR StartTime 2024-12-17 19:17:05 - End Time 2024-12-17 22:17:05 [2024-12-17 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043809', 'tblTempUsageDetail_20' ) start [2024-12-17 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043809', 'tblTempUsageDetail_20' ) end [2024-12-17 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043809', 'tblTempVendorCDR_20' ) start [2024-12-17 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043809', 'tblTempVendorCDR_20' ) end [2024-12-17 22:17:18] Production.INFO: ProcessCDR(1,14043809,1,1,2) [2024-12-17 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043809', 'tblTempUsageDetail_20' ) start [2024-12-17 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043809', 'tblTempUsageDetail_20' ) end [2024-12-17 22:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:17:21] Production.INFO: ==12550== Releasing lock... [2024-12-17 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:17:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-17 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:18:05 [end_date_ymd] => 2024-12-17 22:18:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:18:05' and `end` < '2024-12-17 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-17 22:18:17] Production.INFO: count ==1182 [2024-12-17 22:18:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:18:05 - End Time 2024-12-17 22:18:05 [2024-12-17 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043814', 'tblTempUsageDetail_20' ) start [2024-12-17 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043814', 'tblTempUsageDetail_20' ) end [2024-12-17 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043814', 'tblTempVendorCDR_20' ) start [2024-12-17 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043814', 'tblTempVendorCDR_20' ) end [2024-12-17 22:18:17] Production.INFO: ProcessCDR(1,14043814,1,1,2) [2024-12-17 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043814', 'tblTempUsageDetail_20' ) start [2024-12-17 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043814', 'tblTempUsageDetail_20' ) end [2024-12-17 22:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:18:20] Production.INFO: ==12627== Releasing lock... [2024-12-17 22:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:18:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-17 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:19:05 [end_date_ymd] => 2024-12-17 22:19:05 [RateCDR] => 1 ) [2024-12-17 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 19:19:05' and `end` < '2024-12-17 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 22:19:17] Production.INFO: count ==1181 [2024-12-17 22:19:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:19:05 - End Time 2024-12-17 22:19:05 [2024-12-17 22:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043819', 'tblTempUsageDetail_20' ) start [2024-12-17 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043819', 'tblTempUsageDetail_20' ) end [2024-12-17 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043819', 'tblTempVendorCDR_20' ) start [2024-12-17 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043819', 'tblTempVendorCDR_20' ) end [2024-12-17 22:19:17] Production.INFO: ProcessCDR(1,14043819,1,1,2) [2024-12-17 22:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043819', 'tblTempUsageDetail_20' ) start [2024-12-17 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043819', 'tblTempUsageDetail_20' ) end [2024-12-17 22:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:19:20] Production.INFO: ==12706== Releasing lock... [2024-12-17 22:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:19:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-17 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:20:06 [end_date_ymd] => 2024-12-17 22:20:06 [RateCDR] => 1 ) [2024-12-17 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-17 19:20:06' and `end` < '2024-12-17 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-17 22:20:19] Production.INFO: count ==1184 [2024-12-17 22:20:19] Production.ERROR: pbx CDR StartTime 2024-12-17 19:20:06 - End Time 2024-12-17 22:20:06 [2024-12-17 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043825', 'tblTempUsageDetail_20' ) start [2024-12-17 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043825', 'tblTempUsageDetail_20' ) end [2024-12-17 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043825', 'tblTempVendorCDR_20' ) start [2024-12-17 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043825', 'tblTempVendorCDR_20' ) end [2024-12-17 22:20:19] Production.INFO: ProcessCDR(1,14043825,1,1,2) [2024-12-17 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043825', 'tblTempUsageDetail_20' ) start [2024-12-17 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043825', 'tblTempUsageDetail_20' ) end [2024-12-17 22:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:20:22] Production.INFO: ==12789== Releasing lock... [2024-12-17 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:20:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-17 22:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:21:04 [end_date_ymd] => 2024-12-17 22:21:04 [RateCDR] => 1 ) [2024-12-17 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-17 19:21:04' and `end` < '2024-12-17 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-17 22:21:17] Production.INFO: count ==1170 [2024-12-17 22:21:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:21:04 - End Time 2024-12-17 22:21:04 [2024-12-17 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043830', 'tblTempUsageDetail_20' ) start [2024-12-17 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043830', 'tblTempUsageDetail_20' ) end [2024-12-17 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043830', 'tblTempVendorCDR_20' ) start [2024-12-17 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043830', 'tblTempVendorCDR_20' ) end [2024-12-17 22:21:17] Production.INFO: ProcessCDR(1,14043830,1,1,2) [2024-12-17 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043830', 'tblTempUsageDetail_20' ) start [2024-12-17 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043830', 'tblTempUsageDetail_20' ) end [2024-12-17 22:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:21:20] Production.INFO: ==12875== Releasing lock... [2024-12-17 22:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:21:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-17 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:22:05 [end_date_ymd] => 2024-12-17 22:22:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:22:05' and `end` < '2024-12-17 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-17 22:22:18] Production.INFO: count ==1168 [2024-12-17 22:22:18] Production.ERROR: pbx CDR StartTime 2024-12-17 19:22:05 - End Time 2024-12-17 22:22:05 [2024-12-17 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043835', 'tblTempUsageDetail_20' ) start [2024-12-17 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043835', 'tblTempUsageDetail_20' ) end [2024-12-17 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043835', 'tblTempVendorCDR_20' ) start [2024-12-17 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043835', 'tblTempVendorCDR_20' ) end [2024-12-17 22:22:18] Production.INFO: ProcessCDR(1,14043835,1,1,2) [2024-12-17 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043835', 'tblTempUsageDetail_20' ) start [2024-12-17 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043835', 'tblTempUsageDetail_20' ) end [2024-12-17 22:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:22:21] Production.INFO: ==12961== Releasing lock... [2024-12-17 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:22:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-17 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:23:04 [end_date_ymd] => 2024-12-17 22:23:04 [RateCDR] => 1 ) [2024-12-17 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-17 19:23:04' and `end` < '2024-12-17 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-17 22:23:16] Production.INFO: count ==1156 [2024-12-17 22:23:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:23:04 - End Time 2024-12-17 22:23:04 [2024-12-17 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043840', 'tblTempUsageDetail_20' ) start [2024-12-17 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043840', 'tblTempUsageDetail_20' ) end [2024-12-17 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043840', 'tblTempVendorCDR_20' ) start [2024-12-17 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043840', 'tblTempVendorCDR_20' ) end [2024-12-17 22:23:17] Production.INFO: ProcessCDR(1,14043840,1,1,2) [2024-12-17 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043840', 'tblTempUsageDetail_20' ) start [2024-12-17 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043840', 'tblTempUsageDetail_20' ) end [2024-12-17 22:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:23:21] Production.INFO: ==13040== Releasing lock... [2024-12-17 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:23:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-17 22:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:24:04 [end_date_ymd] => 2024-12-17 22:24:04 [RateCDR] => 1 ) [2024-12-17 22: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-17 19:24:04' and `end` < '2024-12-17 22: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-17 22:24:17] Production.INFO: count ==1154 [2024-12-17 22:24:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:24:04 - End Time 2024-12-17 22:24:04 [2024-12-17 22:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043845', 'tblTempUsageDetail_20' ) start [2024-12-17 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043845', 'tblTempUsageDetail_20' ) end [2024-12-17 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043845', 'tblTempVendorCDR_20' ) start [2024-12-17 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043845', 'tblTempVendorCDR_20' ) end [2024-12-17 22:24:17] Production.INFO: ProcessCDR(1,14043845,1,1,2) [2024-12-17 22:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043845', 'tblTempUsageDetail_20' ) start [2024-12-17 22:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043845', 'tblTempUsageDetail_20' ) end [2024-12-17 22:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:24:20] Production.INFO: ==13169== Releasing lock... [2024-12-17 22:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:24:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-17 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:25:04 [end_date_ymd] => 2024-12-17 22:25:04 [RateCDR] => 1 ) [2024-12-17 22: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 19:25:04' and `end` < '2024-12-17 22: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-17 22:25:16] Production.INFO: count ==1154 [2024-12-17 22:25:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:25:04 - End Time 2024-12-17 22:25:04 [2024-12-17 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043850', 'tblTempUsageDetail_20' ) start [2024-12-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043850', 'tblTempUsageDetail_20' ) end [2024-12-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043850', 'tblTempVendorCDR_20' ) start [2024-12-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043850', 'tblTempVendorCDR_20' ) end [2024-12-17 22:25:17] Production.INFO: ProcessCDR(1,14043850,1,1,2) [2024-12-17 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043850', 'tblTempUsageDetail_20' ) start [2024-12-17 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043850', 'tblTempUsageDetail_20' ) end [2024-12-17 22:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:25:20] Production.INFO: ==13252== Releasing lock... [2024-12-17 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:25:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-17 22:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:26:04 [end_date_ymd] => 2024-12-17 22:26:04 [RateCDR] => 1 ) [2024-12-17 22: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 19:26:04' and `end` < '2024-12-17 22: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-17 22:26:17] Production.INFO: count ==1152 [2024-12-17 22:26:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:26:04 - End Time 2024-12-17 22:26:04 [2024-12-17 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043855', 'tblTempUsageDetail_20' ) start [2024-12-17 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043855', 'tblTempUsageDetail_20' ) end [2024-12-17 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043855', 'tblTempVendorCDR_20' ) start [2024-12-17 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043855', 'tblTempVendorCDR_20' ) end [2024-12-17 22:26:17] Production.INFO: ProcessCDR(1,14043855,1,1,2) [2024-12-17 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043855', 'tblTempUsageDetail_20' ) start [2024-12-17 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043855', 'tblTempUsageDetail_20' ) end [2024-12-17 22:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:26:20] Production.INFO: ==13336== Releasing lock... [2024-12-17 22:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:26:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-17 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:27:05 [end_date_ymd] => 2024-12-17 22:27:05 [RateCDR] => 1 ) [2024-12-17 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 19:27:05' and `end` < '2024-12-17 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 22:27:17] Production.INFO: count ==1150 [2024-12-17 22:27:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:27:05 - End Time 2024-12-17 22:27:05 [2024-12-17 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043860', 'tblTempUsageDetail_20' ) start [2024-12-17 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043860', 'tblTempUsageDetail_20' ) end [2024-12-17 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043860', 'tblTempVendorCDR_20' ) start [2024-12-17 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043860', 'tblTempVendorCDR_20' ) end [2024-12-17 22:27:17] Production.INFO: ProcessCDR(1,14043860,1,1,2) [2024-12-17 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043860', 'tblTempUsageDetail_20' ) start [2024-12-17 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043860', 'tblTempUsageDetail_20' ) end [2024-12-17 22:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:27:22] Production.INFO: ==13420== Releasing lock... [2024-12-17 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:27:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-17 22:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:28:04 [end_date_ymd] => 2024-12-17 22:28:04 [RateCDR] => 1 ) [2024-12-17 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-17 19:28:04' and `end` < '2024-12-17 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-17 22:28:16] Production.INFO: count ==1147 [2024-12-17 22:28:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:28:04 - End Time 2024-12-17 22:28:04 [2024-12-17 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043863', 'tblTempUsageDetail_20' ) start [2024-12-17 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043863', 'tblTempUsageDetail_20' ) end [2024-12-17 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043863', 'tblTempVendorCDR_20' ) start [2024-12-17 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043863', 'tblTempVendorCDR_20' ) end [2024-12-17 22:28:17] Production.INFO: ProcessCDR(1,14043863,1,1,2) [2024-12-17 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043863', 'tblTempUsageDetail_20' ) start [2024-12-17 22:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043863', 'tblTempUsageDetail_20' ) end [2024-12-17 22:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:28:20] Production.INFO: ==13500== Releasing lock... [2024-12-17 22:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:28:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-17 22:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:29:04 [end_date_ymd] => 2024-12-17 22:29:04 [RateCDR] => 1 ) [2024-12-17 22: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 19:29:04' and `end` < '2024-12-17 22: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-17 22:29:18] Production.INFO: count ==1146 [2024-12-17 22:29:18] Production.ERROR: pbx CDR StartTime 2024-12-17 19:29:04 - End Time 2024-12-17 22:29:04 [2024-12-17 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043870', 'tblTempUsageDetail_20' ) start [2024-12-17 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043870', 'tblTempUsageDetail_20' ) end [2024-12-17 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043870', 'tblTempVendorCDR_20' ) start [2024-12-17 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043870', 'tblTempVendorCDR_20' ) end [2024-12-17 22:29:18] Production.INFO: ProcessCDR(1,14043870,1,1,2) [2024-12-17 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043870', 'tblTempUsageDetail_20' ) start [2024-12-17 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043870', 'tblTempUsageDetail_20' ) end [2024-12-17 22:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:29:21] Production.INFO: ==13584== Releasing lock... [2024-12-17 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:29:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-17 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:30:05 [end_date_ymd] => 2024-12-17 22:30:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:30:05' and `end` < '2024-12-17 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-17 22:30:17] Production.INFO: count ==1151 [2024-12-17 22:30:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:30:05 - End Time 2024-12-17 22:30:05 [2024-12-17 22:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043875', 'tblTempUsageDetail_20' ) start [2024-12-17 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043875', 'tblTempUsageDetail_20' ) end [2024-12-17 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043875', 'tblTempVendorCDR_20' ) start [2024-12-17 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043875', 'tblTempVendorCDR_20' ) end [2024-12-17 22:30:17] Production.INFO: ProcessCDR(1,14043875,1,1,2) [2024-12-17 22:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043875', 'tblTempUsageDetail_20' ) start [2024-12-17 22:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043875', 'tblTempUsageDetail_20' ) end [2024-12-17 22:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:30:20] Production.INFO: ==13672== Releasing lock... [2024-12-17 22:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:30:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-17 22:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:31:04 [end_date_ymd] => 2024-12-17 22:31:04 [RateCDR] => 1 ) [2024-12-17 22:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 19:31:04' and `end` < '2024-12-17 22:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 22:31:17] Production.INFO: count ==1125 [2024-12-17 22:31:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:31:04 - End Time 2024-12-17 22:31:04 [2024-12-17 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043881', 'tblTempUsageDetail_20' ) start [2024-12-17 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043881', 'tblTempUsageDetail_20' ) end [2024-12-17 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043881', 'tblTempVendorCDR_20' ) start [2024-12-17 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043881', 'tblTempVendorCDR_20' ) end [2024-12-17 22:31:17] Production.INFO: ProcessCDR(1,14043881,1,1,2) [2024-12-17 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043881', 'tblTempUsageDetail_20' ) start [2024-12-17 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043881', 'tblTempUsageDetail_20' ) end [2024-12-17 22:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:31:20] Production.INFO: ==13752== Releasing lock... [2024-12-17 22:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:31:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-17 22:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:32:04 [end_date_ymd] => 2024-12-17 22:32:04 [RateCDR] => 1 ) [2024-12-17 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-17 19:32:04' and `end` < '2024-12-17 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-17 22:32:16] Production.INFO: count ==1121 [2024-12-17 22:32:16] Production.ERROR: pbx CDR StartTime 2024-12-17 19:32:04 - End Time 2024-12-17 22:32:04 [2024-12-17 22:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043886', 'tblTempUsageDetail_20' ) start [2024-12-17 22:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043886', 'tblTempUsageDetail_20' ) end [2024-12-17 22:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043886', 'tblTempVendorCDR_20' ) start [2024-12-17 22:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043886', 'tblTempVendorCDR_20' ) end [2024-12-17 22:32:16] Production.INFO: ProcessCDR(1,14043886,1,1,2) [2024-12-17 22:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043886', 'tblTempUsageDetail_20' ) start [2024-12-17 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043886', 'tblTempUsageDetail_20' ) end [2024-12-17 22:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:32:21] Production.INFO: ==13841== Releasing lock... [2024-12-17 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:32:21] Production.INFO: 36 MB #Memory Used# [2024-12-17 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:33:05 [end_date_ymd] => 2024-12-17 22:33:05 [RateCDR] => 1 ) [2024-12-17 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 19:33:05' and `end` < '2024-12-17 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 22:33:17] Production.INFO: count ==1118 [2024-12-17 22:33:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:33:05 - End Time 2024-12-17 22:33:05 [2024-12-17 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043891', 'tblTempUsageDetail_20' ) start [2024-12-17 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043891', 'tblTempUsageDetail_20' ) end [2024-12-17 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043891', 'tblTempVendorCDR_20' ) start [2024-12-17 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043891', 'tblTempVendorCDR_20' ) end [2024-12-17 22:33:17] Production.INFO: ProcessCDR(1,14043891,1,1,2) [2024-12-17 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043891', 'tblTempUsageDetail_20' ) start [2024-12-17 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043891', 'tblTempUsageDetail_20' ) end [2024-12-17 22:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:33:20] Production.INFO: ==13927== Releasing lock... [2024-12-17 22:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:33:20] Production.INFO: 36 MB #Memory Used# [2024-12-17 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:34:05 [end_date_ymd] => 2024-12-17 22:34:05 [RateCDR] => 1 ) [2024-12-17 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 19:34:05' and `end` < '2024-12-17 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 22:34:17] Production.INFO: count ==1119 [2024-12-17 22:34:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:34:05 - End Time 2024-12-17 22:34:05 [2024-12-17 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043896', 'tblTempUsageDetail_20' ) start [2024-12-17 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043896', 'tblTempUsageDetail_20' ) end [2024-12-17 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043896', 'tblTempVendorCDR_20' ) start [2024-12-17 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043896', 'tblTempVendorCDR_20' ) end [2024-12-17 22:34:17] Production.INFO: ProcessCDR(1,14043896,1,1,2) [2024-12-17 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043896', 'tblTempUsageDetail_20' ) start [2024-12-17 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043896', 'tblTempUsageDetail_20' ) end [2024-12-17 22:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:34:22] Production.INFO: ==14007== Releasing lock... [2024-12-17 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:34:22] Production.INFO: 36 MB #Memory Used# [2024-12-17 22:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:35:04 [end_date_ymd] => 2024-12-17 22:35:04 [RateCDR] => 1 ) [2024-12-17 22: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 19:35:04' and `end` < '2024-12-17 22: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-17 22:35:16] Production.INFO: count ==1119 [2024-12-17 22:35:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:35:04 - End Time 2024-12-17 22:35:04 [2024-12-17 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043901', 'tblTempUsageDetail_20' ) start [2024-12-17 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043901', 'tblTempUsageDetail_20' ) end [2024-12-17 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043901', 'tblTempVendorCDR_20' ) start [2024-12-17 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043901', 'tblTempVendorCDR_20' ) end [2024-12-17 22:35:17] Production.INFO: ProcessCDR(1,14043901,1,1,2) [2024-12-17 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043901', 'tblTempUsageDetail_20' ) start [2024-12-17 22:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043901', 'tblTempUsageDetail_20' ) end [2024-12-17 22:35:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:35:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:35:20] Production.INFO: ==14092== Releasing lock... [2024-12-17 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:35:20] Production.INFO: 36 MB #Memory Used# [2024-12-17 22:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:36:04 [end_date_ymd] => 2024-12-17 22:36:04 [RateCDR] => 1 ) [2024-12-17 22: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-17 19:36:04' and `end` < '2024-12-17 22: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-17 22:36:17] Production.INFO: count ==1119 [2024-12-17 22:36:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:36:04 - End Time 2024-12-17 22:36:04 [2024-12-17 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043906', 'tblTempUsageDetail_20' ) start [2024-12-17 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043906', 'tblTempUsageDetail_20' ) end [2024-12-17 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043906', 'tblTempVendorCDR_20' ) start [2024-12-17 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043906', 'tblTempVendorCDR_20' ) end [2024-12-17 22:36:17] Production.INFO: ProcessCDR(1,14043906,1,1,2) [2024-12-17 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043906', 'tblTempUsageDetail_20' ) start [2024-12-17 22:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043906', 'tblTempUsageDetail_20' ) end [2024-12-17 22:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:36:20] Production.INFO: ==14175== Releasing lock... [2024-12-17 22:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:36:20] Production.INFO: 36 MB #Memory Used# [2024-12-17 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:37:04 [end_date_ymd] => 2024-12-17 22:37:04 [RateCDR] => 1 ) [2024-12-17 22: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 19:37:04' and `end` < '2024-12-17 22: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-17 22:37:18] Production.INFO: count ==1118 [2024-12-17 22:37:18] Production.ERROR: pbx CDR StartTime 2024-12-17 19:37:04 - End Time 2024-12-17 22:37:04 [2024-12-17 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043911', 'tblTempUsageDetail_20' ) start [2024-12-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043911', 'tblTempUsageDetail_20' ) end [2024-12-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043911', 'tblTempVendorCDR_20' ) start [2024-12-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043911', 'tblTempVendorCDR_20' ) end [2024-12-17 22:37:18] Production.INFO: ProcessCDR(1,14043911,1,1,2) [2024-12-17 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043911', 'tblTempUsageDetail_20' ) start [2024-12-17 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043911', 'tblTempUsageDetail_20' ) end [2024-12-17 22:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:37:21] Production.INFO: ==14257== Releasing lock... [2024-12-17 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:37:21] Production.INFO: 36 MB #Memory Used# [2024-12-17 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:38:05 [end_date_ymd] => 2024-12-17 22:38:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:38:05' and `end` < '2024-12-17 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-17 22:38:18] Production.INFO: count ==1117 [2024-12-17 22:38:18] Production.ERROR: pbx CDR StartTime 2024-12-17 19:38:05 - End Time 2024-12-17 22:38:05 [2024-12-17 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043916', 'tblTempUsageDetail_20' ) start [2024-12-17 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043916', 'tblTempUsageDetail_20' ) end [2024-12-17 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043916', 'tblTempVendorCDR_20' ) start [2024-12-17 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043916', 'tblTempVendorCDR_20' ) end [2024-12-17 22:38:18] Production.INFO: ProcessCDR(1,14043916,1,1,2) [2024-12-17 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043916', 'tblTempUsageDetail_20' ) start [2024-12-17 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043916', 'tblTempUsageDetail_20' ) end [2024-12-17 22:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:38:21] Production.INFO: ==14344== Releasing lock... [2024-12-17 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:38:21] Production.INFO: 36 MB #Memory Used# [2024-12-17 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:39:04 [end_date_ymd] => 2024-12-17 22:39:04 [RateCDR] => 1 ) [2024-12-17 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-17 19:39:04' and `end` < '2024-12-17 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-17 22:39:17] Production.INFO: count ==1117 [2024-12-17 22:39:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:39:04 - End Time 2024-12-17 22:39:04 [2024-12-17 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043921', 'tblTempUsageDetail_20' ) start [2024-12-17 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043921', 'tblTempUsageDetail_20' ) end [2024-12-17 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043921', 'tblTempVendorCDR_20' ) start [2024-12-17 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043921', 'tblTempVendorCDR_20' ) end [2024-12-17 22:39:17] Production.INFO: ProcessCDR(1,14043921,1,1,2) [2024-12-17 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043921', 'tblTempUsageDetail_20' ) start [2024-12-17 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043921', 'tblTempUsageDetail_20' ) end [2024-12-17 22:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:39:20] Production.INFO: ==14471== Releasing lock... [2024-12-17 22:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:39:20] Production.INFO: 36 MB #Memory Used# [2024-12-17 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:40:05 [end_date_ymd] => 2024-12-17 22:40:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:40:05' and `end` < '2024-12-17 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-17 22:40:17] Production.INFO: count ==1117 [2024-12-17 22:40:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:40:05 - End Time 2024-12-17 22:40:05 [2024-12-17 22:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043927', 'tblTempUsageDetail_20' ) start [2024-12-17 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043927', 'tblTempUsageDetail_20' ) end [2024-12-17 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043927', 'tblTempVendorCDR_20' ) start [2024-12-17 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043927', 'tblTempVendorCDR_20' ) end [2024-12-17 22:40:17] Production.INFO: ProcessCDR(1,14043927,1,1,2) [2024-12-17 22:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043927', 'tblTempUsageDetail_20' ) start [2024-12-17 22:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043927', 'tblTempUsageDetail_20' ) end [2024-12-17 22:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:40:20] Production.INFO: ==14567== Releasing lock... [2024-12-17 22:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:40:20] Production.INFO: 36 MB #Memory Used# [2024-12-17 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:41:05 [end_date_ymd] => 2024-12-17 22:41:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:41:05' and `end` < '2024-12-17 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-17 22:41:17] Production.INFO: count ==1099 [2024-12-17 22:41:18] Production.ERROR: pbx CDR StartTime 2024-12-17 19:41:05 - End Time 2024-12-17 22:41:05 [2024-12-17 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043932', 'tblTempUsageDetail_20' ) start [2024-12-17 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043932', 'tblTempUsageDetail_20' ) end [2024-12-17 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043932', 'tblTempVendorCDR_20' ) start [2024-12-17 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043932', 'tblTempVendorCDR_20' ) end [2024-12-17 22:41:18] Production.INFO: ProcessCDR(1,14043932,1,1,2) [2024-12-17 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043932', 'tblTempUsageDetail_20' ) start [2024-12-17 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043932', 'tblTempUsageDetail_20' ) end [2024-12-17 22:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:41:21] Production.INFO: ==14656== Releasing lock... [2024-12-17 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:41:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-17 22:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:42:04 [end_date_ymd] => 2024-12-17 22:42:04 [RateCDR] => 1 ) [2024-12-17 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-17 19:42:04' and `end` < '2024-12-17 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-17 22:42:17] Production.INFO: count ==1099 [2024-12-17 22:42:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:42:04 - End Time 2024-12-17 22:42:04 [2024-12-17 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043937', 'tblTempUsageDetail_20' ) start [2024-12-17 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043937', 'tblTempUsageDetail_20' ) end [2024-12-17 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043937', 'tblTempVendorCDR_20' ) start [2024-12-17 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043937', 'tblTempVendorCDR_20' ) end [2024-12-17 22:42:17] Production.INFO: ProcessCDR(1,14043937,1,1,2) [2024-12-17 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043937', 'tblTempUsageDetail_20' ) start [2024-12-17 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043937', 'tblTempUsageDetail_20' ) end [2024-12-17 22:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:42:20] Production.INFO: ==14745== Releasing lock... [2024-12-17 22:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:42:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-17 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:43:05 [end_date_ymd] => 2024-12-17 22:43:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:43:05' and `end` < '2024-12-17 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-17 22:43:18] Production.INFO: count ==1100 [2024-12-17 22:43:18] Production.ERROR: pbx CDR StartTime 2024-12-17 19:43:05 - End Time 2024-12-17 22:43:05 [2024-12-17 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043942', 'tblTempUsageDetail_20' ) start [2024-12-17 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043942', 'tblTempUsageDetail_20' ) end [2024-12-17 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043942', 'tblTempVendorCDR_20' ) start [2024-12-17 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043942', 'tblTempVendorCDR_20' ) end [2024-12-17 22:43:18] Production.INFO: ProcessCDR(1,14043942,1,1,2) [2024-12-17 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043942', 'tblTempUsageDetail_20' ) start [2024-12-17 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043942', 'tblTempUsageDetail_20' ) end [2024-12-17 22:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:43:23] Production.INFO: ==14833== Releasing lock... [2024-12-17 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:43:23] Production.INFO: 35.75 MB #Memory Used# [2024-12-17 22:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:44:04 [end_date_ymd] => 2024-12-17 22:44:04 [RateCDR] => 1 ) [2024-12-17 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-17 19:44:04' and `end` < '2024-12-17 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-17 22:44:17] Production.INFO: count ==1092 [2024-12-17 22:44:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:44:04 - End Time 2024-12-17 22:44:04 [2024-12-17 22:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043947', 'tblTempUsageDetail_20' ) start [2024-12-17 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043947', 'tblTempUsageDetail_20' ) end [2024-12-17 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043947', 'tblTempVendorCDR_20' ) start [2024-12-17 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043947', 'tblTempVendorCDR_20' ) end [2024-12-17 22:44:17] Production.INFO: ProcessCDR(1,14043947,1,1,2) [2024-12-17 22:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043947', 'tblTempUsageDetail_20' ) start [2024-12-17 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043947', 'tblTempUsageDetail_20' ) end [2024-12-17 22:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:44:20] Production.INFO: ==14919== Releasing lock... [2024-12-17 22:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:44:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-17 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:45:05 [end_date_ymd] => 2024-12-17 22:45:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:45:05' and `end` < '2024-12-17 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-17 22:45:17] Production.INFO: count ==1091 [2024-12-17 22:45:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:45:05 - End Time 2024-12-17 22:45:05 [2024-12-17 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043952', 'tblTempUsageDetail_20' ) start [2024-12-17 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043952', 'tblTempUsageDetail_20' ) end [2024-12-17 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043952', 'tblTempVendorCDR_20' ) start [2024-12-17 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043952', 'tblTempVendorCDR_20' ) end [2024-12-17 22:45:17] Production.INFO: ProcessCDR(1,14043952,1,1,2) [2024-12-17 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043952', 'tblTempUsageDetail_20' ) start [2024-12-17 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043952', 'tblTempUsageDetail_20' ) end [2024-12-17 22:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:45:20] Production.INFO: ==15001== Releasing lock... [2024-12-17 22:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:45:20] Production.INFO: 36 MB #Memory Used# [2024-12-17 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:46:05 [end_date_ymd] => 2024-12-17 22:46:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:46:05' and `end` < '2024-12-17 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-17 22:46:17] Production.INFO: count ==1087 [2024-12-17 22:46:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:46:05 - End Time 2024-12-17 22:46:05 [2024-12-17 22:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043957', 'tblTempUsageDetail_20' ) start [2024-12-17 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043957', 'tblTempUsageDetail_20' ) end [2024-12-17 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043957', 'tblTempVendorCDR_20' ) start [2024-12-17 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043957', 'tblTempVendorCDR_20' ) end [2024-12-17 22:46:17] Production.INFO: ProcessCDR(1,14043957,1,1,2) [2024-12-17 22:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043957', 'tblTempUsageDetail_20' ) start [2024-12-17 22:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043957', 'tblTempUsageDetail_20' ) end [2024-12-17 22:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:46:20] Production.INFO: ==15086== Releasing lock... [2024-12-17 22:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:46:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-17 22:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:47:04 [end_date_ymd] => 2024-12-17 22:47:04 [RateCDR] => 1 ) [2024-12-17 22: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 19:47:04' and `end` < '2024-12-17 22: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-17 22:47:17] Production.INFO: count ==1086 [2024-12-17 22:47:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:47:04 - End Time 2024-12-17 22:47:04 [2024-12-17 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043962', 'tblTempUsageDetail_20' ) start [2024-12-17 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043962', 'tblTempUsageDetail_20' ) end [2024-12-17 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043962', 'tblTempVendorCDR_20' ) start [2024-12-17 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043962', 'tblTempVendorCDR_20' ) end [2024-12-17 22:47:17] Production.INFO: ProcessCDR(1,14043962,1,1,2) [2024-12-17 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043962', 'tblTempUsageDetail_20' ) start [2024-12-17 22:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043962', 'tblTempUsageDetail_20' ) end [2024-12-17 22:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:47:20] Production.INFO: ==15170== Releasing lock... [2024-12-17 22:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:47:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-17 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:48:05 [end_date_ymd] => 2024-12-17 22:48:05 [RateCDR] => 1 ) [2024-12-17 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 19:48:05' and `end` < '2024-12-17 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 22:48:17] Production.INFO: count ==1084 [2024-12-17 22:48:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:48:05 - End Time 2024-12-17 22:48:05 [2024-12-17 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043967', 'tblTempUsageDetail_20' ) start [2024-12-17 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043967', 'tblTempUsageDetail_20' ) end [2024-12-17 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043967', 'tblTempVendorCDR_20' ) start [2024-12-17 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043967', 'tblTempVendorCDR_20' ) end [2024-12-17 22:48:17] Production.INFO: ProcessCDR(1,14043967,1,1,2) [2024-12-17 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043967', 'tblTempUsageDetail_20' ) start [2024-12-17 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043967', 'tblTempUsageDetail_20' ) end [2024-12-17 22:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:48:20] Production.INFO: ==15256== Releasing lock... [2024-12-17 22:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:48:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-17 22:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:49:04 [end_date_ymd] => 2024-12-17 22:49:04 [RateCDR] => 1 ) [2024-12-17 22:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 19:49:04' and `end` < '2024-12-17 22:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 22:49:17] Production.INFO: count ==1080 [2024-12-17 22:49:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:49:04 - End Time 2024-12-17 22:49:04 [2024-12-17 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043972', 'tblTempUsageDetail_20' ) start [2024-12-17 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043972', 'tblTempUsageDetail_20' ) end [2024-12-17 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043972', 'tblTempVendorCDR_20' ) start [2024-12-17 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043972', 'tblTempVendorCDR_20' ) end [2024-12-17 22:49:17] Production.INFO: ProcessCDR(1,14043972,1,1,2) [2024-12-17 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043972', 'tblTempUsageDetail_20' ) start [2024-12-17 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043972', 'tblTempUsageDetail_20' ) end [2024-12-17 22:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:49:21] Production.INFO: ==15333== Releasing lock... [2024-12-17 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:49:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-17 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:50:05 [end_date_ymd] => 2024-12-17 22:50:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:50:05' and `end` < '2024-12-17 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-17 22:50:17] Production.INFO: count ==1081 [2024-12-17 22:50:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:50:05 - End Time 2024-12-17 22:50:05 [2024-12-17 22:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043977', 'tblTempUsageDetail_20' ) start [2024-12-17 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043977', 'tblTempUsageDetail_20' ) end [2024-12-17 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043977', 'tblTempVendorCDR_20' ) start [2024-12-17 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043977', 'tblTempVendorCDR_20' ) end [2024-12-17 22:50:17] Production.INFO: ProcessCDR(1,14043977,1,1,2) [2024-12-17 22:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043977', 'tblTempUsageDetail_20' ) start [2024-12-17 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043977', 'tblTempUsageDetail_20' ) end [2024-12-17 22:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:50:21] Production.INFO: ==15418== Releasing lock... [2024-12-17 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:50:21] Production.INFO: 36 MB #Memory Used# [2024-12-17 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:51:04 [end_date_ymd] => 2024-12-17 22:51:04 [RateCDR] => 1 ) [2024-12-17 22: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 19:51:04' and `end` < '2024-12-17 22: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-17 22:51:17] Production.INFO: count ==1068 [2024-12-17 22:51:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:51:04 - End Time 2024-12-17 22:51:04 [2024-12-17 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043983', 'tblTempUsageDetail_20' ) start [2024-12-17 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043983', 'tblTempUsageDetail_20' ) end [2024-12-17 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043983', 'tblTempVendorCDR_20' ) start [2024-12-17 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043983', 'tblTempVendorCDR_20' ) end [2024-12-17 22:51:17] Production.INFO: ProcessCDR(1,14043983,1,1,2) [2024-12-17 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043983', 'tblTempUsageDetail_20' ) start [2024-12-17 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043983', 'tblTempUsageDetail_20' ) end [2024-12-17 22:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:51:20] Production.INFO: ==15498== Releasing lock... [2024-12-17 22:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:51:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-17 22:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:52:04 [end_date_ymd] => 2024-12-17 22:52:04 [RateCDR] => 1 ) [2024-12-17 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-17 19:52:04' and `end` < '2024-12-17 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-17 22:52:17] Production.INFO: count ==1069 [2024-12-17 22:52:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:52:04 - End Time 2024-12-17 22:52:04 [2024-12-17 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043988', 'tblTempUsageDetail_20' ) start [2024-12-17 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043988', 'tblTempUsageDetail_20' ) end [2024-12-17 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043988', 'tblTempVendorCDR_20' ) start [2024-12-17 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043988', 'tblTempVendorCDR_20' ) end [2024-12-17 22:52:17] Production.INFO: ProcessCDR(1,14043988,1,1,2) [2024-12-17 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043988', 'tblTempUsageDetail_20' ) start [2024-12-17 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043988', 'tblTempUsageDetail_20' ) end [2024-12-17 22:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:52:22] Production.INFO: ==15571== Releasing lock... [2024-12-17 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:52:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-17 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:53:05 [end_date_ymd] => 2024-12-17 22:53:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:53:05' and `end` < '2024-12-17 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-17 22:53:17] Production.INFO: count ==1062 [2024-12-17 22:53:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:53:05 - End Time 2024-12-17 22:53:05 [2024-12-17 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043993', 'tblTempUsageDetail_20' ) start [2024-12-17 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043993', 'tblTempUsageDetail_20' ) end [2024-12-17 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043993', 'tblTempVendorCDR_20' ) start [2024-12-17 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043993', 'tblTempVendorCDR_20' ) end [2024-12-17 22:53:17] Production.INFO: ProcessCDR(1,14043993,1,1,2) [2024-12-17 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043993', 'tblTempUsageDetail_20' ) start [2024-12-17 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043993', 'tblTempUsageDetail_20' ) end [2024-12-17 22:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:53:20] Production.INFO: ==15646== Releasing lock... [2024-12-17 22:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:53:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-17 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:54:05 [end_date_ymd] => 2024-12-17 22:54:05 [RateCDR] => 1 ) [2024-12-17 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 19:54:05' and `end` < '2024-12-17 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 22:54:17] Production.INFO: count ==1062 [2024-12-17 22:54:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:54:05 - End Time 2024-12-17 22:54:05 [2024-12-17 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043998', 'tblTempUsageDetail_20' ) start [2024-12-17 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14043998', 'tblTempUsageDetail_20' ) end [2024-12-17 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043998', 'tblTempVendorCDR_20' ) start [2024-12-17 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14043998', 'tblTempVendorCDR_20' ) end [2024-12-17 22:54:17] Production.INFO: ProcessCDR(1,14043998,1,1,2) [2024-12-17 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14043998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14043998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14043998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14043998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043998', 'tblTempUsageDetail_20' ) start [2024-12-17 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14043998', 'tblTempUsageDetail_20' ) end [2024-12-17 22:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:54:20] Production.INFO: ==15723== Releasing lock... [2024-12-17 22:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:54:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-17 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:55:05 [end_date_ymd] => 2024-12-17 22:55:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:55:05' and `end` < '2024-12-17 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-17 22:55:17] Production.INFO: count ==1058 [2024-12-17 22:55:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:55:05 - End Time 2024-12-17 22:55:05 [2024-12-17 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044003', 'tblTempUsageDetail_20' ) start [2024-12-17 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044003', 'tblTempUsageDetail_20' ) end [2024-12-17 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044003', 'tblTempVendorCDR_20' ) start [2024-12-17 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044003', 'tblTempVendorCDR_20' ) end [2024-12-17 22:55:17] Production.INFO: ProcessCDR(1,14044003,1,1,2) [2024-12-17 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044003', 'tblTempUsageDetail_20' ) start [2024-12-17 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044003', 'tblTempUsageDetail_20' ) end [2024-12-17 22:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:55:20] Production.INFO: ==15840== Releasing lock... [2024-12-17 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:55:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-17 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:56:05 [end_date_ymd] => 2024-12-17 22:56:05 [RateCDR] => 1 ) [2024-12-17 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 19:56:05' and `end` < '2024-12-17 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 22:56:18] Production.INFO: count ==1057 [2024-12-17 22:56:18] Production.ERROR: pbx CDR StartTime 2024-12-17 19:56:05 - End Time 2024-12-17 22:56:05 [2024-12-17 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044008', 'tblTempUsageDetail_20' ) start [2024-12-17 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044008', 'tblTempUsageDetail_20' ) end [2024-12-17 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044008', 'tblTempVendorCDR_20' ) start [2024-12-17 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044008', 'tblTempVendorCDR_20' ) end [2024-12-17 22:56:18] Production.INFO: ProcessCDR(1,14044008,1,1,2) [2024-12-17 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044008', 'tblTempUsageDetail_20' ) start [2024-12-17 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044008', 'tblTempUsageDetail_20' ) end [2024-12-17 22:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:56:21] Production.INFO: ==15915== Releasing lock... [2024-12-17 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:56:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-17 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:57:05 [end_date_ymd] => 2024-12-17 22:57:05 [RateCDR] => 1 ) [2024-12-17 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 19:57:05' and `end` < '2024-12-17 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 22:57:17] Production.INFO: count ==1042 [2024-12-17 22:57:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:57:05 - End Time 2024-12-17 22:57:05 [2024-12-17 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044013', 'tblTempUsageDetail_20' ) start [2024-12-17 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044013', 'tblTempUsageDetail_20' ) end [2024-12-17 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044013', 'tblTempVendorCDR_20' ) start [2024-12-17 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044013', 'tblTempVendorCDR_20' ) end [2024-12-17 22:57:17] Production.INFO: ProcessCDR(1,14044013,1,1,2) [2024-12-17 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044013', 'tblTempUsageDetail_20' ) start [2024-12-17 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044013', 'tblTempUsageDetail_20' ) end [2024-12-17 22:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:57:20] Production.INFO: ==15990== Releasing lock... [2024-12-17 22:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:57:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-17 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:58:05 [end_date_ymd] => 2024-12-17 22:58:05 [RateCDR] => 1 ) [2024-12-17 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-17 19:58:05' and `end` < '2024-12-17 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-17 22:58:17] Production.INFO: count ==1042 [2024-12-17 22:58:17] Production.ERROR: pbx CDR StartTime 2024-12-17 19:58:05 - End Time 2024-12-17 22:58:05 [2024-12-17 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044018', 'tblTempUsageDetail_20' ) start [2024-12-17 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044018', 'tblTempUsageDetail_20' ) end [2024-12-17 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044018', 'tblTempVendorCDR_20' ) start [2024-12-17 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044018', 'tblTempVendorCDR_20' ) end [2024-12-17 22:58:17] Production.INFO: ProcessCDR(1,14044018,1,1,2) [2024-12-17 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044018', 'tblTempUsageDetail_20' ) start [2024-12-17 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044018', 'tblTempUsageDetail_20' ) end [2024-12-17 22:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:58:20] Production.INFO: ==16063== Releasing lock... [2024-12-17 22:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:58:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-17 22:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 19:59:04 [end_date_ymd] => 2024-12-17 22:59:04 [RateCDR] => 1 ) [2024-12-17 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-17 19:59:04' and `end` < '2024-12-17 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-17 22:59:16] Production.INFO: count ==1036 [2024-12-17 22:59:16] Production.ERROR: pbx CDR StartTime 2024-12-17 19:59:04 - End Time 2024-12-17 22:59:04 [2024-12-17 22:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 22:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044023', 'tblTempUsageDetail_20' ) start [2024-12-17 22:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044023', 'tblTempUsageDetail_20' ) end [2024-12-17 22:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044023', 'tblTempVendorCDR_20' ) start [2024-12-17 22:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044023', 'tblTempVendorCDR_20' ) end [2024-12-17 22:59:16] Production.INFO: ProcessCDR(1,14044023,1,1,2) [2024-12-17 22:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 22:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:59:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 22:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044023', 'tblTempUsageDetail_20' ) start [2024-12-17 22:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044023', 'tblTempUsageDetail_20' ) end [2024-12-17 22:59:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 22:59:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 22:59:19] Production.INFO: ==16144== Releasing lock... [2024-12-17 22:59:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 22:59:19] Production.INFO: 35.25 MB #Memory Used# [2024-12-17 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:00:05 [end_date_ymd] => 2024-12-17 23:00:05 [RateCDR] => 1 ) [2024-12-17 23: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 20:00:05' and `end` < '2024-12-17 23: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-17 23:00:18] Production.INFO: count ==1035 [2024-12-17 23:00:18] Production.ERROR: pbx CDR StartTime 2024-12-17 20:00:05 - End Time 2024-12-17 23:00:05 [2024-12-17 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044029', 'tblTempUsageDetail_20' ) start [2024-12-17 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044029', 'tblTempUsageDetail_20' ) end [2024-12-17 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044029', 'tblTempVendorCDR_20' ) start [2024-12-17 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044029', 'tblTempVendorCDR_20' ) end [2024-12-17 23:00:18] Production.INFO: ProcessCDR(1,14044029,1,1,2) [2024-12-17 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044029', 'tblTempUsageDetail_20' ) start [2024-12-17 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044029', 'tblTempUsageDetail_20' ) end [2024-12-17 23:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:00:21] Production.INFO: ==16222== Releasing lock... [2024-12-17 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:00:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-17 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:01:05 [end_date_ymd] => 2024-12-17 23:01:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:01:05' and `end` < '2024-12-17 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-17 23:01:18] Production.INFO: count ==978 [2024-12-17 23:01:18] Production.ERROR: pbx CDR StartTime 2024-12-17 20:01:05 - End Time 2024-12-17 23:01:05 [2024-12-17 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044034', 'tblTempUsageDetail_20' ) start [2024-12-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044034', 'tblTempUsageDetail_20' ) end [2024-12-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044034', 'tblTempVendorCDR_20' ) start [2024-12-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044034', 'tblTempVendorCDR_20' ) end [2024-12-17 23:01:18] Production.INFO: ProcessCDR(1,14044034,1,1,2) [2024-12-17 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044034', 'tblTempUsageDetail_20' ) start [2024-12-17 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044034', 'tblTempUsageDetail_20' ) end [2024-12-17 23:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:01:21] Production.INFO: ==16348== Releasing lock... [2024-12-17 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:01:21] Production.INFO: 35 MB #Memory Used# [2024-12-17 23:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:02:04 [end_date_ymd] => 2024-12-17 23:02:04 [RateCDR] => 1 ) [2024-12-17 23: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 20:02:04' and `end` < '2024-12-17 23: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-17 23:02:18] Production.INFO: count ==977 [2024-12-17 23:02:18] Production.ERROR: pbx CDR StartTime 2024-12-17 20:02:04 - End Time 2024-12-17 23:02:04 [2024-12-17 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044039', 'tblTempUsageDetail_20' ) start [2024-12-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044039', 'tblTempUsageDetail_20' ) end [2024-12-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044039', 'tblTempVendorCDR_20' ) start [2024-12-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044039', 'tblTempVendorCDR_20' ) end [2024-12-17 23:02:18] Production.INFO: ProcessCDR(1,14044039,1,1,2) [2024-12-17 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044039', 'tblTempUsageDetail_20' ) start [2024-12-17 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044039', 'tblTempUsageDetail_20' ) end [2024-12-17 23:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:02:21] Production.INFO: ==16466== Releasing lock... [2024-12-17 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:02:21] Production.INFO: 35 MB #Memory Used# [2024-12-17 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:03:05 [end_date_ymd] => 2024-12-17 23:03:05 [RateCDR] => 1 ) [2024-12-17 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 20:03:05' and `end` < '2024-12-17 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 23:03:17] Production.INFO: count ==975 [2024-12-17 23:03:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:03:05 - End Time 2024-12-17 23:03:05 [2024-12-17 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044044', 'tblTempUsageDetail_20' ) start [2024-12-17 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044044', 'tblTempUsageDetail_20' ) end [2024-12-17 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044044', 'tblTempVendorCDR_20' ) start [2024-12-17 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044044', 'tblTempVendorCDR_20' ) end [2024-12-17 23:03:17] Production.INFO: ProcessCDR(1,14044044,1,1,2) [2024-12-17 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044044', 'tblTempUsageDetail_20' ) start [2024-12-17 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044044', 'tblTempUsageDetail_20' ) end [2024-12-17 23:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:03:20] Production.INFO: ==16542== Releasing lock... [2024-12-17 23:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:03:20] Production.INFO: 35 MB #Memory Used# [2024-12-17 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:04:05 [end_date_ymd] => 2024-12-17 23:04:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:04:05' and `end` < '2024-12-17 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-17 23:04:17] Production.INFO: count ==973 [2024-12-17 23:04:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:04:05 - End Time 2024-12-17 23:04:05 [2024-12-17 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044049', 'tblTempUsageDetail_20' ) start [2024-12-17 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044049', 'tblTempUsageDetail_20' ) end [2024-12-17 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044049', 'tblTempVendorCDR_20' ) start [2024-12-17 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044049', 'tblTempVendorCDR_20' ) end [2024-12-17 23:04:17] Production.INFO: ProcessCDR(1,14044049,1,1,2) [2024-12-17 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044049', 'tblTempUsageDetail_20' ) start [2024-12-17 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044049', 'tblTempUsageDetail_20' ) end [2024-12-17 23:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:04:20] Production.INFO: ==16614== Releasing lock... [2024-12-17 23:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:04:20] Production.INFO: 35 MB #Memory Used# [2024-12-17 23:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:05:04 [end_date_ymd] => 2024-12-17 23:05:04 [RateCDR] => 1 ) [2024-12-17 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-17 20:05:04' and `end` < '2024-12-17 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-17 23:05:17] Production.INFO: count ==973 [2024-12-17 23:05:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:05:04 - End Time 2024-12-17 23:05:04 [2024-12-17 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044054', 'tblTempUsageDetail_20' ) start [2024-12-17 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044054', 'tblTempUsageDetail_20' ) end [2024-12-17 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044054', 'tblTempVendorCDR_20' ) start [2024-12-17 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044054', 'tblTempVendorCDR_20' ) end [2024-12-17 23:05:17] Production.INFO: ProcessCDR(1,14044054,1,1,2) [2024-12-17 23:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044054', 'tblTempUsageDetail_20' ) start [2024-12-17 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044054', 'tblTempUsageDetail_20' ) end [2024-12-17 23:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:05:20] Production.INFO: ==16765== Releasing lock... [2024-12-17 23:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:05:20] Production.INFO: 35 MB #Memory Used# [2024-12-17 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:06:05 [end_date_ymd] => 2024-12-17 23:06:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:06:05' and `end` < '2024-12-17 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-17 23:06:17] Production.INFO: count ==975 [2024-12-17 23:06:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:06:05 - End Time 2024-12-17 23:06:05 [2024-12-17 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044059', 'tblTempUsageDetail_20' ) start [2024-12-17 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044059', 'tblTempUsageDetail_20' ) end [2024-12-17 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044059', 'tblTempVendorCDR_20' ) start [2024-12-17 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044059', 'tblTempVendorCDR_20' ) end [2024-12-17 23:06:17] Production.INFO: ProcessCDR(1,14044059,1,1,2) [2024-12-17 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044059', 'tblTempUsageDetail_20' ) start [2024-12-17 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044059', 'tblTempUsageDetail_20' ) end [2024-12-17 23:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:06:20] Production.INFO: ==16838== Releasing lock... [2024-12-17 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:06:20] Production.INFO: 35 MB #Memory Used# [2024-12-17 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:07:04 [end_date_ymd] => 2024-12-17 23:07:04 [RateCDR] => 1 ) [2024-12-17 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-17 20:07:04' and `end` < '2024-12-17 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-17 23:07:17] Production.INFO: count ==976 [2024-12-17 23:07:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:07:04 - End Time 2024-12-17 23:07:04 [2024-12-17 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044064', 'tblTempUsageDetail_20' ) start [2024-12-17 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044064', 'tblTempUsageDetail_20' ) end [2024-12-17 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044064', 'tblTempVendorCDR_20' ) start [2024-12-17 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044064', 'tblTempVendorCDR_20' ) end [2024-12-17 23:07:17] Production.INFO: ProcessCDR(1,14044064,1,1,2) [2024-12-17 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044064', 'tblTempUsageDetail_20' ) start [2024-12-17 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044064', 'tblTempUsageDetail_20' ) end [2024-12-17 23:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:07:21] Production.INFO: ==16910== Releasing lock... [2024-12-17 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:07:21] Production.INFO: 35 MB #Memory Used# [2024-12-17 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:08:05 [end_date_ymd] => 2024-12-17 23:08:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:08:05' and `end` < '2024-12-17 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-17 23:08:17] Production.INFO: count ==980 [2024-12-17 23:08:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:08:05 - End Time 2024-12-17 23:08:05 [2024-12-17 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044069', 'tblTempUsageDetail_20' ) start [2024-12-17 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044069', 'tblTempUsageDetail_20' ) end [2024-12-17 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044069', 'tblTempVendorCDR_20' ) start [2024-12-17 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044069', 'tblTempVendorCDR_20' ) end [2024-12-17 23:08:17] Production.INFO: ProcessCDR(1,14044069,1,1,2) [2024-12-17 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044069', 'tblTempUsageDetail_20' ) start [2024-12-17 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044069', 'tblTempUsageDetail_20' ) end [2024-12-17 23:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:08:21] Production.INFO: ==17059== Releasing lock... [2024-12-17 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:08:21] Production.INFO: 35 MB #Memory Used# [2024-12-17 23:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:09:04 [end_date_ymd] => 2024-12-17 23:09:04 [RateCDR] => 1 ) [2024-12-17 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-17 20:09:04' and `end` < '2024-12-17 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-17 23:09:17] Production.INFO: count ==964 [2024-12-17 23:09:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:09:04 - End Time 2024-12-17 23:09:04 [2024-12-17 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044074', 'tblTempUsageDetail_20' ) start [2024-12-17 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044074', 'tblTempUsageDetail_20' ) end [2024-12-17 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044074', 'tblTempVendorCDR_20' ) start [2024-12-17 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044074', 'tblTempVendorCDR_20' ) end [2024-12-17 23:09:17] Production.INFO: ProcessCDR(1,14044074,1,1,2) [2024-12-17 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044074', 'tblTempUsageDetail_20' ) start [2024-12-17 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044074', 'tblTempUsageDetail_20' ) end [2024-12-17 23:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:09:20] Production.INFO: ==17134== Releasing lock... [2024-12-17 23:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:09:20] Production.INFO: 35 MB #Memory Used# [2024-12-17 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:10:05 [end_date_ymd] => 2024-12-17 23:10:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:10:05' and `end` < '2024-12-17 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-17 23:10:19] Production.INFO: count ==935 [2024-12-17 23:10:19] Production.ERROR: pbx CDR StartTime 2024-12-17 20:10:05 - End Time 2024-12-17 23:10:05 [2024-12-17 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044079', 'tblTempUsageDetail_20' ) start [2024-12-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044079', 'tblTempUsageDetail_20' ) end [2024-12-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044079', 'tblTempVendorCDR_20' ) start [2024-12-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044079', 'tblTempVendorCDR_20' ) end [2024-12-17 23:10:19] Production.INFO: ProcessCDR(1,14044079,1,1,2) [2024-12-17 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044079', 'tblTempUsageDetail_20' ) start [2024-12-17 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044079', 'tblTempUsageDetail_20' ) end [2024-12-17 23:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:10:22] Production.INFO: ==17208== Releasing lock... [2024-12-17 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:10:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-17 23:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:11:04 [end_date_ymd] => 2024-12-17 23:11:04 [RateCDR] => 1 ) [2024-12-17 23: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 20:11:04' and `end` < '2024-12-17 23: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-17 23:11:17] Production.INFO: count ==883 [2024-12-17 23:11:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:11:04 - End Time 2024-12-17 23:11:04 [2024-12-17 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044085', 'tblTempUsageDetail_20' ) start [2024-12-17 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044085', 'tblTempUsageDetail_20' ) end [2024-12-17 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044085', 'tblTempVendorCDR_20' ) start [2024-12-17 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044085', 'tblTempVendorCDR_20' ) end [2024-12-17 23:11:17] Production.INFO: ProcessCDR(1,14044085,1,1,2) [2024-12-17 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044085', 'tblTempUsageDetail_20' ) start [2024-12-17 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044085', 'tblTempUsageDetail_20' ) end [2024-12-17 23:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:11:20] Production.INFO: ==17321== Releasing lock... [2024-12-17 23:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:11:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:12:05 [end_date_ymd] => 2024-12-17 23:12:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:12:05' and `end` < '2024-12-17 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-17 23:12:18] Production.INFO: count ==881 [2024-12-17 23:12:18] Production.ERROR: pbx CDR StartTime 2024-12-17 20:12:05 - End Time 2024-12-17 23:12:05 [2024-12-17 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044090', 'tblTempUsageDetail_20' ) start [2024-12-17 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044090', 'tblTempUsageDetail_20' ) end [2024-12-17 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044090', 'tblTempVendorCDR_20' ) start [2024-12-17 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044090', 'tblTempVendorCDR_20' ) end [2024-12-17 23:12:18] Production.INFO: ProcessCDR(1,14044090,1,1,2) [2024-12-17 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044090', 'tblTempUsageDetail_20' ) start [2024-12-17 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044090', 'tblTempUsageDetail_20' ) end [2024-12-17 23:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:12:21] Production.INFO: ==17470== Releasing lock... [2024-12-17 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:12:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:13:05 [end_date_ymd] => 2024-12-17 23:13:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:13:05' and `end` < '2024-12-17 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-17 23:13:18] Production.INFO: count ==881 [2024-12-17 23:13:18] Production.ERROR: pbx CDR StartTime 2024-12-17 20:13:05 - End Time 2024-12-17 23:13:05 [2024-12-17 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044095', 'tblTempUsageDetail_20' ) start [2024-12-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044095', 'tblTempUsageDetail_20' ) end [2024-12-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044095', 'tblTempVendorCDR_20' ) start [2024-12-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044095', 'tblTempVendorCDR_20' ) end [2024-12-17 23:13:18] Production.INFO: ProcessCDR(1,14044095,1,1,2) [2024-12-17 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044095', 'tblTempUsageDetail_20' ) start [2024-12-17 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044095', 'tblTempUsageDetail_20' ) end [2024-12-17 23:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:13:21] Production.INFO: ==17543== Releasing lock... [2024-12-17 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:13:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:14:05 [end_date_ymd] => 2024-12-17 23:14:05 [RateCDR] => 1 ) [2024-12-17 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 20:14:05' and `end` < '2024-12-17 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 23:14:17] Production.INFO: count ==880 [2024-12-17 23:14:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:14:05 - End Time 2024-12-17 23:14:05 [2024-12-17 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044100', 'tblTempUsageDetail_20' ) start [2024-12-17 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044100', 'tblTempUsageDetail_20' ) end [2024-12-17 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044100', 'tblTempVendorCDR_20' ) start [2024-12-17 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044100', 'tblTempVendorCDR_20' ) end [2024-12-17 23:14:17] Production.INFO: ProcessCDR(1,14044100,1,1,2) [2024-12-17 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044100', 'tblTempUsageDetail_20' ) start [2024-12-17 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044100', 'tblTempUsageDetail_20' ) end [2024-12-17 23:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:14:20] Production.INFO: ==17613== Releasing lock... [2024-12-17 23:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:14:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:15:05 [end_date_ymd] => 2024-12-17 23:15:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:15:05' and `end` < '2024-12-17 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-17 23:15:18] Production.INFO: count ==880 [2024-12-17 23:15:18] Production.ERROR: pbx CDR StartTime 2024-12-17 20:15:05 - End Time 2024-12-17 23:15:05 [2024-12-17 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044105', 'tblTempUsageDetail_20' ) start [2024-12-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044105', 'tblTempUsageDetail_20' ) end [2024-12-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044105', 'tblTempVendorCDR_20' ) start [2024-12-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044105', 'tblTempVendorCDR_20' ) end [2024-12-17 23:15:18] Production.INFO: ProcessCDR(1,14044105,1,1,2) [2024-12-17 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044105', 'tblTempUsageDetail_20' ) start [2024-12-17 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044105', 'tblTempUsageDetail_20' ) end [2024-12-17 23:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:15:21] Production.INFO: ==17762== Releasing lock... [2024-12-17 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:15:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 23:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:16:04 [end_date_ymd] => 2024-12-17 23:16:04 [RateCDR] => 1 ) [2024-12-17 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-17 20:16:04' and `end` < '2024-12-17 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-17 23:16:16] Production.INFO: count ==884 [2024-12-17 23:16:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:16:04 - End Time 2024-12-17 23:16:04 [2024-12-17 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044110', 'tblTempUsageDetail_20' ) start [2024-12-17 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044110', 'tblTempUsageDetail_20' ) end [2024-12-17 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044110', 'tblTempVendorCDR_20' ) start [2024-12-17 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044110', 'tblTempVendorCDR_20' ) end [2024-12-17 23:16:17] Production.INFO: ProcessCDR(1,14044110,1,1,2) [2024-12-17 23:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044110', 'tblTempUsageDetail_20' ) start [2024-12-17 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044110', 'tblTempUsageDetail_20' ) end [2024-12-17 23:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:16:22] Production.INFO: ==17835== Releasing lock... [2024-12-17 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:16:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:17:05 [end_date_ymd] => 2024-12-17 23:17:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:17:05' and `end` < '2024-12-17 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-17 23:17:19] Production.INFO: count ==876 [2024-12-17 23:17:19] Production.ERROR: pbx CDR StartTime 2024-12-17 20:17:05 - End Time 2024-12-17 23:17:05 [2024-12-17 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044115', 'tblTempUsageDetail_20' ) start [2024-12-17 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044115', 'tblTempUsageDetail_20' ) end [2024-12-17 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044115', 'tblTempVendorCDR_20' ) start [2024-12-17 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044115', 'tblTempVendorCDR_20' ) end [2024-12-17 23:17:19] Production.INFO: ProcessCDR(1,14044115,1,1,2) [2024-12-17 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044115', 'tblTempUsageDetail_20' ) start [2024-12-17 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044115', 'tblTempUsageDetail_20' ) end [2024-12-17 23:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:17:22] Production.INFO: ==17910== Releasing lock... [2024-12-17 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:17:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:18:05 [end_date_ymd] => 2024-12-17 23:18:05 [RateCDR] => 1 ) [2024-12-17 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 20:18:05' and `end` < '2024-12-17 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 23:18:17] Production.INFO: count ==874 [2024-12-17 23:18:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:18:05 - End Time 2024-12-17 23:18:05 [2024-12-17 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044120', 'tblTempUsageDetail_20' ) start [2024-12-17 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044120', 'tblTempUsageDetail_20' ) end [2024-12-17 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044120', 'tblTempVendorCDR_20' ) start [2024-12-17 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044120', 'tblTempVendorCDR_20' ) end [2024-12-17 23:18:17] Production.INFO: ProcessCDR(1,14044120,1,1,2) [2024-12-17 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044120', 'tblTempUsageDetail_20' ) start [2024-12-17 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044120', 'tblTempUsageDetail_20' ) end [2024-12-17 23:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:18:20] Production.INFO: ==17981== Releasing lock... [2024-12-17 23:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:18:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:19:04 [end_date_ymd] => 2024-12-17 23:19:04 [RateCDR] => 1 ) [2024-12-17 23: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-17 20:19:04' and `end` < '2024-12-17 23: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-17 23:19:17] Production.INFO: count ==873 [2024-12-17 23:19:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:19:04 - End Time 2024-12-17 23:19:04 [2024-12-17 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044125', 'tblTempUsageDetail_20' ) start [2024-12-17 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044125', 'tblTempUsageDetail_20' ) end [2024-12-17 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044125', 'tblTempVendorCDR_20' ) start [2024-12-17 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044125', 'tblTempVendorCDR_20' ) end [2024-12-17 23:19:17] Production.INFO: ProcessCDR(1,14044125,1,1,2) [2024-12-17 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044125', 'tblTempUsageDetail_20' ) start [2024-12-17 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044125', 'tblTempUsageDetail_20' ) end [2024-12-17 23:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:19:20] Production.INFO: ==18053== Releasing lock... [2024-12-17 23:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:19:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:20:06 [end_date_ymd] => 2024-12-17 23:20:06 [RateCDR] => 1 ) [2024-12-17 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 20:20:06' and `end` < '2024-12-17 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 23:20:18] Production.INFO: count ==873 [2024-12-17 23:20:18] Production.ERROR: pbx CDR StartTime 2024-12-17 20:20:06 - End Time 2024-12-17 23:20:06 [2024-12-17 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044130', 'tblTempUsageDetail_20' ) start [2024-12-17 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044130', 'tblTempUsageDetail_20' ) end [2024-12-17 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044130', 'tblTempVendorCDR_20' ) start [2024-12-17 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044130', 'tblTempVendorCDR_20' ) end [2024-12-17 23:20:18] Production.INFO: ProcessCDR(1,14044130,1,1,2) [2024-12-17 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044130', 'tblTempUsageDetail_20' ) start [2024-12-17 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044130', 'tblTempUsageDetail_20' ) end [2024-12-17 23:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:20:21] Production.INFO: ==18126== Releasing lock... [2024-12-17 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:20:21] Production.INFO: 34 MB #Memory Used# [2024-12-17 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:21:04 [end_date_ymd] => 2024-12-17 23:21:04 [RateCDR] => 1 ) [2024-12-17 23: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-17 20:21:04' and `end` < '2024-12-17 23: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-17 23:21:16] Production.INFO: count ==853 [2024-12-17 23:21:16] Production.ERROR: pbx CDR StartTime 2024-12-17 20:21:04 - End Time 2024-12-17 23:21:04 [2024-12-17 23:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044136', 'tblTempUsageDetail_20' ) start [2024-12-17 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044136', 'tblTempUsageDetail_20' ) end [2024-12-17 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044136', 'tblTempVendorCDR_20' ) start [2024-12-17 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044136', 'tblTempVendorCDR_20' ) end [2024-12-17 23:21:17] Production.INFO: ProcessCDR(1,14044136,1,1,2) [2024-12-17 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044136', 'tblTempUsageDetail_20' ) start [2024-12-17 23:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044136', 'tblTempUsageDetail_20' ) end [2024-12-17 23:21:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:21:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:21:19] Production.INFO: ==18200== Releasing lock... [2024-12-17 23:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:21:19] Production.INFO: 33.5 MB #Memory Used# [2024-12-17 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:22:05 [end_date_ymd] => 2024-12-17 23:22:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:22:05' and `end` < '2024-12-17 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-17 23:22:17] Production.INFO: count ==855 [2024-12-17 23:22:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:22:05 - End Time 2024-12-17 23:22:05 [2024-12-17 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044141', 'tblTempUsageDetail_20' ) start [2024-12-17 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044141', 'tblTempUsageDetail_20' ) end [2024-12-17 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044141', 'tblTempVendorCDR_20' ) start [2024-12-17 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044141', 'tblTempVendorCDR_20' ) end [2024-12-17 23:22:17] Production.INFO: ProcessCDR(1,14044141,1,1,2) [2024-12-17 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044141', 'tblTempUsageDetail_20' ) start [2024-12-17 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044141', 'tblTempUsageDetail_20' ) end [2024-12-17 23:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:22:20] Production.INFO: ==18273== Releasing lock... [2024-12-17 23:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:22:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-17 23:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:23:04 [end_date_ymd] => 2024-12-17 23:23:04 [RateCDR] => 1 ) [2024-12-17 23: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 20:23:04' and `end` < '2024-12-17 23: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-17 23:23:17] Production.INFO: count ==854 [2024-12-17 23:23:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:23:04 - End Time 2024-12-17 23:23:04 [2024-12-17 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044146', 'tblTempUsageDetail_20' ) start [2024-12-17 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044146', 'tblTempUsageDetail_20' ) end [2024-12-17 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044146', 'tblTempVendorCDR_20' ) start [2024-12-17 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044146', 'tblTempVendorCDR_20' ) end [2024-12-17 23:23:17] Production.INFO: ProcessCDR(1,14044146,1,1,2) [2024-12-17 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044146', 'tblTempUsageDetail_20' ) start [2024-12-17 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044146', 'tblTempUsageDetail_20' ) end [2024-12-17 23:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:23:20] Production.INFO: ==18353== Releasing lock... [2024-12-17 23:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:23:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-17 23:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:24:04 [end_date_ymd] => 2024-12-17 23:24:04 [RateCDR] => 1 ) [2024-12-17 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-17 20:24:04' and `end` < '2024-12-17 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-17 23:24:17] Production.INFO: count ==853 [2024-12-17 23:24:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:24:04 - End Time 2024-12-17 23:24:04 [2024-12-17 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044151', 'tblTempUsageDetail_20' ) start [2024-12-17 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044151', 'tblTempUsageDetail_20' ) end [2024-12-17 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044151', 'tblTempVendorCDR_20' ) start [2024-12-17 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044151', 'tblTempVendorCDR_20' ) end [2024-12-17 23:24:17] Production.INFO: ProcessCDR(1,14044151,1,1,2) [2024-12-17 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044151', 'tblTempUsageDetail_20' ) start [2024-12-17 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044151', 'tblTempUsageDetail_20' ) end [2024-12-17 23:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:24:20] Production.INFO: ==18435== Releasing lock... [2024-12-17 23:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:24:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-17 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:25:05 [end_date_ymd] => 2024-12-17 23:25:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:25:05' and `end` < '2024-12-17 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-17 23:25:19] Production.INFO: count ==851 [2024-12-17 23:25:19] Production.ERROR: pbx CDR StartTime 2024-12-17 20:25:05 - End Time 2024-12-17 23:25:05 [2024-12-17 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044156', 'tblTempUsageDetail_20' ) start [2024-12-17 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044156', 'tblTempUsageDetail_20' ) end [2024-12-17 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044156', 'tblTempVendorCDR_20' ) start [2024-12-17 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044156', 'tblTempVendorCDR_20' ) end [2024-12-17 23:25:19] Production.INFO: ProcessCDR(1,14044156,1,1,2) [2024-12-17 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044156', 'tblTempUsageDetail_20' ) start [2024-12-17 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044156', 'tblTempUsageDetail_20' ) end [2024-12-17 23:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:25:22] Production.INFO: ==18517== Releasing lock... [2024-12-17 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:25:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-17 23:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:26:04 [end_date_ymd] => 2024-12-17 23:26:04 [RateCDR] => 1 ) [2024-12-17 23: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 20:26:04' and `end` < '2024-12-17 23: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-17 23:26:16] Production.INFO: count ==851 [2024-12-17 23:26:16] Production.ERROR: pbx CDR StartTime 2024-12-17 20:26:04 - End Time 2024-12-17 23:26:04 [2024-12-17 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044161', 'tblTempUsageDetail_20' ) start [2024-12-17 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044161', 'tblTempUsageDetail_20' ) end [2024-12-17 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044161', 'tblTempVendorCDR_20' ) start [2024-12-17 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044161', 'tblTempVendorCDR_20' ) end [2024-12-17 23:26:17] Production.INFO: ProcessCDR(1,14044161,1,1,2) [2024-12-17 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044161', 'tblTempUsageDetail_20' ) start [2024-12-17 23:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044161', 'tblTempUsageDetail_20' ) end [2024-12-17 23:26:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:26:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:26:19] Production.INFO: ==18596== Releasing lock... [2024-12-17 23:26:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:26:19] Production.INFO: 33.5 MB #Memory Used# [2024-12-17 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:27:05 [end_date_ymd] => 2024-12-17 23:27:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:27:05' and `end` < '2024-12-17 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-17 23:27:17] Production.INFO: count ==848 [2024-12-17 23:27:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:27:05 - End Time 2024-12-17 23:27:05 [2024-12-17 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044166', 'tblTempUsageDetail_20' ) start [2024-12-17 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044166', 'tblTempUsageDetail_20' ) end [2024-12-17 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044166', 'tblTempVendorCDR_20' ) start [2024-12-17 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044166', 'tblTempVendorCDR_20' ) end [2024-12-17 23:27:17] Production.INFO: ProcessCDR(1,14044166,1,1,2) [2024-12-17 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044166', 'tblTempUsageDetail_20' ) start [2024-12-17 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044166', 'tblTempUsageDetail_20' ) end [2024-12-17 23:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:27:20] Production.INFO: ==18716== Releasing lock... [2024-12-17 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:27:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-17 23:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:28:04 [end_date_ymd] => 2024-12-17 23:28:04 [RateCDR] => 1 ) [2024-12-17 23:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 20:28:04' and `end` < '2024-12-17 23:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 23:28:17] Production.INFO: count ==847 [2024-12-17 23:28:18] Production.ERROR: pbx CDR StartTime 2024-12-17 20:28:04 - End Time 2024-12-17 23:28:04 [2024-12-17 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044171', 'tblTempUsageDetail_20' ) start [2024-12-17 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044171', 'tblTempUsageDetail_20' ) end [2024-12-17 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044171', 'tblTempVendorCDR_20' ) start [2024-12-17 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044171', 'tblTempVendorCDR_20' ) end [2024-12-17 23:28:18] Production.INFO: ProcessCDR(1,14044171,1,1,2) [2024-12-17 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044171', 'tblTempUsageDetail_20' ) start [2024-12-17 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044171', 'tblTempUsageDetail_20' ) end [2024-12-17 23:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:28:20] Production.INFO: ==18795== Releasing lock... [2024-12-17 23:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:28:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-17 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:29:04 [end_date_ymd] => 2024-12-17 23:29:04 [RateCDR] => 1 ) [2024-12-17 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-17 20:29:04' and `end` < '2024-12-17 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-17 23:29:17] Production.INFO: count ==847 [2024-12-17 23:29:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:29:04 - End Time 2024-12-17 23:29:04 [2024-12-17 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044176', 'tblTempUsageDetail_20' ) start [2024-12-17 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044176', 'tblTempUsageDetail_20' ) end [2024-12-17 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044176', 'tblTempVendorCDR_20' ) start [2024-12-17 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044176', 'tblTempVendorCDR_20' ) end [2024-12-17 23:29:17] Production.INFO: ProcessCDR(1,14044176,1,1,2) [2024-12-17 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044176', 'tblTempUsageDetail_20' ) start [2024-12-17 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044176', 'tblTempUsageDetail_20' ) end [2024-12-17 23:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:29:20] Production.INFO: ==18880== Releasing lock... [2024-12-17 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:29:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-17 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:30:06 [end_date_ymd] => 2024-12-17 23:30:06 [RateCDR] => 1 ) [2024-12-17 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 20:30:06' and `end` < '2024-12-17 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 23:30:18] Production.INFO: count ==850 [2024-12-17 23:30:18] Production.ERROR: pbx CDR StartTime 2024-12-17 20:30:06 - End Time 2024-12-17 23:30:06 [2024-12-17 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044182', 'tblTempUsageDetail_20' ) start [2024-12-17 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044182', 'tblTempUsageDetail_20' ) end [2024-12-17 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044182', 'tblTempVendorCDR_20' ) start [2024-12-17 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044182', 'tblTempVendorCDR_20' ) end [2024-12-17 23:30:18] Production.INFO: ProcessCDR(1,14044182,1,1,2) [2024-12-17 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044182', 'tblTempUsageDetail_20' ) start [2024-12-17 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044182', 'tblTempUsageDetail_20' ) end [2024-12-17 23:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:30:22] Production.INFO: ==18964== Releasing lock... [2024-12-17 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:30:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-17 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:31:05 [end_date_ymd] => 2024-12-17 23:31:05 [RateCDR] => 1 ) [2024-12-17 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 20:31:05' and `end` < '2024-12-17 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 23:31:17] Production.INFO: count ==821 [2024-12-17 23:31:18] Production.ERROR: pbx CDR StartTime 2024-12-17 20:31:05 - End Time 2024-12-17 23:31:05 [2024-12-17 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044187', 'tblTempUsageDetail_20' ) start [2024-12-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044187', 'tblTempUsageDetail_20' ) end [2024-12-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044187', 'tblTempVendorCDR_20' ) start [2024-12-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044187', 'tblTempVendorCDR_20' ) end [2024-12-17 23:31:18] Production.INFO: ProcessCDR(1,14044187,1,1,2) [2024-12-17 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044187', 'tblTempUsageDetail_20' ) start [2024-12-17 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044187', 'tblTempUsageDetail_20' ) end [2024-12-17 23:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:31:21] Production.INFO: ==19044== Releasing lock... [2024-12-17 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:31:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-17 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:32:05 [end_date_ymd] => 2024-12-17 23:32:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:32:05' and `end` < '2024-12-17 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-17 23:32:19] Production.INFO: count ==822 [2024-12-17 23:32:19] Production.ERROR: pbx CDR StartTime 2024-12-17 20:32:05 - End Time 2024-12-17 23:32:05 [2024-12-17 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044192', 'tblTempUsageDetail_20' ) start [2024-12-17 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044192', 'tblTempUsageDetail_20' ) end [2024-12-17 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044192', 'tblTempVendorCDR_20' ) start [2024-12-17 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044192', 'tblTempVendorCDR_20' ) end [2024-12-17 23:32:19] Production.INFO: ProcessCDR(1,14044192,1,1,2) [2024-12-17 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044192', 'tblTempUsageDetail_20' ) start [2024-12-17 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044192', 'tblTempUsageDetail_20' ) end [2024-12-17 23:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:32:23] Production.INFO: ==19128== Releasing lock... [2024-12-17 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:32:23] Production.INFO: 33.25 MB #Memory Used# [2024-12-17 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:33:04 [end_date_ymd] => 2024-12-17 23:33:04 [RateCDR] => 1 ) [2024-12-17 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-17 20:33:04' and `end` < '2024-12-17 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-17 23:33:18] Production.INFO: count ==822 [2024-12-17 23:33:18] Production.ERROR: pbx CDR StartTime 2024-12-17 20:33:04 - End Time 2024-12-17 23:33:04 [2024-12-17 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044197', 'tblTempUsageDetail_20' ) start [2024-12-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044197', 'tblTempUsageDetail_20' ) end [2024-12-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044197', 'tblTempVendorCDR_20' ) start [2024-12-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044197', 'tblTempVendorCDR_20' ) end [2024-12-17 23:33:18] Production.INFO: ProcessCDR(1,14044197,1,1,2) [2024-12-17 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044197', 'tblTempUsageDetail_20' ) start [2024-12-17 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044197', 'tblTempUsageDetail_20' ) end [2024-12-17 23:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:33:21] Production.INFO: ==19206== Releasing lock... [2024-12-17 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:33:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-17 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:34:05 [end_date_ymd] => 2024-12-17 23:34:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:34:05' and `end` < '2024-12-17 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-17 23:34:17] Production.INFO: count ==822 [2024-12-17 23:34:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:34:05 - End Time 2024-12-17 23:34:05 [2024-12-17 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044202', 'tblTempUsageDetail_20' ) start [2024-12-17 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044202', 'tblTempUsageDetail_20' ) end [2024-12-17 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044202', 'tblTempVendorCDR_20' ) start [2024-12-17 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044202', 'tblTempVendorCDR_20' ) end [2024-12-17 23:34:17] Production.INFO: ProcessCDR(1,14044202,1,1,2) [2024-12-17 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044202', 'tblTempUsageDetail_20' ) start [2024-12-17 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044202', 'tblTempUsageDetail_20' ) end [2024-12-17 23:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:34:20] Production.INFO: ==19277== Releasing lock... [2024-12-17 23:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:34:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-17 23:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:35:04 [end_date_ymd] => 2024-12-17 23:35:04 [RateCDR] => 1 ) [2024-12-17 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-17 20:35:04' and `end` < '2024-12-17 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-17 23:35:16] Production.INFO: count ==822 [2024-12-17 23:35:16] Production.ERROR: pbx CDR StartTime 2024-12-17 20:35:04 - End Time 2024-12-17 23:35:04 [2024-12-17 23:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044207', 'tblTempUsageDetail_20' ) start [2024-12-17 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044207', 'tblTempUsageDetail_20' ) end [2024-12-17 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044207', 'tblTempVendorCDR_20' ) start [2024-12-17 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044207', 'tblTempVendorCDR_20' ) end [2024-12-17 23:35:16] Production.INFO: ProcessCDR(1,14044207,1,1,2) [2024-12-17 23:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044207', 'tblTempUsageDetail_20' ) start [2024-12-17 23:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044207', 'tblTempUsageDetail_20' ) end [2024-12-17 23:35:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:35:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:35:19] Production.INFO: ==19348== Releasing lock... [2024-12-17 23:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:35:19] Production.INFO: 33.25 MB #Memory Used# [2024-12-17 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:36:05 [end_date_ymd] => 2024-12-17 23:36:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:36:05' and `end` < '2024-12-17 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-17 23:36:17] Production.INFO: count ==823 [2024-12-17 23:36:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:36:05 - End Time 2024-12-17 23:36:05 [2024-12-17 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044212', 'tblTempUsageDetail_20' ) start [2024-12-17 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044212', 'tblTempUsageDetail_20' ) end [2024-12-17 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044212', 'tblTempVendorCDR_20' ) start [2024-12-17 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044212', 'tblTempVendorCDR_20' ) end [2024-12-17 23:36:17] Production.INFO: ProcessCDR(1,14044212,1,1,2) [2024-12-17 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044212', 'tblTempUsageDetail_20' ) start [2024-12-17 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044212', 'tblTempUsageDetail_20' ) end [2024-12-17 23:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:36:21] Production.INFO: ==19419== Releasing lock... [2024-12-17 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:36:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-17 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:37:05 [end_date_ymd] => 2024-12-17 23:37:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:37:05' and `end` < '2024-12-17 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-17 23:37:18] Production.INFO: count ==819 [2024-12-17 23:37:18] Production.ERROR: pbx CDR StartTime 2024-12-17 20:37:05 - End Time 2024-12-17 23:37:05 [2024-12-17 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044217', 'tblTempUsageDetail_20' ) start [2024-12-17 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044217', 'tblTempUsageDetail_20' ) end [2024-12-17 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044217', 'tblTempVendorCDR_20' ) start [2024-12-17 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044217', 'tblTempVendorCDR_20' ) end [2024-12-17 23:37:18] Production.INFO: ProcessCDR(1,14044217,1,1,2) [2024-12-17 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044217', 'tblTempUsageDetail_20' ) start [2024-12-17 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044217', 'tblTempUsageDetail_20' ) end [2024-12-17 23:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:37:21] Production.INFO: ==19492== Releasing lock... [2024-12-17 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:37:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-17 23:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:38:04 [end_date_ymd] => 2024-12-17 23:38:04 [RateCDR] => 1 ) [2024-12-17 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-17 20:38:04' and `end` < '2024-12-17 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-17 23:38:16] Production.INFO: count ==817 [2024-12-17 23:38:16] Production.ERROR: pbx CDR StartTime 2024-12-17 20:38:04 - End Time 2024-12-17 23:38:04 [2024-12-17 23:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044222', 'tblTempUsageDetail_20' ) start [2024-12-17 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044222', 'tblTempUsageDetail_20' ) end [2024-12-17 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044222', 'tblTempVendorCDR_20' ) start [2024-12-17 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044222', 'tblTempVendorCDR_20' ) end [2024-12-17 23:38:17] Production.INFO: ProcessCDR(1,14044222,1,1,2) [2024-12-17 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:38:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044222', 'tblTempUsageDetail_20' ) start [2024-12-17 23:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044222', 'tblTempUsageDetail_20' ) end [2024-12-17 23:38:19] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:38:19] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:38:19] Production.INFO: ==19561== Releasing lock... [2024-12-17 23:38:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:38:19] Production.INFO: 33.25 MB #Memory Used# [2024-12-17 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:39:05 [end_date_ymd] => 2024-12-17 23:39:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:39:05' and `end` < '2024-12-17 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-17 23:39:17] Production.INFO: count ==817 [2024-12-17 23:39:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:39:05 - End Time 2024-12-17 23:39:05 [2024-12-17 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044227', 'tblTempUsageDetail_20' ) start [2024-12-17 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044227', 'tblTempUsageDetail_20' ) end [2024-12-17 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044227', 'tblTempVendorCDR_20' ) start [2024-12-17 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044227', 'tblTempVendorCDR_20' ) end [2024-12-17 23:39:17] Production.INFO: ProcessCDR(1,14044227,1,1,2) [2024-12-17 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044227', 'tblTempUsageDetail_20' ) start [2024-12-17 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044227', 'tblTempUsageDetail_20' ) end [2024-12-17 23:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:39:20] Production.INFO: ==19632== Releasing lock... [2024-12-17 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:39:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-17 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:40:05 [end_date_ymd] => 2024-12-17 23:40:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:40:05' and `end` < '2024-12-17 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-17 23:40:17] Production.INFO: count ==814 [2024-12-17 23:40:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:40:05 - End Time 2024-12-17 23:40:05 [2024-12-17 23:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044233', 'tblTempUsageDetail_20' ) start [2024-12-17 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044233', 'tblTempUsageDetail_20' ) end [2024-12-17 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044233', 'tblTempVendorCDR_20' ) start [2024-12-17 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044233', 'tblTempVendorCDR_20' ) end [2024-12-17 23:40:17] Production.INFO: ProcessCDR(1,14044233,1,1,2) [2024-12-17 23:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044233', 'tblTempUsageDetail_20' ) start [2024-12-17 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044233', 'tblTempUsageDetail_20' ) end [2024-12-17 23:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:40:21] Production.INFO: ==19704== Releasing lock... [2024-12-17 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:40:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-17 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:41:05 [end_date_ymd] => 2024-12-17 23:41:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:41:05' and `end` < '2024-12-17 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-17 23:41:20] Production.INFO: count ==760 [2024-12-17 23:41:20] Production.ERROR: pbx CDR StartTime 2024-12-17 20:41:05 - End Time 2024-12-17 23:41:05 [2024-12-17 23:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044238', 'tblTempUsageDetail_20' ) start [2024-12-17 23:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044238', 'tblTempUsageDetail_20' ) end [2024-12-17 23:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044238', 'tblTempVendorCDR_20' ) start [2024-12-17 23:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044238', 'tblTempVendorCDR_20' ) end [2024-12-17 23:41:20] Production.INFO: ProcessCDR(1,14044238,1,1,2) [2024-12-17 23:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044238', 'tblTempUsageDetail_20' ) start [2024-12-17 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044238', 'tblTempUsageDetail_20' ) end [2024-12-17 23:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:41:23] Production.INFO: ==19778== Releasing lock... [2024-12-17 23:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:41:23] Production.INFO: 33 MB #Memory Used# [2024-12-17 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:42:06 [end_date_ymd] => 2024-12-17 23:42:06 [RateCDR] => 1 ) [2024-12-17 23:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 20:42:06' and `end` < '2024-12-17 23:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 23:42:19] Production.INFO: count ==759 [2024-12-17 23:42:19] Production.ERROR: pbx CDR StartTime 2024-12-17 20:42:06 - End Time 2024-12-17 23:42:06 [2024-12-17 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044243', 'tblTempUsageDetail_20' ) start [2024-12-17 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044243', 'tblTempUsageDetail_20' ) end [2024-12-17 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044243', 'tblTempVendorCDR_20' ) start [2024-12-17 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044243', 'tblTempVendorCDR_20' ) end [2024-12-17 23:42:20] Production.INFO: ProcessCDR(1,14044243,1,1,2) [2024-12-17 23:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044243', 'tblTempUsageDetail_20' ) start [2024-12-17 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044243', 'tblTempUsageDetail_20' ) end [2024-12-17 23:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:42:23] Production.INFO: ==19888== Releasing lock... [2024-12-17 23:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:42:23] Production.INFO: 33 MB #Memory Used# [2024-12-17 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:43:04 [end_date_ymd] => 2024-12-17 23:43:04 [RateCDR] => 1 ) [2024-12-17 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-17 20:43:04' and `end` < '2024-12-17 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-17 23:43:17] Production.INFO: count ==758 [2024-12-17 23:43:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:43:04 - End Time 2024-12-17 23:43:04 [2024-12-17 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044248', 'tblTempUsageDetail_20' ) start [2024-12-17 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044248', 'tblTempUsageDetail_20' ) end [2024-12-17 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044248', 'tblTempVendorCDR_20' ) start [2024-12-17 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044248', 'tblTempVendorCDR_20' ) end [2024-12-17 23:43:17] Production.INFO: ProcessCDR(1,14044248,1,1,2) [2024-12-17 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044248', 'tblTempUsageDetail_20' ) start [2024-12-17 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044248', 'tblTempUsageDetail_20' ) end [2024-12-17 23:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:43:20] Production.INFO: ==19962== Releasing lock... [2024-12-17 23:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:43:20] Production.INFO: 33 MB #Memory Used# [2024-12-17 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:44:05 [end_date_ymd] => 2024-12-17 23:44:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:44:05' and `end` < '2024-12-17 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-17 23:44:17] Production.INFO: count ==759 [2024-12-17 23:44:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:44:05 - End Time 2024-12-17 23:44:05 [2024-12-17 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044253', 'tblTempUsageDetail_20' ) start [2024-12-17 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044253', 'tblTempUsageDetail_20' ) end [2024-12-17 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044253', 'tblTempVendorCDR_20' ) start [2024-12-17 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044253', 'tblTempVendorCDR_20' ) end [2024-12-17 23:44:17] Production.INFO: ProcessCDR(1,14044253,1,1,2) [2024-12-17 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044253', 'tblTempUsageDetail_20' ) start [2024-12-17 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044253', 'tblTempUsageDetail_20' ) end [2024-12-17 23:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:44:21] Production.INFO: ==20032== Releasing lock... [2024-12-17 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:44:21] Production.INFO: 33 MB #Memory Used# [2024-12-17 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:45:04 [end_date_ymd] => 2024-12-17 23:45:04 [RateCDR] => 1 ) [2024-12-17 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-17 20:45:04' and `end` < '2024-12-17 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-17 23:45:16] Production.INFO: count ==759 [2024-12-17 23:45:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:45:04 - End Time 2024-12-17 23:45:04 [2024-12-17 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044258', 'tblTempUsageDetail_20' ) start [2024-12-17 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044258', 'tblTempUsageDetail_20' ) end [2024-12-17 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044258', 'tblTempVendorCDR_20' ) start [2024-12-17 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044258', 'tblTempVendorCDR_20' ) end [2024-12-17 23:45:17] Production.INFO: ProcessCDR(1,14044258,1,1,2) [2024-12-17 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044258', 'tblTempUsageDetail_20' ) start [2024-12-17 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044258', 'tblTempUsageDetail_20' ) end [2024-12-17 23:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:45:20] Production.INFO: ==20103== Releasing lock... [2024-12-17 23:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:45:20] Production.INFO: 33 MB #Memory Used# [2024-12-17 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:46:05 [end_date_ymd] => 2024-12-17 23:46:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:46:05' and `end` < '2024-12-17 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-17 23:46:18] Production.INFO: count ==756 [2024-12-17 23:46:18] Production.ERROR: pbx CDR StartTime 2024-12-17 20:46:05 - End Time 2024-12-17 23:46:05 [2024-12-17 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044263', 'tblTempUsageDetail_20' ) start [2024-12-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044263', 'tblTempUsageDetail_20' ) end [2024-12-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044263', 'tblTempVendorCDR_20' ) start [2024-12-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044263', 'tblTempVendorCDR_20' ) end [2024-12-17 23:46:18] Production.INFO: ProcessCDR(1,14044263,1,1,2) [2024-12-17 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044263', 'tblTempUsageDetail_20' ) start [2024-12-17 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044263', 'tblTempUsageDetail_20' ) end [2024-12-17 23:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:46:21] Production.INFO: ==20178== Releasing lock... [2024-12-17 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:46:21] Production.INFO: 33 MB #Memory Used# [2024-12-17 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:47:04 [end_date_ymd] => 2024-12-17 23:47:04 [RateCDR] => 1 ) [2024-12-17 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-17 20:47:04' and `end` < '2024-12-17 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-17 23:47:16] Production.INFO: count ==753 [2024-12-17 23:47:16] Production.ERROR: pbx CDR StartTime 2024-12-17 20:47:04 - End Time 2024-12-17 23:47:04 [2024-12-17 23:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044268', 'tblTempUsageDetail_20' ) start [2024-12-17 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044268', 'tblTempUsageDetail_20' ) end [2024-12-17 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044268', 'tblTempVendorCDR_20' ) start [2024-12-17 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044268', 'tblTempVendorCDR_20' ) end [2024-12-17 23:47:17] Production.INFO: ProcessCDR(1,14044268,1,1,2) [2024-12-17 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044268', 'tblTempUsageDetail_20' ) start [2024-12-17 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044268', 'tblTempUsageDetail_20' ) end [2024-12-17 23:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:47:20] Production.INFO: ==20249== Releasing lock... [2024-12-17 23:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:47:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-17 23:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:48:04 [end_date_ymd] => 2024-12-17 23:48:04 [RateCDR] => 1 ) [2024-12-17 23: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-17 20:48:04' and `end` < '2024-12-17 23: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-17 23:48:17] Production.INFO: count ==753 [2024-12-17 23:48:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:48:04 - End Time 2024-12-17 23:48:04 [2024-12-17 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044273', 'tblTempUsageDetail_20' ) start [2024-12-17 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044273', 'tblTempUsageDetail_20' ) end [2024-12-17 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044273', 'tblTempVendorCDR_20' ) start [2024-12-17 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044273', 'tblTempVendorCDR_20' ) end [2024-12-17 23:48:17] Production.INFO: ProcessCDR(1,14044273,1,1,2) [2024-12-17 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044273', 'tblTempUsageDetail_20' ) start [2024-12-17 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044273', 'tblTempUsageDetail_20' ) end [2024-12-17 23:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:48:20] Production.INFO: ==20320== Releasing lock... [2024-12-17 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:48:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-17 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:49:05 [end_date_ymd] => 2024-12-17 23:49:05 [RateCDR] => 1 ) [2024-12-17 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 20:49:05' and `end` < '2024-12-17 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 23:49:17] Production.INFO: count ==750 [2024-12-17 23:49:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:49:05 - End Time 2024-12-17 23:49:05 [2024-12-17 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044278', 'tblTempUsageDetail_20' ) start [2024-12-17 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044278', 'tblTempUsageDetail_20' ) end [2024-12-17 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044278', 'tblTempVendorCDR_20' ) start [2024-12-17 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044278', 'tblTempVendorCDR_20' ) end [2024-12-17 23:49:17] Production.INFO: ProcessCDR(1,14044278,1,1,2) [2024-12-17 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044278', 'tblTempUsageDetail_20' ) start [2024-12-17 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044278', 'tblTempUsageDetail_20' ) end [2024-12-17 23:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:49:20] Production.INFO: ==20390== Releasing lock... [2024-12-17 23:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:49:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-17 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:50:05 [end_date_ymd] => 2024-12-17 23:50:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:50:05' and `end` < '2024-12-17 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-17 23:50:18] Production.INFO: count ==752 [2024-12-17 23:50:18] Production.ERROR: pbx CDR StartTime 2024-12-17 20:50:05 - End Time 2024-12-17 23:50:05 [2024-12-17 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044284', 'tblTempUsageDetail_20' ) start [2024-12-17 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044284', 'tblTempUsageDetail_20' ) end [2024-12-17 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044284', 'tblTempVendorCDR_20' ) start [2024-12-17 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044284', 'tblTempVendorCDR_20' ) end [2024-12-17 23:50:18] Production.INFO: ProcessCDR(1,14044284,1,1,2) [2024-12-17 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044284', 'tblTempUsageDetail_20' ) start [2024-12-17 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044284', 'tblTempUsageDetail_20' ) end [2024-12-17 23:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:50:21] Production.INFO: ==20464== Releasing lock... [2024-12-17 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:50:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-17 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:51:05 [end_date_ymd] => 2024-12-17 23:51:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:51:05' and `end` < '2024-12-17 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-17 23:51:19] Production.INFO: count ==747 [2024-12-17 23:51:19] Production.ERROR: pbx CDR StartTime 2024-12-17 20:51:05 - End Time 2024-12-17 23:51:05 [2024-12-17 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044289', 'tblTempUsageDetail_20' ) start [2024-12-17 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044289', 'tblTempUsageDetail_20' ) end [2024-12-17 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044289', 'tblTempVendorCDR_20' ) start [2024-12-17 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044289', 'tblTempVendorCDR_20' ) end [2024-12-17 23:51:19] Production.INFO: ProcessCDR(1,14044289,1,1,2) [2024-12-17 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044289', 'tblTempUsageDetail_20' ) start [2024-12-17 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044289', 'tblTempUsageDetail_20' ) end [2024-12-17 23:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:51:22] Production.INFO: ==20535== Releasing lock... [2024-12-17 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:51:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-17 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:52:05 [end_date_ymd] => 2024-12-17 23:52:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:52:05' and `end` < '2024-12-17 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 23:52:19] Production.INFO: count ==748 [2024-12-17 23:52:19] Production.ERROR: pbx CDR StartTime 2024-12-17 20:52:05 - End Time 2024-12-17 23:52:05 [2024-12-17 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044294', 'tblTempUsageDetail_20' ) start [2024-12-17 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044294', 'tblTempUsageDetail_20' ) end [2024-12-17 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044294', 'tblTempVendorCDR_20' ) start [2024-12-17 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044294', 'tblTempVendorCDR_20' ) end [2024-12-17 23:52:19] Production.INFO: ProcessCDR(1,14044294,1,1,2) [2024-12-17 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044294', 'tblTempUsageDetail_20' ) start [2024-12-17 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044294', 'tblTempUsageDetail_20' ) end [2024-12-17 23:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:52:23] Production.INFO: ==20606== Releasing lock... [2024-12-17 23:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:52:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-17 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:53:05 [end_date_ymd] => 2024-12-17 23:53:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:53:05' and `end` < '2024-12-17 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-17 23:53:17] Production.INFO: count ==736 [2024-12-17 23:53:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:53:05 - End Time 2024-12-17 23:53:05 [2024-12-17 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044299', 'tblTempUsageDetail_20' ) start [2024-12-17 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044299', 'tblTempUsageDetail_20' ) end [2024-12-17 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044299', 'tblTempVendorCDR_20' ) start [2024-12-17 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044299', 'tblTempVendorCDR_20' ) end [2024-12-17 23:53:17] Production.INFO: ProcessCDR(1,14044299,1,1,2) [2024-12-17 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044299', 'tblTempUsageDetail_20' ) start [2024-12-17 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044299', 'tblTempUsageDetail_20' ) end [2024-12-17 23:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:53:20] Production.INFO: ==20677== Releasing lock... [2024-12-17 23:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:53:20] Production.INFO: 33 MB #Memory Used# [2024-12-17 23:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:54:04 [end_date_ymd] => 2024-12-17 23:54:04 [RateCDR] => 1 ) [2024-12-17 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-17 20:54:04' and `end` < '2024-12-17 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-17 23:54:17] Production.INFO: count ==733 [2024-12-17 23:54:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:54:04 - End Time 2024-12-17 23:54:04 [2024-12-17 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044304', 'tblTempUsageDetail_20' ) start [2024-12-17 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044304', 'tblTempUsageDetail_20' ) end [2024-12-17 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044304', 'tblTempVendorCDR_20' ) start [2024-12-17 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044304', 'tblTempVendorCDR_20' ) end [2024-12-17 23:54:17] Production.INFO: ProcessCDR(1,14044304,1,1,2) [2024-12-17 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044304', 'tblTempUsageDetail_20' ) start [2024-12-17 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044304', 'tblTempUsageDetail_20' ) end [2024-12-17 23:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:54:20] Production.INFO: ==20751== Releasing lock... [2024-12-17 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:54:20] Production.INFO: 33 MB #Memory Used# [2024-12-17 23:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:55:04 [end_date_ymd] => 2024-12-17 23:55:04 [RateCDR] => 1 ) [2024-12-17 23: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 20:55:04' and `end` < '2024-12-17 23: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-17 23:55:17] Production.INFO: count ==734 [2024-12-17 23:55:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:55:04 - End Time 2024-12-17 23:55:04 [2024-12-17 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044309', 'tblTempUsageDetail_20' ) start [2024-12-17 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044309', 'tblTempUsageDetail_20' ) end [2024-12-17 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044309', 'tblTempVendorCDR_20' ) start [2024-12-17 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044309', 'tblTempVendorCDR_20' ) end [2024-12-17 23:55:17] Production.INFO: ProcessCDR(1,14044309,1,1,2) [2024-12-17 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044309', 'tblTempUsageDetail_20' ) start [2024-12-17 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044309', 'tblTempUsageDetail_20' ) end [2024-12-17 23:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:55:21] Production.INFO: ==20820== Releasing lock... [2024-12-17 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:55:21] Production.INFO: 33 MB #Memory Used# [2024-12-17 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:56:04 [end_date_ymd] => 2024-12-17 23:56:04 [RateCDR] => 1 ) [2024-12-17 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 20:56:04' and `end` < '2024-12-17 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-17 23:56:17] Production.INFO: count ==734 [2024-12-17 23:56:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:56:04 - End Time 2024-12-17 23:56:04 [2024-12-17 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044314', 'tblTempUsageDetail_20' ) start [2024-12-17 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044314', 'tblTempUsageDetail_20' ) end [2024-12-17 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044314', 'tblTempVendorCDR_20' ) start [2024-12-17 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044314', 'tblTempVendorCDR_20' ) end [2024-12-17 23:56:17] Production.INFO: ProcessCDR(1,14044314,1,1,2) [2024-12-17 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044314', 'tblTempUsageDetail_20' ) start [2024-12-17 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044314', 'tblTempUsageDetail_20' ) end [2024-12-17 23:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:56:20] Production.INFO: ==20895== Releasing lock... [2024-12-17 23:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:56:20] Production.INFO: 33 MB #Memory Used# [2024-12-17 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:57:05 [end_date_ymd] => 2024-12-17 23:57:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:57:05' and `end` < '2024-12-17 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-17 23:57:17] Production.INFO: count ==733 [2024-12-17 23:57:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:57:05 - End Time 2024-12-17 23:57:05 [2024-12-17 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044319', 'tblTempUsageDetail_20' ) start [2024-12-17 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044319', 'tblTempUsageDetail_20' ) end [2024-12-17 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044319', 'tblTempVendorCDR_20' ) start [2024-12-17 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044319', 'tblTempVendorCDR_20' ) end [2024-12-17 23:57:17] Production.INFO: ProcessCDR(1,14044319,1,1,2) [2024-12-17 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044319', 'tblTempUsageDetail_20' ) start [2024-12-17 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044319', 'tblTempUsageDetail_20' ) end [2024-12-17 23:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:57:20] Production.INFO: ==20969== Releasing lock... [2024-12-17 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:57:20] Production.INFO: 33 MB #Memory Used# [2024-12-17 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:58:05 [end_date_ymd] => 2024-12-17 23:58:05 [RateCDR] => 1 ) [2024-12-17 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-17 20:58:05' and `end` < '2024-12-17 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-17 23:58:17] Production.INFO: count ==733 [2024-12-17 23:58:17] Production.ERROR: pbx CDR StartTime 2024-12-17 20:58:05 - End Time 2024-12-17 23:58:05 [2024-12-17 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044324', 'tblTempUsageDetail_20' ) start [2024-12-17 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044324', 'tblTempUsageDetail_20' ) end [2024-12-17 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044324', 'tblTempVendorCDR_20' ) start [2024-12-17 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044324', 'tblTempVendorCDR_20' ) end [2024-12-17 23:58:17] Production.INFO: ProcessCDR(1,14044324,1,1,2) [2024-12-17 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044324', 'tblTempUsageDetail_20' ) start [2024-12-17 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044324', 'tblTempUsageDetail_20' ) end [2024-12-17 23:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:58:21] Production.INFO: ==21080== Releasing lock... [2024-12-17 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:58:21] Production.INFO: 33 MB #Memory Used# [2024-12-17 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 20:59:05 [end_date_ymd] => 2024-12-17 23:59:05 [RateCDR] => 1 ) [2024-12-17 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 20:59:05' and `end` < '2024-12-17 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-17 23:59:18] Production.INFO: count ==735 [2024-12-17 23:59:18] Production.ERROR: pbx CDR StartTime 2024-12-17 20:59:05 - End Time 2024-12-17 23:59:05 [2024-12-17 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-17 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044329', 'tblTempUsageDetail_20' ) start [2024-12-17 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044329', 'tblTempUsageDetail_20' ) end [2024-12-17 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044329', 'tblTempVendorCDR_20' ) start [2024-12-17 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044329', 'tblTempVendorCDR_20' ) end [2024-12-17 23:59:18] Production.INFO: ProcessCDR(1,14044329,1,1,2) [2024-12-17 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-17 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-17 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044329', 'tblTempUsageDetail_20' ) start [2024-12-17 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044329', 'tblTempUsageDetail_20' ) end [2024-12-17 23:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-17 23:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-17 23:59:22] Production.INFO: ==21151== Releasing lock... [2024-12-17 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-17 23:59:22] Production.INFO: 33 MB #Memory Used#